* mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero

if $fp is used as the virtual frame pointer.
This commit is contained in:
Maciej W. Rozycki
2013-02-24 12:54:04 +00:00
parent 95ab2206e0
commit ca9c94efe7
2 changed files with 6 additions and 0 deletions

View File

@@ -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)