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

Function db_trace_thread

freebsd/mips/mips/db_trace.c:437–450  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

435}
436
437int
438db_trace_thread(struct thread *thr, int count)
439{
440 register_t pc, ra, sp;
441 struct pcb *ctx;
442
443 ctx = kdb_thr_ctx(thr);
444 sp = (register_t)ctx->pcb_context[PCB_REG_SP];
445 pc = (register_t)ctx->pcb_context[PCB_REG_PC];
446 ra = (register_t)ctx->pcb_context[PCB_REG_RA];
447 stacktrace_subr(pc, sp, ra);
448
449 return (0);
450}
451
452void
453db_show_mdpcpu(struct pcpu *pc)

Callers

nothing calls this directly

Calls 2

kdb_thr_ctxFunction · 0.85
stacktrace_subrFunction · 0.85

Tested by

no test coverage detected