summaryrefslogtreecommitdiff
path: root/gdb/config/mips/tm-irix5.h
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/config/mips/tm-irix5.h')
-rw-r--r--gdb/config/mips/tm-irix5.h35
1 files changed, 27 insertions, 8 deletions
diff --git a/gdb/config/mips/tm-irix5.h b/gdb/config/mips/tm-irix5.h
index 7f828c3aa97..19b8dbe5df3 100644
--- a/gdb/config/mips/tm-irix5.h
+++ b/gdb/config/mips/tm-irix5.h
@@ -1,5 +1,5 @@
/* Target machine description for SGI Iris under Irix 5, for GDB.
- Copyright 1990, 1991, 1992, 1993, 1995 Free Software Foundation, Inc.
+ Copyright 1990-1993, 1995, 2000 Free Software Foundation, Inc.
This file is part of GDB.
@@ -18,8 +18,23 @@
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
+/* If we're being built for n32, enable multi-arch. */
+/* FIXME: cagney/2000-04-04: Testing the _MIPS_SIM_NABI32 and
+ _MIPS_SIM in a tm-*.h file is simply wrong! Those are
+ host-dependant macros (provided by /usr/include) and stop any
+ chance of the target being cross compiled */
+#if 0 && defined (_MIPS_SIM_NABI32) && _MIPS_SIM == _MIPS_SIM_NABI32
+/* FIXME: Don't enable multi-arch for IRIX/n32. The test
+ ``gdb.base/corefile.exp: up in corefile.exp'' fails. */
+#define GDB_MULTI_ARCH 1
+#endif
+
#include "mips/tm-irix3.h"
+/* FIXME: cagney/2000-04-04: Testing the _MIPS_SIM_NABI32 and
+ _MIPS_SIM in a tm-*.h file is simply wrong! Those are
+ host-dependant macros (provided by /usr/include) and stop any
+ chance of the target being cross compiled */
#if defined (_MIPS_SIM_NABI32) && _MIPS_SIM == _MIPS_SIM_NABI32
/*
* Irix 6 (n32 ABI) has 32-bit GP regs and 64-bit FP regs
@@ -46,16 +61,20 @@
#undef MIPS_LAST_ARG_REGNUM
#define MIPS_LAST_ARG_REGNUM 11 /* N32 uses R4 through R11 for args */
-#undef MIPS_NUM_ARG_REGS
-#define MIPS_NUM_ARG_REGS 8
+/* MIPS_STACK_ARGSIZE -- how many bytes does a pushed function arg take
+ up on the stack? For the n32 ABI, eight bytes are reserved for each
+ register. Like MIPS_SAVED_REGSIZE but different. */
+#define MIPS_DEFAULT_STACK_ARGSIZE 8
+
+/* N32 does not reserve home space for registers used to carry
+ parameters. */
+#define MIPS_REGS_HAVE_HOME_P 0
+
+/* Force N32 ABI as the default. */
+#define MIPS_DEFAULT_ABI MIPS_ABI_N32
#endif /* N32 */
-/* When calling functions on Irix 5 (or any MIPS SVR4 ABI compliant
- platform) $25 must hold the function address. Dest_Reg is a macro
- used in CALL_DUMMY in tm-mips.h. */
-#undef Dest_Reg
-#define Dest_Reg 25
/* The signal handler trampoline is called _sigtramp. */
#undef IN_SIGTRAMP