Commit | Line | Data |
---|---|---|
e6031aeb | 1 | /* Target-dependent definitions for FreeBSD/i386. |
b7247919 | 2 | Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc. |
c906108c | 3 | |
c5aa993b JM |
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 | |
18 | Foundation, Inc., 59 Temple Place - Suite 330, | |
19 | Boston, MA 02111-1307, USA. */ | |
c906108c | 20 | |
e6031aeb MK |
21 | #ifndef TM_FBSD_H |
22 | #define TM_FBSD_H | |
c906108c | 23 | |
e6031aeb MK |
24 | #define HAVE_I387_REGS |
25 | #include "i386/tm-i386.h" | |
c906108c | 26 | |
b7247919 MK |
27 | /* These defines allow the recognition of sigtramps as a function name |
28 | <sigtramp>. | |
29 | ||
8201327c MK |
30 | FIXME: kettenis/2002-05-12: Of course these defines will have to go |
31 | if we go truly "multi-arch", but I don't know yet how to get rid of | |
32 | them. */ | |
e6031aeb | 33 | |
8201327c MK |
34 | #define SIGTRAMP_START(pc) i386bsd_sigtramp_start (pc) |
35 | #define SIGTRAMP_END(pc) i386bsd_sigtramp_end (pc) | |
36 | extern CORE_ADDR i386bsd_sigtramp_start (CORE_ADDR pc); | |
37 | extern CORE_ADDR i386bsd_sigtramp_end (CORE_ADDR pc); | |
e6031aeb MK |
38 | |
39 | /* Shared library support. */ | |
40 | ||
41 | #ifndef SVR4_SHARED_LIBS | |
42 | ||
43 | /* Return non-zero if we are in a shared library trampoline code stub. */ | |
44 | ||
45 | #define IN_SOLIB_CALL_TRAMPOLINE(pc, name) \ | |
46 | (name && !strcmp(name, "_DYNAMIC")) | |
47 | ||
48 | #endif /* !SVR4_SHARED_LIBS */ | |
49 | ||
50 | #endif /* TM_FBSD_H */ |