aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/mips-tdep.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 322762f..6158d72 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
+
+ * 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 <amodra@gmail.com>
* 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 c7684f8..f83bc99 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)