This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
PATCH: S/390: get return address properly when still in register
- From: Jim Blandy <jimb at zwingli dot cygnus dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: 29 Nov 2001 12:40:53 -0500
- Subject: 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;