Changeset e16e0d59 in mainline for kernel/arch/amd64/src
- Timestamp:
- 2009-03-17T20:33:18Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5eb90cb
- Parents:
- b1c8dc0
- Location:
- kernel/arch/amd64/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/amd64/src/debugger.c
rb1c8dc0 re16e0d59 44 44 #include <func.h> 45 45 #include <smp/ipi.h> 46 47 #ifdef CONFIG_SYMTAB48 46 #include <symtab.h> 49 #endif50 47 51 48 typedef struct { … … 234 231 } 235 232 236 #ifdef CONFIG_SYMTAB 237 printf("Reached breakpoint %d:%lx(%s)\n", slot, getip(istate), 238 get_symtab_entry(getip(istate))); 239 #else 240 printf("Reached breakpoint %d:%lx\n", slot, getip(istate)); 241 #endif 233 printf("Reached breakpoint %d:%lx (%s)\n", slot, getip(istate), 234 symtab_fmt_name_lookup(getip(istate))); 242 235 243 236 #ifdef CONFIG_KCONSOLE … … 364 357 for (i = 0; i < BKPOINTS_MAX; i++) 365 358 if (breakpoints[i].address) { 366 #ifdef CONFIG_SYMTAB 367 symbol = get_symtab_entry(breakpoints[i].address); 368 #else 369 symbol = "n/a"; 370 #endif 359 symbol = symtab_fmt_name_lookup( 360 breakpoints[i].address); 371 361 372 362 #ifdef __32_BITS__ -
kernel/arch/amd64/src/interrupt.c
rb1c8dc0 re16e0d59 52 52 #include <interrupt.h> 53 53 #include <ddi/irq.h> 54 55 #ifdef CONFIG_SYMTAB56 54 #include <symtab.h> 57 #endif58 55 59 56 /* … … 68 65 { 69 66 char *symbol; 70 /* uint64_t *x = &istate->stack[0]; */ 71 72 #ifdef CONFIG_SYMTAB 73 if (!(symbol = get_symtab_entry(istate->rip))) 74 symbol = ""; 75 #else 76 symbol = ""; 77 #endif 67 68 symbol = symtab_fmt_name_lookup((istate->rip); 78 69 79 70 printf("-----EXCEPTION(%d) OCCURED----- ( %s )\n", n, __func__);
Note:
See TracChangeset
for help on using the changeset viewer.