svn commit: r198208 - projects/mips/sys/mips/mips
Warner Losh
imp at FreeBSD.org
Sun Oct 18 15:21:48 UTC 2009
Author: imp
Date: Sun Oct 18 15:21:48 2009
New Revision: 198208
URL: http://svn.freebsd.org/changeset/base/198208
Log:
Get the PC from the trap frame, since it isn't saved as part of the
pcb regs.
Modified:
projects/mips/sys/mips/mips/db_trace.c
Modified: projects/mips/sys/mips/mips/db_trace.c
==============================================================================
--- projects/mips/sys/mips/mips/db_trace.c Sun Oct 18 14:57:04 2009 (r198207)
+++ projects/mips/sys/mips/mips/db_trace.c Sun Oct 18 15:21:48 2009 (r198208)
@@ -420,7 +420,7 @@ db_trace_thread(struct thread *thr, int
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];
}
More information about the svn-src-projects
mailing list