external_zblue/scripts/coredump
Mark Holden 94cf72e036 coredump: Enable thread understanding for arm cortex m
Add support in arm_cortex_m python script to read thread
registers off of a thread's stack when switching context.

When CONFIG_ARM_STORE_EXC_RETURN is enabled, check the exc_return value
in thread's arch struct to determine accurately where the stack pointer
is. Also, set r7 (the frame pointer register) in case the frame pointer
is not omitted.

Only 8 registers are read from the top of the stack
for other threads present in the dump. So update the
script to reflect that.

Signed-off-by: Mark Holden <mholden@meta.com>
2026-04-20 17:33:37 +08:00
..
coredump_parser coredump: Enable understanding of threads in scripts 2026-04-20 17:33:37 +08:00
gdbstubs coredump: Enable thread understanding for arm cortex m 2026-04-20 17:33:37 +08:00
coredump_gdbserver.py scripts: coredump: coredump_gdbserver in pipeline 2026-04-20 17:08:42 +08:00
coredump_serial_log_parser.py treewide: Disable automatic argparse argument shortening 2026-04-20 16:11:16 +08:00