MCPcopy Create free account
hub / github.com/F-Stack/f-stack / db_breakpoint_alloc

Function db_breakpoint_alloc

freebsd/ddb/db_break.c:63–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61static void db_set_breakpoint(vm_map_t map, db_addr_t addr, int count);
62
63static db_breakpoint_t
64db_breakpoint_alloc(void)
65{
66 register db_breakpoint_t bkpt;
67
68 if ((bkpt = db_free_breakpoints) != 0) {
69 db_free_breakpoints = bkpt->link;
70 return (bkpt);
71 }
72 if (db_next_free_breakpoint == &db_break_table[NBREAKPOINTS]) {
73 db_printf("All breakpoints used.\n");
74 return (0);
75 }
76 bkpt = db_next_free_breakpoint;
77 db_next_free_breakpoint++;
78
79 return (bkpt);
80}
81
82static void
83db_breakpoint_free(db_breakpoint_t bkpt)

Callers 2

db_set_breakpointFunction · 0.85
db_set_temp_breakpointFunction · 0.85

Calls 1

db_printfFunction · 0.85

Tested by

no test coverage detected