diff options
author | Jim Blandy <jimb@codesourcery.com> | 2001-12-03 18:48:54 +0000 |
---|---|---|
committer | Jim Blandy <jimb@codesourcery.com> | 2001-12-03 18:48:54 +0000 |
commit | 386e4208fceebbbd6321ca10c4cf906f9319b9f0 (patch) | |
tree | 8f7984dec5312d48dd8aae0b7f11307929a44916 /gdb | |
parent | 2299ff437b1aaa7db94114b26e4bbc00b6e7c33b (diff) | |
download | gdb-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/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/s390-tdep.c | 3 |
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) |