This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
PATCH: S/390: fix SP in frames' saved_regs array
- From: Jim Blandy <jimb at zwingli dot cygnus dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Wed, 14 Nov 2001 17:16:14 -0500 (EST)
- Subject: PATCH: S/390: fix SP in frames' saved_regs array
2001-11-14 Jim Blandy <jimb@redhat.com>
* s390-tdep.c (s390_get_frame_info): Initialize SP's element of
the frame's saved_regs array correctly.
Index: gdb/s390-tdep.c
===================================================================
RCS file: /cvs/cvsfiles/devo/gdb/s390-tdep.c,v
retrieving revision 2.12
diff -c -r2.12 s390-tdep.c
*** gdb/s390-tdep.c 2001/11/13 17:45:42 2.12
--- gdb/s390-tdep.c 2001/11/14 22:04:27
***************
*** 596,601 ****
--- 596,605 ----
fextra_info->skip_prologue_function_start =
(good_prologue ? test_pc : pc);
}
+ if (saved_regs)
+ /* The SP's element of the saved_regs array holds the old SP,
+ not the address at which it is saved. */
+ saved_regs[S390_SP_REGNUM] = orig_sp;
return err;
}