diff options
author | Jim Blandy <jimb@codesourcery.com> | 2001-12-20 08:52:37 +0000 |
---|---|---|
committer | Jim Blandy <jimb@codesourcery.com> | 2001-12-20 08:52:37 +0000 |
commit | 8a92efa1a9ed867e670a2b6f87c9e65abce38d25 (patch) | |
tree | d91a67a969bdf89c5652525ac8e6ba185c612fd5 | |
parent | 030aee049d1b481bc7e3d4444c484d18784a380d (diff) | |
download | gdb-8a92efa1a9ed867e670a2b6f87c9e65abce38d25.tar.gz |
* s390-tdep.c (s390_get_frame_info): Give orig_sp a reasonable
value, even when fextra_info->stack_bought can't be trusted,
-rw-r--r-- | gdb/ChangeLog | 3 | ||||
-rw-r--r-- | gdb/s390-tdep.c | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d4888d3c78a..6246f804950 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,8 @@ 2001-12-19 Jim Blandy <jimb@redhat.com> + * s390-tdep.c (s390_get_frame_info): Give orig_sp a reasonable + value, even when fextra_info->stack_bought can't be trusted, + * s390-tdep.c (s390_readinstruction): Don't call info->read_memory_func to read zero bytes. Some targets' xfer_memory functions can't cope with that. diff --git a/gdb/s390-tdep.c b/gdb/s390-tdep.c index db7692b4472..555d05f2a71 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) |