Commit | Line | Data |
---|---|---|
376f8f68 | 1 | /* Target machine description for MIPS running SVR4, for GDB. |
e3c05e17 | 2 | Copyright 1994, 1995 Free Software Foundation, Inc. |
376f8f68 PS |
3 | |
4 | This file is part of GDB. | |
5 | ||
6 | This program is free software; you can redistribute it and/or modify | |
7 | it under the terms of the GNU General Public License as published by | |
8 | the Free Software Foundation; either version 2 of the License, or | |
9 | (at your option) any later version. | |
10 | ||
11 | This program is distributed in the hope that it will be useful, | |
12 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 | GNU General Public License for more details. | |
15 | ||
16 | You should have received a copy of the GNU General Public License | |
17 | along with this program; if not, write to the Free Software | |
6c9638b4 | 18 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ |
376f8f68 PS |
19 | |
20 | #include "mips/tm-bigmips.h" | |
21 | #include "tm-sysv4.h" | |
22 | ||
23 | /* When calling functions on a MIPS SVR4 ABI compliant platform | |
24 | $25 must hold the function address. Dest_Reg is a macro | |
25 | used in CALL_DUMMY in tm-mips.h. */ | |
26 | #undef Dest_Reg | |
27 | #define Dest_Reg 25 | |
28 | ||
29 | /* The signal handler trampoline is called _sigtramp. */ | |
30 | #undef IN_SIGTRAMP | |
31 | #define IN_SIGTRAMP(pc, name) ((name) && STREQ ("_sigtramp", name)) | |
32 | ||
33 | /* On entry to the signal handler trampoline, an ucontext is already | |
34 | pushed on the stack. We can get at the saved registers via the | |
35 | mcontext which is contained within the ucontext. */ | |
36 | #define SIGFRAME_BASE 0 | |
37 | #define SIGFRAME_REGSAVE_OFF (SIGFRAME_BASE + 40) | |
38 | #define SIGFRAME_PC_OFF (SIGFRAME_BASE + 40 + 35 * 4) | |
e3c05e17 | 39 | #define SIGFRAME_FPREGSAVE_OFF (SIGFRAME_BASE + 40 + 36 * 4) |
376f8f68 PS |
40 | |
41 | /* Use the alternate method of determining valid frame chains. */ | |
b6960094 | 42 | #define FRAME_CHAIN_VALID(fp,fi) alternate_frame_chain_valid (fp, fi) |
84bdfea6 PS |
43 | |
44 | /* Convert a DWARF register number to a gdb REGNUM. */ | |
45 | #define DWARF_REG_TO_REGNUM(num) ((num) < 32 ? (num) : (num)+FP0_REGNUM-32) |