* s390-tdep.c (s390_get_frame_info): Don't used fextra_info to set
authorJim Blandy <jimb@codesourcery.com>
Mon, 3 Dec 2001 18:48:54 +0000 (18:48 +0000)
committerJim Blandy <jimb@codesourcery.com>
Mon, 3 Dec 2001 18:48:54 +0000 (18:48 +0000)
orig_sp if it's not initialized.

gdb/ChangeLog
gdb/s390-tdep.c

index 732be2559d9ef56451ce15ae73fb1380b6d6e330..06ef02ea22dcaa1c353e0780987dbc316b6502c9 100644 (file)
@@ -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
index 4ec129c9cccf10037c2d39be5b16cfcabc591264..f91b6963454ac543d81e121228a4793fc62e0240 100644 (file)
@@ -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)