Use the defines from pcb.h over the ones from regnum.h for this 'C'

code. In theory, the ones from regnum.h should be used only for
assembler code.
This commit is contained in:
Warner Losh 2013-04-25 06:28:19 +00:00
parent db62a45d65
commit 369149e740

View File

@ -423,9 +423,9 @@ db_trace_thread(struct thread *thr, int count)
} else {
ctx = kdb_thr_ctx(thr);
sp = (register_t)ctx->pcb_context[PREG_SP];
pc = (register_t)ctx->pcb_context[PREG_PC];
ra = (register_t)ctx->pcb_context[PREG_RA];
sp = (register_t)ctx->pcb_context[PCB_REG_SP];
pc = (register_t)ctx->pcb_context[PCB_REG_PC];
ra = (register_t)ctx->pcb_context[PCB_REG_RA];
}
stacktrace_subr(pc, sp, ra,