8 changed files with 4849 additions and 0 deletions
@ -0,0 +1,8 @@ |
|||
# Host: SGI Iris running irix 5.x |
|||
XDEPFILES= ser-tcp.o |
|||
XM_FILE= xm-irix5.h |
|||
NAT_FILE= nm-irix5.h |
|||
NATDEPFILES= fork-child.o procfs.o irix5-nat.o corelow.o |
|||
MUNCH_DEFINE=-B |
|||
XM_CLIBS=-lbsd -lsun |
|||
INSTALL = cp |
|||
@ -0,0 +1,3 @@ |
|||
# Target: SGI mips running Irix 5 |
|||
TDEPFILES= mips-pinsn.o mips-tdep.o exec.o |
|||
TM_FILE= tm-irix5.h |
|||
@ -0,0 +1,42 @@ |
|||
/* Target machine description for SGI Iris under Irix 5, for GDB.
|
|||
Copyright 1990, 1991, 1992, 1993 Free Software Foundation, Inc. |
|||
|
|||
This file is part of GDB. |
|||
|
|||
This program is free software; you can redistribute it and/or modify |
|||
it under the terms of the GNU General Public License as published by |
|||
the Free Software Foundation; either version 2 of the License, or |
|||
(at your option) any later version. |
|||
|
|||
This program is distributed in the hope that it will be useful, |
|||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
GNU General Public License for more details. |
|||
|
|||
You should have received a copy of the GNU General Public License |
|||
along with this program; if not, write to the Free Software |
|||
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ |
|||
|
|||
#include "mips/tm-irix3.h" |
|||
|
|||
/* A function call in Irix 5 will sometimes skip the three initial
|
|||
instructions which set the GP. */ |
|||
#define AT_FUNCTION_START(pc,func_name,func_addr) ((pc) == (func_addr) + 12) |
|||
|
|||
/* 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 |
|||
|
|||
/* Irix 5 saves a full 64 bits for each register. We skip 2 * 4 to
|
|||
get to the saved PC (the register mask and status register are both |
|||
32 bits) and then another 4 to get to the lower 32 bits. We skip |
|||
the same 4 bytes, plus the 8 bytes for the PC to get to the |
|||
registers, and add another 4 to get to the lower 32 bits. We skip |
|||
8 bytes per register. */ |
|||
#undef SIGFRAME_PC_OFF |
|||
#define SIGFRAME_PC_OFF (SIGFRAME_BASE + 2 * 4 + 4) |
|||
#undef SIGFRAME_REGSAVE_OFF |
|||
#define SIGFRAME_REGSAVE_OFF (SIGFRAME_BASE + 2 * 4 + 8 + 4) |
|||
#define SIGFRAME_REG_SIZE 8 |
|||
@ -0,0 +1,34 @@ |
|||
/* Definitions for irix5 hosting support.
|
|||
|
|||
Copyright (C) 1993 Free Software Foundation, Inc. |
|||
|
|||
This file is part of GDB. |
|||
|
|||
This program is free software; you can redistribute it and/or modify |
|||
it under the terms of the GNU General Public License as published by |
|||
the Free Software Foundation; either version 2 of the License, or |
|||
(at your option) any later version. |
|||
|
|||
This program is distributed in the hope that it will be useful, |
|||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
GNU General Public License for more details. |
|||
|
|||
You should have received a copy of the GNU General Public License |
|||
along with this program; if not, write to the Free Software |
|||
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ |
|||
|
|||
#include "xm-sysv4.h" |
|||
|
|||
#define HOST_BYTE_ORDER BIG_ENDIAN |
|||
|
|||
/* Override register locations in upage for SGI machines */ |
|||
#undef REGISTER_U_ADDR |
|||
#define REGISTER_U_ADDR(addr, blockend, regno) \ |
|||
if (regno < PC_REGNUM) \ |
|||
addr = regno; \ |
|||
else \ |
|||
addr = regno + NSIG_HNDLRS; /* Skip over signal handlers */ |
|||
|
|||
/* Mips hosts need aligned va_list arguments. */ |
|||
#include "mips/xm-makeva.h" |
|||
File diff suppressed because it is too large
File diff suppressed because it is too large
Loading…
Reference in new issue