| 592 | } |
| 593 | |
| 594 | void |
| 595 | db_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 | |
| 608 | int |
| 609 | db_trace_thread(struct thread *thr, int count) |
nothing calls this directly
no test coverage detected