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

Function db_list_breakpoints

freebsd/ddb/db_break.c:245–265  ·  view source on GitHub ↗

* List breakpoints. */

Source from the content-addressed store, hash-verified

243 * List breakpoints.
244 */
245static void
246db_list_breakpoints(void)
247{
248 register db_breakpoint_t bkpt;
249
250 if (db_breakpoint_list == 0) {
251 db_printf("No breakpoints set\n");
252 return;
253 }
254
255 db_printf(" Map Count Address\n");
256 for (bkpt = db_breakpoint_list;
257 bkpt != 0;
258 bkpt = bkpt->link) {
259 db_printf("%s%8p %5d ",
260 db_map_current(bkpt->map) ? "*" : " ",
261 (void *)bkpt->map, bkpt->init_count);
262 db_printsym(bkpt->address, DB_STGY_PROC);
263 db_printf("\n");
264 }
265}
266
267/* Delete breakpoint */
268/*ARGSUSED*/

Callers 1

db_listbreak_cmdFunction · 0.85

Calls 3

db_printfFunction · 0.85
db_map_currentFunction · 0.85
db_printsymFunction · 0.85

Tested by

no test coverage detected