diff options
author | Yvan Roux <yvan.roux@foss.st.com> | 2022-06-01 11:08:00 +0000 |
---|---|---|
committer | Luis Machado <luis.machado@arm.com> | 2022-06-01 11:14:36 +0100 |
commit | de76473c2d9fadca1374992fdd22887a799c2e3e (patch) | |
tree | fd9b66e707bd9c722f6abc63defdaa8216c74b77 | |
parent | 39fc7ff66b30f1581d4a1a97e6857b6bfcccf860 (diff) | |
download | gdb-de76473c2d9fadca1374992fdd22887a799c2e3e.zip gdb-de76473c2d9fadca1374992fdd22887a799c2e3e.tar.gz gdb-de76473c2d9fadca1374992fdd22887a799c2e3e.tar.bz2 |
[arm] Add support for FPU registers in prologue unwinder
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>
-rw-r--r-- | gdb/arm-tdep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c index d35c49b..5fbd730 100644 --- a/gdb/arm-tdep.c +++ b/gdb/arm-tdep.c @@ -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); |