Rev 2071 | Rev 2745 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2071 | Rev 2719 | ||
---|---|---|---|
Line 239... | Line 239... | ||
239 | } |
239 | } |
240 | 240 | ||
241 | /** Print table of active breakpoints */ |
241 | /** Print table of active breakpoints */ |
242 | int cmd_print_breakpoints(cmd_arg_t *argv) |
242 | int cmd_print_breakpoints(cmd_arg_t *argv) |
243 | { |
243 | { |
244 | int i; |
244 | unsigned int i; |
245 | char *symbol; |
245 | char *symbol; |
246 | 246 | ||
247 | printf("Breakpoint table.\n"); |
247 | printf("# Count Address INPROG ONESHOT FUNCCALL In symbol\n"); |
- | 248 | printf("-- ----- ---------- ------ ------- -------- ---------\n"); |
|
- | 249 | ||
248 | for (i=0; i < BKPOINTS_MAX; i++) |
250 | for (i = 0; i < BKPOINTS_MAX; i++) |
249 | if (breakpoints[i].address) { |
251 | if (breakpoints[i].address) { |
250 | symbol = get_symtab_entry(breakpoints[i].address); |
252 | symbol = get_symtab_entry(breakpoints[i].address); |
- | 253 | ||
251 | printf("%d. %p in %s\n",i, |
254 | printf("%-2u %-5d %#10zx %-6s %-7s %-8s %s\n", i, |
252 | breakpoints[i].address, symbol); |
- | |
253 | printf(" Count(%d) ", breakpoints[i].counter); |
255 | breakpoints[i].counter, breakpoints[i].address, |
254 | if (breakpoints[i].flags & BKPOINT_INPROG) |
256 | ((breakpoints[i].flags & BKPOINT_INPROG) ? "true" : "false"), |
255 | printf("INPROG "); |
- | |
256 | if (breakpoints[i].flags & BKPOINT_ONESHOT) |
257 | ((breakpoints[i].flags & BKPOINT_ONESHOT) ? "true" : "false"), |
257 | printf("ONESHOT "); |
- | |
258 | if (breakpoints[i].flags & BKPOINT_FUNCCALL) |
258 | ((breakpoints[i].flags & BKPOINT_FUNCCALL) ? "true" : "false"), |
259 | printf("FUNCCALL "); |
- | |
260 | printf("\n"); |
259 | symbol); |
261 | } |
260 | } |
262 | return 1; |
261 | return 1; |
263 | } |
262 | } |
264 | 263 | ||
265 | /** Initialize debugger */ |
264 | /** Initialize debugger */ |