aboutsummaryrefslogtreecommitdiff
path: root/gdb/s390-tdep.c
diff options
context:
space:
mode:
authorJim Blandy <jimb@codesourcery.com>2001-11-14 22:14:11 +0000
committerJim Blandy <jimb@codesourcery.com>2001-11-14 22:14:11 +0000
commit0902523724e9bf09e5e3e35dc4ecd79b0843db3f (patch)
treef0504c36f2632ca841bd0d325ed35b0419ab8b79 /gdb/s390-tdep.c
parent0d43edd16b169d15b68057598cf970436fc2c6f8 (diff)
downloadgdb-0902523724e9bf09e5e3e35dc4ecd79b0843db3f.zip
gdb-0902523724e9bf09e5e3e35dc4ecd79b0843db3f.tar.gz
gdb-0902523724e9bf09e5e3e35dc4ecd79b0843db3f.tar.bz2
* s390-tdep.c (s390_get_frame_info): Initialize SP's element of
the frame's saved_regs array correctly.
Diffstat (limited to 'gdb/s390-tdep.c')
-rw-r--r--gdb/s390-tdep.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/s390-tdep.c b/gdb/s390-tdep.c
index 7389637..2e78f2a 100644
--- a/gdb/s390-tdep.c
+++ b/gdb/s390-tdep.c
@@ -596,6 +596,10 @@ s390_get_frame_info (CORE_ADDR pc, struct frame_extra_info *fextra_info,
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;
}