From e05ba37d1f82041c0d58e70dcb2654099d430dbd Mon Sep 17 00:00:00 2001 From: Stu Grossman Date: Tue, 7 Apr 1992 23:09:50 +0000 Subject: [PATCH] * m68k-tdep.c, tm-sun3.h: #ifdef around get_longjmp_target(). Change def of SAVED_PC_AFTER_CALL to call routine to see if we are in a system call, and provide better backtrace if so. --- gdb/ChangeLog | 4 ++++ gdb/tm-sun3.h | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 4a35defb6e..2f7f12d3b0 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,9 @@ Tue Apr 7 08:45:46 1992 Stu Grossman (grossman at cygnus.com) + * m68k-tdep.c, tm-sun3.h: #ifdef around get_longjmp_target(). + Change def of SAVED_PC_AFTER_CALL to call routine to see if we are + in a system call, and provide better backtrace if so. + * Makefile.in (HFILES): Add xcoffsolib.h. * rs6k-opcode.h: Move to ../include/opcode/rs6k.h. * rs6000-pinsn.c: #include "opcode/rs6k.h" diff --git a/gdb/tm-sun3.h b/gdb/tm-sun3.h index 528794e0d1..0169199795 100644 --- a/gdb/tm-sun3.h +++ b/gdb/tm-sun3.h @@ -66,3 +66,10 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ This routine returns true on success */ #define GET_LONGJMP_TARGET(ADDR) get_longjmp_target(ADDR) + +#undef SAVED_PC_AFTER_CALL + +extern CORE_ADDR sun3_saved_pc_after_call PARAMS ((struct frame_info *)); + +#define SAVED_PC_AFTER_CALL(frame) \ + sun3_saved_pc_after_call(frame)