reconstruct_fault_context
Reconstructs a HardFault crash site by decoding fault registers, unwinding the stacked exception frame from MSP/PSP via EXC_RETURN, and resolving the true faulting PC to source file:line.
Instructions
Reconstructs the full crash site after a HardFault: decodes fault registers, unwinds the auto-stacked exception frame from MSP/PSP via EXC_RETURN to recover the true faulting PC, and resolves it to source file:line. Run this when halted in a fault handler.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session | No | Optional debug-session name. Omit for the default target. |