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: get return address properly when still in register



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

	* s390-tdep.c (s390_frame_saved_pc_nofix): If the prologue didn't
	save the return address register, assume that the return address
	is still in there.

Index: gdb/s390-tdep.c
===================================================================
RCS file: /cvs/cvsfiles/devo/gdb/s390-tdep.c,v
retrieving revision 2.21
diff -c -r2.21 s390-tdep.c
*** gdb/s390-tdep.c	2001/11/28 03:41:53	2.21
--- gdb/s390-tdep.c	2001/11/29 04:59:51
***************
*** 901,906 ****
--- 901,908 ----
  					(fi->saved_regs[S390_RETADDR_REGNUM],
  					 S390_GPR_SIZE)));
  	    }
+           else
+             return read_register (S390_RETADDR_REGNUM);
  	}
      }
    return 0;


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