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

Function db_trace_self

freebsd/i386/i386/db_trace.c:594–606  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

592}
593
594void
595db_trace_self(void)
596{
597 struct i386_frame *frame;
598 db_addr_t callpc;
599 register_t ebp;
600
601 __asm __volatile("movl %%ebp,%0" : "=r" (ebp));
602 frame = (struct i386_frame *)ebp;
603 callpc = (db_addr_t)db_get_value((int)&frame->f_retaddr, 4, false);
604 frame = frame->f_frame;
605 db_backtrace(curthread, NULL, frame, callpc, 0, -1);
606}
607
608int
609db_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