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

Function db_watchpoint_alloc

freebsd/ddb/db_watch.c:71–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69 vm_size_t size);
70
71static db_watchpoint_t
72db_watchpoint_alloc(void)
73{
74 db_watchpoint_t watch;
75
76 if ((watch = db_free_watchpoints) != 0) {
77 db_free_watchpoints = watch->link;
78 return (watch);
79 }
80 if (db_next_free_watchpoint == &db_watch_table[NWATCHPOINTS]) {
81 db_printf("All watchpoints used.\n");
82 return (0);
83 }
84 watch = db_next_free_watchpoint;
85 db_next_free_watchpoint++;
86
87 return (watch);
88}
89
90static void
91db_watchpoint_free(db_watchpoint_t watch)

Callers 1

db_set_watchpointFunction · 0.85

Calls 1

db_printfFunction · 0.85

Tested by

no test coverage detected