MCPcopy Create free account
hub / github.com/F-Stack/f-stack / db_trace_thread

Function db_trace_thread

freebsd/arm64/arm64/db_trace.c:101–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99}
100
101int
102db_trace_thread(struct thread *thr, int count)
103{
104 struct unwind_state frame;
105 struct pcb *ctx;
106
107 if (thr != curthread) {
108 ctx = kdb_thr_ctx(thr);
109
110 frame.sp = (uintptr_t)ctx->pcb_sp;
111 frame.fp = (uintptr_t)ctx->pcb_x[29];
112 frame.pc = (uintptr_t)ctx->pcb_lr;
113 db_stack_trace_cmd(thr, &frame);
114 } else
115 db_trace_self();
116 return (0);
117}
118
119void
120db_trace_self(void)

Callers

nothing calls this directly

Calls 3

kdb_thr_ctxFunction · 0.85
db_stack_trace_cmdFunction · 0.70
db_trace_selfFunction · 0.70

Tested by

no test coverage detected