Changeset e16e0d59 in mainline for kernel/arch/mips32/src/debugger.c
- Timestamp:
- 2009-03-17T20:33:18Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5eb90cb
- Parents:
- b1c8dc0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/mips32/src/debugger.c
rb1c8dc0 re16e0d59 43 43 #include <arch/cp0.h> 44 44 #include <func.h> 45 46 #ifdef CONFIG_SYMTAB47 45 #include <symtab.h> 48 #endif49 46 50 47 bpinfo_t breakpoints[BKPOINTS_MAX]; … … 263 260 for (i = 0; i < BKPOINTS_MAX; i++) 264 261 if (breakpoints[i].address) { 265 #ifdef CONFIG_SYMTAB 266 symbol = get_symtab_entry(breakpoints[i].address); 267 #else 268 symbol = "n/a"; 269 #endif 270 262 symbol = symtab_fmt_name_lookup( 263 breakpoints[i].address); 264 271 265 printf("%-2u %-5d %#10zx %-6s %-7s %-8s %s\n", i, 272 266 breakpoints[i].counter, breakpoints[i].address, … … 357 351 358 352 if (!(cur->flags & BKPOINT_FUNCCALL)) { 359 #ifdef CONFIG_SYMTAB360 353 printf("***Breakpoint %d: %p in %s.\n", i, fireaddr, 361 get_symtab_entry(istate->epc)); 362 #else 363 printf("***Breakpoint %d: %p.\n", i, fireaddr); 364 #endif 354 symtab_fmt_name_lookup(istate->epc)); 365 355 } 366 356 … … 376 366 cur->flags |= BKPOINT_INPROG; 377 367 } else { 378 #ifdef CONFIG_SYMTAB 379 printf("***Breakpoint %p in %s.\n", fireaddr, 380 get_symtab_entry(fireaddr)); 381 #else 382 printf("***Breakpoint %p.\n", fireaddr); 383 #endif 368 printf("***Breakpoint %d: %p in %s.\n", i, fireaddr, 369 symtab_fmt_name_lookup(fireaddr)); 370 384 371 /* Move on to next instruction */ 385 372 istate->epc += 4;
Note:
See TracChangeset
for help on using the changeset viewer.