zephyr/include/zephyr/arch/xtensa
Daniel Leung 733305293a xtensa: gdbstub: fix backtracing and stack unwinding
This fixes GDB backtracing by forcibly spilling all registers,
and faking values for WINDOWSTART and WINDOWBASE. This is
effectively telling GDB that only A0-A3 and AR0-AR3 contain
active data and other physical registers do not. GDB then must
rely on spilled values on stack. Otherwise, GDB will try to
look at all AR* registers for previous frame(s). Since we
do not save all AR* register values, there is nothing for GDB
to look at, and thus failing to unwind stack.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2025-06-17 16:27:27 -05:00
..
arch.h doc: arch: Update file summary for kernel interfaces 2025-06-04 15:50:02 -04:00
arch_inlines.h build: namespace the generated headers with zephyr/ 2024-05-28 22:03:55 +02:00
atomic_xtensa.h xtensa: polish doxygen and add to missing doc 2024-01-11 21:06:03 -05:00
cache.h cache: add new interface arch_cache_init() for initializing cache 2024-09-17 20:05:22 -04:00
exception.h arch: define struct arch_esf and deprecate z_arch_esf_t 2024-06-04 14:02:51 -05:00
gdbstub.h xtensa: gdbstub: fix backtracing and stack unwinding 2025-06-17 16:27:27 -05:00
irq.h headers: arch/xtensa: Drop extern attr from functions 2024-05-20 20:49:25 -04:00
mpu.h xtensa: mpu: enable userspace support 2024-03-19 22:17:34 -04:00
syscall.h xtensa: userspace: workaround return PC calc with loops 2025-04-17 00:57:19 +02:00
thread.h xtensa: userspace: prevent potential privilege escalation 2025-04-17 00:57:19 +02:00
thread_stack.h kernel: thread: fix warning of always false 2025-02-10 22:25:32 +01:00
xtensa_mmu.h xtensa: mmu: Fix partition permission definitions 2025-03-20 17:18:44 +01:00