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

Function db_trace_self

freebsd/amd64/amd64/db_trace.c:367–379  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

365}
366
367void
368db_trace_self(void)
369{
370 struct amd64_frame *frame;
371 db_addr_t callpc;
372 register_t rbp;
373
374 __asm __volatile("movq %%rbp,%0" : "=r" (rbp));
375 frame = (struct amd64_frame *)rbp;
376 callpc = (db_addr_t)db_get_value((long)&frame->f_retaddr, 8, FALSE);
377 frame = frame->f_frame;
378 db_backtrace(curthread, NULL, frame, callpc, 0, -1);
379}
380
381int
382db_trace_thread(struct thread *thr, int count)

Callers

nothing calls this directly

Calls 2

db_get_valueFunction · 0.85
db_backtraceFunction · 0.70

Tested by

no test coverage detected