This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH: S/390: fix SP in frames' saved_regs array



2001-11-14  Jim Blandy  <jimb@redhat.com>

	* s390-tdep.c (s390_get_frame_info): Initialize SP's element of
	the frame's saved_regs array correctly.

Index: gdb/s390-tdep.c
===================================================================
RCS file: /cvs/cvsfiles/devo/gdb/s390-tdep.c,v
retrieving revision 2.12
diff -c -r2.12 s390-tdep.c
*** gdb/s390-tdep.c	2001/11/13 17:45:42	2.12
--- gdb/s390-tdep.c	2001/11/14 22:04:27
***************
*** 596,601 ****
--- 596,605 ----
        fextra_info->skip_prologue_function_start =
  	(good_prologue ? test_pc : pc);
      }
+   if (saved_regs)
+     /* The SP's element of the saved_regs array holds the old SP,
+        not the address at which it is saved.  */
+     saved_regs[S390_SP_REGNUM] = orig_sp;
    return err;
  }
  


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]