| 99 | } |
| 100 | |
| 101 | int |
| 102 | db_trace_thread(struct thread *thr, int count) |
| 103 | { |
| 104 | struct unwind_state frame; |
| 105 | struct pcb *ctx; |
| 106 | |
| 107 | if (thr != curthread) { |
| 108 | ctx = kdb_thr_ctx(thr); |
| 109 | |
| 110 | frame.sp = (uintptr_t)ctx->pcb_sp; |
| 111 | frame.fp = (uintptr_t)ctx->pcb_x[29]; |
| 112 | frame.pc = (uintptr_t)ctx->pcb_lr; |
| 113 | db_stack_trace_cmd(thr, &frame); |
| 114 | } else |
| 115 | db_trace_self(); |
| 116 | return (0); |
| 117 | } |
| 118 | |
| 119 | void |
| 120 | db_trace_self(void) |
nothing calls this directly
no test coverage detected