Get the PC from the trap frame, since it isn't saved as part of the

pcb regs.
This commit is contained in:
Warner Losh 2009-10-18 15:21:48 +00:00
parent f43da83b9d
commit f2c23ba7c4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/projects/mips/; revision=198208

View File

@ -420,7 +420,7 @@ db_trace_thread(struct thread *thr, int count)
else {
ctx = thr->td_pcb;
sp = (register_t)ctx->pcb_context[PREG_SP];
pc = (register_t)ctx->pcb_context[PREG_PC];
pc = (register_t)ctx->pcb_regs.pc;
ra = (register_t)ctx->pcb_context[PREG_RA];
}