Changeset View
Changeset View
Standalone View
Standalone View
sys/arm64/arm64/db_trace.c
Show First 20 Lines • Show All 103 Lines • ▼ Show 20 Lines | db_trace_thread(struct thread *thr, int count) | ||||
struct unwind_state frame; | struct unwind_state frame; | ||||
struct pcb *ctx; | struct pcb *ctx; | ||||
if (thr != curthread) { | if (thr != curthread) { | ||||
ctx = kdb_thr_ctx(thr); | ctx = kdb_thr_ctx(thr); | ||||
frame.sp = (uintptr_t)ctx->pcb_sp; | frame.sp = (uintptr_t)ctx->pcb_sp; | ||||
frame.fp = (uintptr_t)ctx->pcb_x[29]; | frame.fp = (uintptr_t)ctx->pcb_x[29]; | ||||
frame.pc = (uintptr_t)ctx->pcb_x[30]; | frame.pc = (uintptr_t)ctx->pcb_lr; | ||||
db_stack_trace_cmd(thr, &frame); | db_stack_trace_cmd(thr, &frame); | ||||
} else | } else | ||||
db_trace_self(); | db_trace_self(); | ||||
return (0); | return (0); | ||||
} | } | ||||
void | void | ||||
db_trace_self(void) | db_trace_self(void) | ||||
Show All 11 Lines |