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

Function db_trace_thread

freebsd/arm/arm/db_trace.c:151–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149}
150
151int
152db_trace_thread(struct thread *thr, int count)
153{
154 struct unwind_state state;
155 struct pcb *ctx;
156
157 if (thr != curthread) {
158 ctx = kdb_thr_ctx(thr);
159
160 state.registers[FP] = ctx->pcb_regs.sf_r11;
161 state.registers[SP] = ctx->pcb_regs.sf_sp;
162 state.registers[LR] = ctx->pcb_regs.sf_lr;
163 state.registers[PC] = ctx->pcb_regs.sf_pc;
164
165 db_stack_trace_cmd(&state);
166 } else
167 db_trace_self();
168 return (0);
169}
170
171void
172db_trace_self(void)

Callers 4

db_trace_thread_wrapperFunction · 0.50
db_show_threadsFunction · 0.50
db_stack_traceFunction · 0.50
_db_stack_trace_allFunction · 0.50

Calls 3

kdb_thr_ctxFunction · 0.85
db_stack_trace_cmdFunction · 0.70
db_trace_selfFunction · 0.70

Tested by

no test coverage detected