| 149 | } |
| 150 | |
| 151 | int |
| 152 | db_trace_thread(struct thread *thr, int count) |
| 153 | { |
| 154 | struct unwind_state state; |
| 155 | struct pcb *ctx; |
| 156 | |
| 157 | if (thr != curthread) { |
| 158 | ctx = kdb_thr_ctx(thr); |
| 159 | |
| 160 | state.registers[FP] = ctx->pcb_regs.sf_r11; |
| 161 | state.registers[SP] = ctx->pcb_regs.sf_sp; |
| 162 | state.registers[LR] = ctx->pcb_regs.sf_lr; |
| 163 | state.registers[PC] = ctx->pcb_regs.sf_pc; |
| 164 | |
| 165 | db_stack_trace_cmd(&state); |
| 166 | } else |
| 167 | db_trace_self(); |
| 168 | return (0); |
| 169 | } |
| 170 | |
| 171 | void |
| 172 | db_trace_self(void) |
no test coverage detected