aboutsummaryrefslogtreecommitdiff
path: root/gdb/s390-tdep.c
diff options
context:
space:
mode:
authorJim Blandy <jimb@codesourcery.com>2001-12-20 08:52:37 +0000
committerJim Blandy <jimb@codesourcery.com>2001-12-20 08:52:37 +0000
commit76cc2cf029a9b9a386c5b7fe8f5d40531a00f8ca (patch)
treed3b9953b62240b5a9512ba24bd1e675c6a61f541 /gdb/s390-tdep.c
parentc5e243bbc4b8448f588b175364eed888a2f56a2a (diff)
downloadgdb-76cc2cf029a9b9a386c5b7fe8f5d40531a00f8ca.zip
gdb-76cc2cf029a9b9a386c5b7fe8f5d40531a00f8ca.tar.gz
gdb-76cc2cf029a9b9a386c5b7fe8f5d40531a00f8ca.tar.bz2
* s390-tdep.c (s390_get_frame_info): Give orig_sp a reasonable
value, even when fextra_info->stack_bought can't be trusted,
Diffstat (limited to 'gdb/s390-tdep.c')
-rw-r--r--gdb/s390-tdep.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/s390-tdep.c b/gdb/s390-tdep.c
index db7692b..555d05f 100644
--- a/gdb/s390-tdep.c
+++ b/gdb/s390-tdep.c
@@ -285,8 +285,9 @@ s390_get_frame_info (CORE_ADDR pc, struct frame_extra_info *fextra_info,
{
if (fi && fi->frame)
{
+ orig_sp = fi->frame;
if (! init_extra_info && fextra_info->initialised)
- orig_sp = fi->frame + fextra_info->stack_bought;
+ orig_sp += fextra_info->stack_bought;
saved_regs = fi->saved_regs;
}
if (init_extra_info || !fextra_info->initialised)