Changeset 43b1e86 in mainline for kernel/arch/amd64/src/debugger.c
- Timestamp:
- 2008-02-01T14:11:18Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9652bd59
- Parents:
- acfdcb0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/amd64/src/debugger.c
racfdcb0 r43b1e86 105 105 int cmd_print_breakpoints(cmd_arg_t *argv __attribute__((unused))) 106 106 { 107 int i;107 unsigned int i; 108 108 char *symbol; 109 110 printf("Breakpoint table.\n"); 111 for (i=0; i < BKPOINTS_MAX; i++) 109 110 if (sizeof(void *) == 4) { 111 printf("# Count Address In symbol\n"); 112 printf("-- ----- ---------- ---------\n"); 113 } else { 114 printf("# Count Address In symbol\n"); 115 printf("-- ----- ------------------ ---------\n"); 116 } 117 118 for (i = 0; i < BKPOINTS_MAX; i++) 112 119 if (breakpoints[i].address) { 113 120 symbol = get_symtab_entry(breakpoints[i].address); 114 printf("%d. %lx in %s\n", i, 115 breakpoints[i].address, symbol); 116 printf(" Count(%d) ", breakpoints[i].counter); 117 printf("\n"); 121 122 if (sizeof(void *) == 4) 123 printf("%-2u %-5d %#10zx %s\n", i, breakpoints[i].counter, 124 breakpoints[i].address, symbol); 125 else 126 printf("%-2u %-5d %#18zx %s\n", i, breakpoints[i].counter, 127 breakpoints[i].address, symbol); 118 128 } 119 129 return 1;
Note:
See TracChangeset
for help on using the changeset viewer.