aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorJim Blandy <jimb@codesourcery.com>2001-12-03 18:48:54 +0000
committerJim Blandy <jimb@codesourcery.com>2001-12-03 18:48:54 +0000
commit386e4208fceebbbd6321ca10c4cf906f9319b9f0 (patch)
tree8f7984dec5312d48dd8aae0b7f11307929a44916 /gdb
parent2299ff437b1aaa7db94114b26e4bbc00b6e7c33b (diff)
downloadgdb-386e4208fceebbbd6321ca10c4cf906f9319b9f0.zip
gdb-386e4208fceebbbd6321ca10c4cf906f9319b9f0.tar.gz
gdb-386e4208fceebbbd6321ca10c4cf906f9319b9f0.tar.bz2
* s390-tdep.c (s390_get_frame_info): Don't used fextra_info to set
orig_sp if it's not initialized.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/s390-tdep.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 732be25..06ef02e 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2001-12-03 Jim Blandy <jimb@redhat.com>
+
+ * s390-tdep.c (s390_get_frame_info): Don't used fextra_info to set
+ orig_sp if it's not initialized.
+
2001-11-30 Pierre Muller <muller@ics.u-strasbg.fr>
* findvar.c (locate_var_value): Specify in which register a register
diff --git a/gdb/s390-tdep.c b/gdb/s390-tdep.c
index 4ec129c..f91b696 100644
--- a/gdb/s390-tdep.c
+++ b/gdb/s390-tdep.c
@@ -242,7 +242,8 @@ s390_get_frame_info (CORE_ADDR pc, struct frame_extra_info *fextra_info,
{
if (fi && fi->frame)
{
- orig_sp = fi->frame + fextra_info->stack_bought;
+ if (! init_extra_info && fextra_info->initialised)
+ orig_sp = fi->frame + fextra_info->stack_bought;
saved_regs = fi->saved_regs;
}
if (init_extra_info || !fextra_info->initialised)