Changeset 25d7709 in mainline for arch/mips32/src/debugger.c
- Timestamp:
- 2006-03-13T20:08:16Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 631ca4d
- Parents:
- 45d6add
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/mips32/src/debugger.c
r45d6add r25d7709 180 180 } else { /* We are add extended */ 181 181 cur->flags = BKPOINT_FUNCCALL; 182 cur->bkfunc = (void (*)(void *, struct exception_regdump*)) argv[1].intval;182 cur->bkfunc = (void (*)(void *, istate_t *)) argv[1].intval; 183 183 } 184 184 if (is_jump(cur->instruction)) … … 290 290 * next instruction. 291 291 */ 292 void debugger_bpoint( struct exception_regdump *pstate)292 void debugger_bpoint(istate_t *istate) 293 293 { 294 294 bpinfo_t *cur = NULL; 295 __address fireaddr = pstate->epc;295 __address fireaddr = istate->epc; 296 296 int i; 297 297 … … 330 330 if (!(cur->flags & BKPOINT_FUNCCALL)) 331 331 printf("***Breakpoint %d: 0x%p in %s.\n", i, 332 fireaddr, get_symtab_entry( pstate->epc));332 fireaddr, get_symtab_entry(istate->epc)); 333 333 334 334 /* Return first instruction back */ … … 345 345 get_symtab_entry(fireaddr)); 346 346 /* Move on to next instruction */ 347 pstate->epc += 4;347 istate->epc += 4; 348 348 } 349 349 if (cur) … … 352 352 /* Allow zero bkfunc, just for counting */ 353 353 if (cur->bkfunc) 354 cur->bkfunc(cur, pstate);354 cur->bkfunc(cur, istate); 355 355 } else { 356 356 printf("***Type 'exit' to exit kconsole.\n");
Note:
See TracChangeset
for help on using the changeset viewer.