debug_backtrace
Reconstruct an approximate call stack from PC, LR, and a heuristic stack scan on a halted STM32 core, returning likely return addresses innermost first for crash analysis.
Instructions
Reconstruct an approximate call stack from PC, LR, and a stack scan.
Requires a halted core and an ELF-loaded session. The stack scan is a heuristic: it reports PC, LR, then likely return addresses (thumb addresses into code symbols) found in the stack window, in stack order.
Args: session_id: Session ID from debug_session_start. words: Stack words to scan (default 64, max 256).
Returns: Approximate call frames, innermost first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| words | No | ||
| session_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |