Commit | Line | Data |
---|---|---|
f8d13125 | 1 | /* Native support for GNU/Linux. |
92362027 | 2 | |
10d6c8cd DJ |
3 | Copyright 1999, 2000, 2001, 2002, 2003, 2004, 2005 |
4 | Free Software Foundation, Inc. | |
c2d11a7d JM |
5 | |
6 | This file is part of GDB. | |
7 | ||
8 | This program is free software; you can redistribute it and/or modify | |
9 | it under the terms of the GNU General Public License as published by | |
10 | the Free Software Foundation; either version 2 of the License, or | |
11 | (at your option) any later version. | |
12 | ||
13 | This program is distributed in the hope that it will be useful, | |
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 | GNU General Public License for more details. | |
17 | ||
18 | You should have received a copy of the GNU General Public License | |
19 | along with this program; if not, write to the Free Software | |
20 | Foundation, Inc., 59 Temple Place - Suite 330, | |
21 | Boston, MA 02111-1307, USA. */ | |
22 | ||
da3331ec AC |
23 | struct target_ops; |
24 | ||
92362027 | 25 | /* GNU/Linux is SVR4-ish but its /proc file system isn't. */ |
c2d11a7d JM |
26 | #undef USE_PROC_FS |
27 | ||
a14bd2ea MK |
28 | /* Since we're building a native debugger, we can include <signal.h> |
29 | to find the range of real-time signals. */ | |
30 | ||
31 | #include <signal.h> | |
32 | ||
33 | #ifdef __SIGRTMIN | |
34 | #define REALTIME_LO __SIGRTMIN | |
35 | #define REALTIME_HI (__SIGRTMAX + 1) | |
36 | #endif | |
37 | ||
11d18042 MK |
38 | /* We define this if link.h is available, because with ELF we use SVR4 |
39 | style shared libraries. */ | |
c2d11a7d JM |
40 | |
41 | #ifdef HAVE_LINK_H | |
11d18042 | 42 | #include "solib.h" /* Support for shared libraries. */ |
c2d11a7d | 43 | #endif |
11d18042 | 44 | \f |
c2d11a7d | 45 | |
a14bd2ea MK |
46 | extern void lin_lwp_attach_lwp (ptid_t ptid, int verbose); |
47 | #define ATTACH_LWP(ptid, verbose) lin_lwp_attach_lwp ((ptid), (verbose)) | |
c2d11a7d | 48 | |
a14bd2ea MK |
49 | extern void lin_thread_get_thread_signals (sigset_t *mask); |
50 | #define GET_THREAD_SIGNALS(mask) lin_thread_get_thread_signals (mask) | |
ed9a39eb | 51 | |
c60c0f5f MS |
52 | /* Use elf_gregset_t and elf_fpregset_t, rather than |
53 | gregset_t and fpregset_t. */ | |
54 | ||
8f0b51af KB |
55 | #define GDB_GREGSET_T elf_gregset_t |
56 | #define GDB_FPREGSET_T elf_fpregset_t |