From 0dadbba0df8779acb1ad0b516397f8afbf444740 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Thu, 11 May 2000 03:40:08 +0000 Subject: Add preliminary support for IRIX's n32 abi to the MIPS's multi-arch code. --- gdb/config/mips/tm-irix5.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'gdb/config/mips/tm-irix5.h') diff --git a/gdb/config/mips/tm-irix5.h b/gdb/config/mips/tm-irix5.h index 0fd7a86..19b8dbe 100644 --- a/gdb/config/mips/tm-irix5.h +++ b/gdb/config/mips/tm-irix5.h @@ -18,6 +18,17 @@ 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 @@ -59,6 +70,9 @@ parameters. */ #define MIPS_REGS_HAVE_HOME_P 0 +/* Force N32 ABI as the default. */ +#define MIPS_DEFAULT_ABI MIPS_ABI_N32 + #endif /* N32 */ -- cgit v1.1