From ca9c94efe7274a37f4007a29770575d649856dce Mon Sep 17 00:00:00 2001 From: "Maciej W. Rozycki" Date: Sun, 24 Feb 2013 12:54:04 +0000 Subject: [PATCH] * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero if $fp is used as the virtual frame pointer. --- gdb/ChangeLog | 5 +++++ gdb/mips-tdep.c | 1 + 2 files changed, 6 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 322762f267f..6158d7286dc 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2013-02-24 Maciej W. Rozycki + + * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero + if $fp is used as the virtual frame pointer. + 2013-02-23 Alan Modra * elfread.c (elf_symtab_read): Do not use udata.p here to find diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c index c7684f860d1..f83bc99295e 100644 --- a/gdb/mips-tdep.c +++ b/gdb/mips-tdep.c @@ -3273,6 +3273,7 @@ restart: frame_reg = 30; frame_addr = get_frame_register_signed (this_frame, gdbarch_num_regs (gdbarch) + 30); + frame_offset = 0; alloca_adjust = (unsigned) (frame_addr - (sp + low_word)); if (alloca_adjust > 0) -- 2.30.2