From 407a8389b40fa7af08cae8f1eb347c67cc2436ad Mon Sep 17 00:00:00 2001 From: Stu Grossman Date: Thu, 5 Mar 1992 20:20:27 +0000 Subject: * config.sub configure.in config/.Sanitize config/mh-irix4 gdb/.Sanitize gdb/configure.in gdb/mips-tdep.c gdb/mipsread.c gdb/procfs.c gdb/signame.h gdb/tm-irix3.h gdb/tm-mips.h gdb/xm-irix4.h gdb/config/.Sanitize gdb/config/mt-irix3 gdb/config/mh-irix4 texinfo/configure.in: Port to SGI Irix-4.x. --- gdb/tm-irix3.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'gdb/tm-irix3.h') diff --git a/gdb/tm-irix3.h b/gdb/tm-irix3.h index f62a39e..f5f3469 100644 --- a/gdb/tm-irix3.h +++ b/gdb/tm-irix3.h @@ -102,6 +102,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ to be actual register numbers as far as the user is concerned but do serve to get the desired values when passed to read_register. */ +#define A0_REGNUM 4 /* Loc of first arg during a subr call */ #define SP_REGNUM 29 /* Contains address of top of stack */ #define FP_REGNUM 30 /* Pseudo register that contains true address of executing stack frame */ #define RA_REGNUM 31 /* Contains return address value */ @@ -323,3 +324,16 @@ typedef struct mips_extra_func_info { struct frame_saved_regs *saved_regs; #define INIT_EXTRA_FRAME_INFO(fromleaf, fci) init_extra_frame_info(fci) + +/* Size of elements in jmpbuf */ + +#define JB_ELEMENT_SIZE 4 + +/* Figure out where the longjmp will land. We expect that we have just entered + longjmp and haven't yet setup the stack frame, so the args are still in the + argument regs. a0 (CALL_ARG0) points at the jmp_buf structure from which we + extract the pc (JB_PC) that we will land at. The pc is copied into ADDR. + This routine returns true on success */ + +/* Note that caller must #include in order to get def of JB_* */ +#define GET_LONGJMP_TARGET(ADDR) get_longjmp_target(ADDR) -- cgit v1.1