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:
parent
db62a45d65
commit
369149e740
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user