From: Jim Blandy Date: Mon, 3 Dec 2001 18:48:54 +0000 (+0000) Subject: * s390-tdep.c (s390_get_frame_info): Don't used fextra_info to set X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=386e4208fceebbbd6321ca10c4cf906f9319b9f0;p=binutils-gdb.git * s390-tdep.c (s390_get_frame_info): Don't used fextra_info to set orig_sp if it's not initialized. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 732be2559d9..06ef02ea22d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2001-12-03 Jim Blandy + + * 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 * findvar.c (locate_var_value): Specify in which register a register diff --git a/gdb/s390-tdep.c b/gdb/s390-tdep.c index 4ec129c9ccc..f91b6963454 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)