* s390-tdep.c (s390_get_frame_info): Give orig_sp a reasonable

value, even when fextra_info->stack_bought can't be trusted,
This commit is contained in:
Jim Blandy 2001-12-20 08:52:37 +00:00
parent c5e243bbc4
commit 76cc2cf029
2 changed files with 5 additions and 1 deletions

View File

@ -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.

View File

@ -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)