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

Function db_trace_self

freebsd/mips/mips/db_trace.c:417–435  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

415}
416
417void
418db_trace_self(void)
419{
420 register_t pc, ra, sp;
421
422 sp = (register_t)(intptr_t)__builtin_frame_address(0);
423 ra = (register_t)(intptr_t)__builtin_return_address(0);
424
425 __asm __volatile(
426 "jal 99f\n"
427 "nop\n"
428 "99:\n"
429 "move %0, $31\n" /* get ra */
430 "move $31, %1\n" /* restore ra */
431 : "=r" (pc)
432 : "r" (ra));
433 stacktrace_subr(pc, sp, ra);
434 return;
435}
436
437int
438db_trace_thread(struct thread *thr, int count)

Callers

nothing calls this directly

Calls 1

stacktrace_subrFunction · 0.85

Tested by

no test coverage detected