Changes in kernel/arch/mips32/src/debugger.c [63bdde6:7e752b2] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/mips32/src/debugger.c
r63bdde6 r7e752b2 191 191 } 192 192 193 printf("Adding breakpoint on address %p\n", argv->intval);193 printf("Adding breakpoint on address %p\n", (void *) argv->intval); 194 194 195 195 cur->address = (uintptr_t) argv->intval; … … 247 247 smc_coherence(((uint32_t *) cur->address)[1]); 248 248 249 cur->address = NULL;249 cur->address = (uintptr_t) NULL; 250 250 251 251 irq_spinlock_unlock(&bkpoint_lock, true); … … 267 267 breakpoints[i].address); 268 268 269 printf("%-4u %7 " PRIs "%p %-8s %-9s %-10s %s\n", i,270 breakpoints[i].counter, breakpoints[i].address,269 printf("%-4u %7zu %p %-8s %-9s %-10s %s\n", i, 270 breakpoints[i].counter, (void *) breakpoints[i].address, 271 271 ((breakpoints[i].flags & BKPOINT_INPROG) ? "true" : 272 272 "false"), ((breakpoints[i].flags & BKPOINT_ONESHOT) … … 289 289 290 290 for (i = 0; i < BKPOINTS_MAX; i++) 291 breakpoints[i].address = NULL;291 breakpoints[i].address = (uintptr_t) NULL; 292 292 293 293 #ifdef CONFIG_KCONSOLE … … 366 366 367 367 if (!(cur->flags & BKPOINT_FUNCCALL)) { 368 printf("***Breakpoint %u: %p in %s.\n", i, fireaddr, 368 printf("***Breakpoint %u: %p in %s.\n", i, 369 (void *) fireaddr, 369 370 symtab_fmt_name_lookup(fireaddr)); 370 371 } … … 381 382 cur->flags |= BKPOINT_INPROG; 382 383 } else { 383 printf("***Breakpoint %d: %p in %s.\n", i, fireaddr, 384 printf("***Breakpoint %d: %p in %s.\n", i, 385 (void *) fireaddr, 384 386 symtab_fmt_name_lookup(fireaddr)); 385 387 … … 417 419 /* Remove one-shot breakpoint */ 418 420 if ((cur->flags & BKPOINT_ONESHOT)) 419 cur->address = NULL;421 cur->address = (uintptr_t) NULL; 420 422 421 423 /* Remove in-progress flag */
Note:
See TracChangeset
for help on using the changeset viewer.