Ignore:
File:
1 edited

Legend:

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

    r7e752b2 r63bdde6  
    191191        }
    192192       
    193         printf("Adding breakpoint on address %p\n", (void *) argv->intval);
     193        printf("Adding breakpoint on address %p\n", argv->intval);
    194194       
    195195        cur->address = (uintptr_t) argv->intval;
     
    247247        smc_coherence(((uint32_t *) cur->address)[1]);
    248248       
    249         cur->address = (uintptr_t) NULL;
     249        cur->address = NULL;
    250250       
    251251        irq_spinlock_unlock(&bkpoint_lock, true);
     
    267267                            breakpoints[i].address);
    268268                       
    269                         printf("%-4u %7zu %p %-8s %-9s %-10s %s\n", i,
    270                             breakpoints[i].counter, (void *) breakpoints[i].address,
     269                        printf("%-4u %7" PRIs " %p %-8s %-9s %-10s %s\n", i,
     270                            breakpoints[i].counter, breakpoints[i].address,
    271271                            ((breakpoints[i].flags & BKPOINT_INPROG) ? "true" :
    272272                            "false"), ((breakpoints[i].flags & BKPOINT_ONESHOT)
     
    289289       
    290290        for (i = 0; i < BKPOINTS_MAX; i++)
    291                 breakpoints[i].address = (uintptr_t) NULL;
     291                breakpoints[i].address = NULL;
    292292       
    293293#ifdef CONFIG_KCONSOLE
     
    366366               
    367367                if (!(cur->flags & BKPOINT_FUNCCALL)) {
    368                         printf("***Breakpoint %u: %p in %s.\n", i,
    369                             (void *) fireaddr,
     368                        printf("***Breakpoint %u: %p in %s.\n", i, fireaddr,
    370369                            symtab_fmt_name_lookup(fireaddr));
    371370                }
     
    382381                cur->flags |= BKPOINT_INPROG;
    383382        } else {
    384                 printf("***Breakpoint %d: %p in %s.\n", i,
    385                     (void *) fireaddr,
     383                printf("***Breakpoint %d: %p in %s.\n", i, fireaddr,
    386384                    symtab_fmt_name_lookup(fireaddr));
    387385               
     
    419417                /* Remove one-shot breakpoint */
    420418                if ((cur->flags & BKPOINT_ONESHOT))
    421                         cur->address = (uintptr_t) NULL;
     419                        cur->address = NULL;
    422420               
    423421                /* Remove in-progress flag */
Note: See TracChangeset for help on using the changeset viewer.