zephyr/arch/arm/core/cortex_m
Mark Holden 8bd4f244b0 coredump: ARM: Ensure sp in dump is set as gdb expects
Gdb is typically able to reconstruct the first two frames of the
failing stack using the "pc" and "lr" registers. After that, (if
the frame pointer is omitted) it appears to need the stack pointer
(sp register) to point to the top of the stack before a fatal
error occurred.

The ARM Cortex-M processors push registers r0-r3, r12, LR,
{possibly FPU registers}, PC, SPSR onto the stack before entering the
exception handler. We adjust the stack pointer back to the point
before these registers were pushed for preservation in the dump.

During k_oops/k_panic, the sp wasn't stored in the core dump at all.
Apply similar logic to store it when failures occur in that path.

Signed-off-by: Mark Holden <mholden@meta.com>
2024-11-06 10:17:59 -08:00
..
cmse
tz
CMakeLists.txt
Kconfig
__aeabi_read_tp.S
cache.c
coredump.c
cpu_idle.c
debug.c
exc_exit.c
fault.c coredump: ARM: Ensure sp in dump is set as gdb expects 2024-11-06 10:17:59 -08:00
fault_s.S
fpu.c
irq_init.c
irq_manage.c
irq_relay.S
isr_wrapper.c
pm_s2ram.S arch: arm: cortex_m: pm_s2ram: Rework S2RAM mark functions 2024-10-25 13:58:37 +02:00
pm_s2ram.c arch: arm: cortex_m: pm_s2ram: Rework S2RAM mark functions 2024-10-25 13:58:37 +02:00
prep_c.c
relay_vector_table.ld
reset.S
scb.c
semihost.c
swap.c Revert "arch: arm: cortex_m: move part of swap_helper to C" 2024-11-01 13:54:44 -05:00
swap_helper.S coredump: ARM: Ensure sp in dump is set as gdb expects 2024-11-06 10:17:59 -08:00
thread.c arch: arm: cortex_m: add memory to the clobber list 2024-10-31 14:16:48 -05:00
thread_abort.c
timing.c timing: fix ARM Cortex-M timing functions wrap-around issue 2024-10-29 07:09:34 -05:00
vector_table.S
vector_table.h
vector_table_pad.ld
vt_pointer_section.ld