diff --git a/sys/mips/mips/db_trace.c b/sys/mips/mips/db_trace.c index d18d6aadb49a..4df810f0c446 100644 --- a/sys/mips/mips/db_trace.c +++ b/sys/mips/mips/db_trace.c @@ -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]; }