aboutsummaryrefslogtreecommitdiff
path: root/gdb/tm-irix3.h
diff options
context:
space:
mode:
authorStu Grossman <grossman@cygnus>1992-03-05 20:20:27 +0000
committerStu Grossman <grossman@cygnus>1992-03-05 20:20:27 +0000
commit407a8389b40fa7af08cae8f1eb347c67cc2436ad (patch)
tree406cb28847fadd93989dfe892e36c65eb1dc65de /gdb/tm-irix3.h
parentd7eddc517782bf0673e4bcd15c4159ae5799a247 (diff)
downloadgdb-407a8389b40fa7af08cae8f1eb347c67cc2436ad.zip
gdb-407a8389b40fa7af08cae8f1eb347c67cc2436ad.tar.gz
gdb-407a8389b40fa7af08cae8f1eb347c67cc2436ad.tar.bz2
* 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.
Diffstat (limited to 'gdb/tm-irix3.h')
-rw-r--r--gdb/tm-irix3.h14
1 files changed, 14 insertions, 0 deletions
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 <setjmp.h> in order to get def of JB_* */
+#define GET_LONGJMP_TARGET(ADDR) get_longjmp_target(ADDR)