[arm] Add support for FPU registers in prologue unwinder
authorYvan Roux <yvan.roux@foss.st.com>
Wed, 1 Jun 2022 11:08:00 +0000 (11:08 +0000)
committerLuis Machado <luis.machado@arm.com>
Wed, 1 Jun 2022 10:14:36 +0000 (11:14 +0100)
The prologue unwinder had support for FPU registers, but only to
calculate the correct offset on the stack, the values were not saved.

Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@st.com>
Signed-off-by: Yvan Roux <yvan.roux@foss.st.com>
gdb/arm-tdep.c

index d35c49bc1eae6294d688a9b2d862ba19d14c0f10..5fbd730c5a5adb999610dfdf443a370b8ac31ee2 100644 (file)
@@ -1437,7 +1437,7 @@ thumb_analyze_prologue (struct gdbarch *gdbarch,
       cache->framesize = -regs[ARM_SP_REGNUM].k;
     }
 
-  for (i = 0; i < 16; i++)
+  for (i = 0; i < gdbarch_num_regs (gdbarch); i++)
     if (stack.find_reg (gdbarch, i, &offset))
       cache->saved_regs[i].set_addr (offset);