Changeset c053f615 in mainline for kernel/arch/mips32/src/debugger.c


Ignore:
Timestamp:
2008-02-05T10:43:11Z (16 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a0f6a61
Parents:
6cbed012
Message:

prettyprint bkpts command

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/mips32/src/debugger.c

    r6cbed012 rc053f615  
    242242int cmd_print_breakpoints(cmd_arg_t *argv)
    243243{
    244         int i;
     244        unsigned int i;
    245245        char *symbol;
    246 
    247         printf("Breakpoint table.\n");
    248         for (i=0; i < BKPOINTS_MAX; i++)
     246       
     247        printf("#  Count Address    INPROG ONESHOT FUNCCALL In symbol\n");
     248        printf("-- ----- ---------- ------ ------- -------- ---------\n");
     249       
     250        for (i = 0; i < BKPOINTS_MAX; i++)
    249251                if (breakpoints[i].address) {
    250252                        symbol = get_symtab_entry(breakpoints[i].address);
    251                         printf("%d. %p in %s\n",i,
    252                                breakpoints[i].address, symbol);
    253                         printf("     Count(%d) ", breakpoints[i].counter);
    254                         if (breakpoints[i].flags & BKPOINT_INPROG)
    255                                 printf("INPROG ");
    256                         if (breakpoints[i].flags & BKPOINT_ONESHOT)
    257                                 printf("ONESHOT ");
    258                         if (breakpoints[i].flags & BKPOINT_FUNCCALL)
    259                                 printf("FUNCCALL ");
    260                         printf("\n");
     253                       
     254                        printf("%-2u %-5d %#10zx %-6s %-7s %-8s %s\n", i,
     255                                breakpoints[i].counter, breakpoints[i].address,
     256                                ((breakpoints[i].flags & BKPOINT_INPROG) ? "true" : "false"),
     257                                ((breakpoints[i].flags & BKPOINT_ONESHOT) ? "true" : "false"),
     258                                ((breakpoints[i].flags & BKPOINT_FUNCCALL) ? "true" : "false"),
     259                                symbol);
    261260                }
    262261        return 1;
Note: See TracChangeset for help on using the changeset viewer.