Commit | Line | Data |
---|---|---|
c906108c | 1 | /* Target machine description for MIPS running SVR4, for GDB. |
b6ba6518 | 2 | Copyright 1994, 1995, 1998, 1999, 2000 Free Software Foundation, Inc. |
c906108c | 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 | 20 | |
5e045346 | 21 | #include "mips/tm-mips.h" |
4f2e4a4f | 22 | #include "config/tm-sysv4.h" |
c906108c | 23 | |
c906108c SS |
24 | /* The signal handler trampoline is called _sigtramp. */ |
25 | #undef IN_SIGTRAMP | |
cb137aa5 | 26 | #define IN_SIGTRAMP(pc, name) ((name) && DEPRECATED_STREQ ("_sigtramp", name)) |
c5aa993b | 27 | |
c906108c SS |
28 | /* On entry to the signal handler trampoline, an ucontext is already |
29 | pushed on the stack. We can get at the saved registers via the | |
30 | mcontext which is contained within the ucontext. */ | |
31 | #define SIGFRAME_BASE 0 | |
32 | #define SIGFRAME_REGSAVE_OFF (SIGFRAME_BASE + 40) | |
33 | #define SIGFRAME_PC_OFF (SIGFRAME_BASE + 40 + 35 * 4) | |
34 | #define SIGFRAME_FPREGSAVE_OFF (SIGFRAME_BASE + 40 + 36 * 4) | |
35 | ||
c906108c SS |
36 | /* Convert a DWARF register number to a gdb REGNUM. */ |
37 | #define DWARF_REG_TO_REGNUM(num) ((num) < 32 ? (num) : (num)+FP0_REGNUM-32) |