Skip to content
Commit 73330529 authored by Daniel Leung's avatar Daniel Leung Committed by Daniel DeGrasse
Browse files

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: default avatarDaniel Leung <daniel.leung@intel.com>
parent c7841ce4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment