Changeset e2b762ec in mainline for kernel/arch/amd64
- Timestamp:
- 2009-03-16T21:58:05Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f36c061
- Parents:
- d9167a1c
- Location:
- kernel/arch/amd64/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/amd64/src/debugger.c
rd9167a1c re2b762ec 36 36 #include <console/kconsole.h> 37 37 #include <console/cmd.h> 38 #include <symtab.h>39 38 #include <print.h> 40 39 #include <panic.h> … … 45 44 #include <func.h> 46 45 #include <smp/ipi.h> 46 47 #ifdef CONFIG_SYMTAB 48 #include <symtab.h> 49 #endif 47 50 48 51 typedef struct { … … 230 233 } 231 234 } 235 236 #ifdef CONFIG_SYMTAB 232 237 printf("Reached breakpoint %d:%lx(%s)\n", slot, getip(istate), 233 238 get_symtab_entry(getip(istate))); 239 #else 240 printf("Reached breakpoint %d:%lx\n", slot, getip(istate)); 241 #endif 234 242 235 243 #ifdef CONFIG_KCONSOLE … … 356 364 for (i = 0; i < BKPOINTS_MAX; i++) 357 365 if (breakpoints[i].address) { 366 #ifdef CONFIG_SYMTAB 358 367 symbol = get_symtab_entry(breakpoints[i].address); 368 #else 369 symbol = "n/a"; 370 #endif 359 371 360 372 #ifdef __32_BITS__ -
kernel/arch/amd64/src/interrupt.c
rd9167a1c re2b762ec 44 44 #include <mm/as.h> 45 45 #include <arch.h> 46 #include <symtab.h>47 46 #include <arch/asm.h> 48 47 #include <proc/scheduler.h> … … 54 53 #include <ddi/irq.h> 55 54 55 #ifdef CONFIG_SYMTAB 56 #include <symtab.h> 57 #endif 58 56 59 /* 57 60 * Interrupt and exception dispatching. … … 67 70 /* uint64_t *x = &istate->stack[0]; */ 68 71 72 #ifdef CONFIG_SYMTAB 69 73 if (!(symbol = get_symtab_entry(istate->rip))) 70 74 symbol = ""; 75 #else 76 symbol = ""; 77 #endif 71 78 72 79 printf("-----EXCEPTION(%d) OCCURED----- ( %s )\n", n, __func__);
Note:
See TracChangeset
for help on using the changeset viewer.