Changes in kernel/arch/mips32/src/debugger.c [96b02eb9:63bdde6] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/mips32/src/debugger.c
r96b02eb9 r63bdde6 134 134 * 135 135 */ 136 bool is_jump( sysarg_t instr)136 bool is_jump(unative_t instr) 137 137 { 138 138 unsigned int i; … … 166 166 return 0; 167 167 } else if ((breakpoints[i].address == (uintptr_t) argv->intval + 168 sizeof( sysarg_t)) || (breakpoints[i].address ==169 (uintptr_t) argv->intval - sizeof( sysarg_t))) {168 sizeof(unative_t)) || (breakpoints[i].address == 169 (uintptr_t) argv->intval - sizeof(unative_t))) { 170 170 printf("Adjacent breakpoints not supported, conflict " 171 171 "with %d.\n", i); … … 191 191 } 192 192 193 printf("Adding breakpoint on address %p\n", (void *)argv->intval);193 printf("Adding breakpoint on address %p\n", argv->intval); 194 194 195 195 cur->address = (uintptr_t) argv->intval; 196 cur->instruction = (( sysarg_t *) cur->address)[0];197 cur->nextinstruction = (( sysarg_t *) cur->address)[1];196 cur->instruction = ((unative_t *) cur->address)[0]; 197 cur->nextinstruction = ((unative_t *) cur->address)[1]; 198 198 if (argv == &add_argv) { 199 199 cur->flags = 0; … … 209 209 210 210 /* Set breakpoint */ 211 *(( sysarg_t *) cur->address) = 0x0d;211 *((unative_t *) cur->address) = 0x0d; 212 212 smc_coherence(cur->address); 213 213 … … 247 247 smc_coherence(((uint32_t *) cur->address)[1]); 248 248 249 cur->address = (uintptr_t)NULL;249 cur->address = NULL; 250 250 251 251 irq_spinlock_unlock(&bkpoint_lock, true); … … 267 267 breakpoints[i].address); 268 268 269 printf("%-4u %7 zu%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, 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 = (uintptr_t)NULL;291 breakpoints[i].address = NULL; 292 292 293 293 #ifdef CONFIG_KCONSOLE … … 341 341 /* Reinst only breakpoint */ 342 342 if ((breakpoints[i].flags & BKPOINT_REINST) && 343 (fireaddr == breakpoints[i].address + sizeof( sysarg_t))) {343 (fireaddr == breakpoints[i].address + sizeof(unative_t))) { 344 344 cur = &breakpoints[i]; 345 345 break; … … 366 366 367 367 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, 370 369 symtab_fmt_name_lookup(fireaddr)); 371 370 } … … 382 381 cur->flags |= BKPOINT_INPROG; 383 382 } else { 384 printf("***Breakpoint %d: %p in %s.\n", i, 385 (void *) fireaddr, 383 printf("***Breakpoint %d: %p in %s.\n", i, fireaddr, 386 384 symtab_fmt_name_lookup(fireaddr)); 387 385 … … 419 417 /* Remove one-shot breakpoint */ 420 418 if ((cur->flags & BKPOINT_ONESHOT)) 421 cur->address = (uintptr_t)NULL;419 cur->address = NULL; 422 420 423 421 /* Remove in-progress flag */
Note:
See TracChangeset
for help on using the changeset viewer.