Rev 2441 | Rev 2767 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 2441 | Rev 2712 | ||
|---|---|---|---|
| Line 102... | Line 102... | ||
| 102 | #endif |
102 | #endif |
| 103 | 103 | ||
| 104 | /** Print table of active breakpoints */ |
104 | /** Print table of active breakpoints */ |
| 105 | int cmd_print_breakpoints(cmd_arg_t *argv __attribute__((unused))) |
105 | int cmd_print_breakpoints(cmd_arg_t *argv __attribute__((unused))) |
| 106 | { |
106 | { |
| 107 | int i; |
107 | unsigned int i; |
| 108 | char *symbol; |
108 | char *symbol; |
| 109 | 109 | ||
| - | 110 | if (sizeof(void *) == 4) { |
|
| 110 | printf("Breakpoint table.\n"); |
111 | printf("# Count Address In symbol\n"); |
| - | 112 | printf("-- ----- ---------- ---------\n"); |
|
| - | 113 | } else { |
|
| - | 114 | printf("# Count Address In symbol\n"); |
|
| - | 115 | printf("-- ----- ------------------ ---------\n"); |
|
| - | 116 | } |
|
| - | 117 | ||
| 111 | for (i=0; i < BKPOINTS_MAX; i++) |
118 | for (i = 0; i < BKPOINTS_MAX; i++) |
| 112 | if (breakpoints[i].address) { |
119 | if (breakpoints[i].address) { |
| 113 | symbol = get_symtab_entry(breakpoints[i].address); |
120 | symbol = get_symtab_entry(breakpoints[i].address); |
| - | 121 | ||
| 114 | printf("%d. %lx in %s\n", i, |
122 | if (sizeof(void *) == 4) |
| - | 123 | printf("%-2u %-5d %#10zx %s\n", i, breakpoints[i].counter, |
|
| 115 | breakpoints[i].address, symbol); |
124 | breakpoints[i].address, symbol); |
| - | 125 | else |
|
| 116 | printf(" Count(%d) ", breakpoints[i].counter); |
126 | printf("%-2u %-5d %#18zx %s\n", i, breakpoints[i].counter, |
| 117 | printf("\n"); |
127 | breakpoints[i].address, symbol); |
| 118 | } |
128 | } |
| 119 | return 1; |
129 | return 1; |
| 120 | } |
130 | } |
| 121 | 131 | ||
| 122 | /* Setup DR register according to table */ |
132 | /* Setup DR register according to table */ |