]> Git Repo - binutils.git/blame - gdb/config/mips/tm-irix5.h
New files for Irix 5 support.
[binutils.git] / gdb / config / mips / tm-irix5.h
CommitLineData
a2f1e2e5
ILT
1/* Target machine description for SGI Iris under Irix 5, for GDB.
2 Copyright 1990, 1991, 1992, 1993 Free Software Foundation, Inc.
3
4This file is part of GDB.
5
6This program is free software; you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published by
8the Free Software Foundation; either version 2 of the License, or
9(at your option) any later version.
10
11This program is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with this program; if not, write to the Free Software
18Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
19
20#include "mips/tm-irix3.h"
21
22/* A function call in Irix 5 will sometimes skip the three initial
23 instructions which set the GP. */
24#define AT_FUNCTION_START(pc,func_name,func_addr) ((pc) == (func_addr) + 12)
25
26/* When calling functions on Irix 5 (or any MIPS SVR4 ABI compliant
27 platform) $25 must hold the function address. Dest_Reg is a macro
28 used in CALL_DUMMY in tm-mips.h. */
29#undef Dest_Reg
30#define Dest_Reg 25
31
32/* Irix 5 saves a full 64 bits for each register. We skip 2 * 4 to
33 get to the saved PC (the register mask and status register are both
34 32 bits) and then another 4 to get to the lower 32 bits. We skip
35 the same 4 bytes, plus the 8 bytes for the PC to get to the
36 registers, and add another 4 to get to the lower 32 bits. We skip
37 8 bytes per register. */
38#undef SIGFRAME_PC_OFF
39#define SIGFRAME_PC_OFF (SIGFRAME_BASE + 2 * 4 + 4)
40#undef SIGFRAME_REGSAVE_OFF
41#define SIGFRAME_REGSAVE_OFF (SIGFRAME_BASE + 2 * 4 + 8 + 4)
42#define SIGFRAME_REG_SIZE 8
This page took 0.025376 seconds and 4 git commands to generate.