]>
Commit | Line | Data |
---|---|---|
c906108c SS |
1 | /* Target machine description for MIPS running SVR4, for GDB. |
2 | Copyright 1994, 1995 Free Software Foundation, Inc. | |
3 | ||
c5aa993b | 4 | This file is part of GDB. |
c906108c | 5 | |
c5aa993b JM |
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. | |
c906108c | 10 | |
c5aa993b JM |
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. | |
c906108c | 15 | |
c5aa993b JM |
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 | |
18 | Foundation, Inc., 59 Temple Place - Suite 330, | |
19 | Boston, MA 02111-1307, USA. */ | |
c906108c SS |
20 | |
21 | #include "mips/tm-bigmips.h" | |
22 | #include "tm-sysv4.h" | |
23 | ||
24 | /* When calling functions on a MIPS SVR4 ABI compliant platform | |
25 | $25 must hold the function address. Dest_Reg is a macro | |
26 | used in CALL_DUMMY in tm-mips.h. */ | |
27 | #undef Dest_Reg | |
28 | #define Dest_Reg 25 | |
29 | ||
30 | /* The signal handler trampoline is called _sigtramp. */ | |
31 | #undef IN_SIGTRAMP | |
32 | #define IN_SIGTRAMP(pc, name) ((name) && STREQ ("_sigtramp", name)) | |
c5aa993b | 33 | |
c906108c SS |
34 | /* On entry to the signal handler trampoline, an ucontext is already |
35 | pushed on the stack. We can get at the saved registers via the | |
36 | mcontext which is contained within the ucontext. */ | |
37 | #define SIGFRAME_BASE 0 | |
38 | #define SIGFRAME_REGSAVE_OFF (SIGFRAME_BASE + 40) | |
39 | #define SIGFRAME_PC_OFF (SIGFRAME_BASE + 40 + 35 * 4) | |
40 | #define SIGFRAME_FPREGSAVE_OFF (SIGFRAME_BASE + 40 + 36 * 4) | |
41 | ||
42 | /* Use the alternate method of determining valid frame chains. */ | |
43 | #define FRAME_CHAIN_VALID(fp,fi) alternate_frame_chain_valid (fp, fi) | |
44 | ||
45 | /* Convert a DWARF register number to a gdb REGNUM. */ | |
46 | #define DWARF_REG_TO_REGNUM(num) ((num) < 32 ? (num) : (num)+FP0_REGNUM-32) |