From de76473c2d9fadca1374992fdd22887a799c2e3e Mon Sep 17 00:00:00 2001 From: Yvan Roux Date: Wed, 1 Jun 2022 11:08:00 +0000 Subject: [PATCH] [arm] Add support for FPU registers in prologue unwinder MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Yvan Roux --- gdb/arm-tdep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c index d35c49bc1ea..5fbd730c5a5 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); -- 2.30.2