Commit | Line | Data |
---|---|---|
f8d13125 | 1 | /* Native support for GNU/Linux. |
11d18042 | 2 | Copyright 1999, 2000, 2001 |
c2d11a7d JM |
3 | Free Software Foundation, Inc. |
4 | ||
5 | This file is part of GDB. | |
6 | ||
7 | This program is free software; you can redistribute it and/or modify | |
8 | it under the terms of the GNU General Public License as published by | |
9 | the Free Software Foundation; either version 2 of the License, or | |
10 | (at your option) any later version. | |
11 | ||
12 | This program is distributed in the hope that it will be useful, | |
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 | GNU General Public License for more details. | |
16 | ||
17 | You should have received a copy of the GNU General Public License | |
18 | along with this program; if not, write to the Free Software | |
19 | Foundation, Inc., 59 Temple Place - Suite 330, | |
20 | Boston, MA 02111-1307, USA. */ | |
21 | ||
11d18042 | 22 | /* Linux is SVR4-ish but its /proc file system isn't. */ |
c2d11a7d JM |
23 | #undef USE_PROC_FS |
24 | ||
11d18042 | 25 | /* Tell GDB that we can attach and detach other processes. */ |
c2d11a7d JM |
26 | #define ATTACH_DETACH |
27 | ||
11d18042 MK |
28 | /* We define this if link.h is available, because with ELF we use SVR4 |
29 | style shared libraries. */ | |
c2d11a7d JM |
30 | |
31 | #ifdef HAVE_LINK_H | |
32 | #define SVR4_SHARED_LIBS | |
11d18042 | 33 | #include "solib.h" /* Support for shared libraries. */ |
c2d11a7d | 34 | #endif |
11d18042 | 35 | \f |
c2d11a7d | 36 | |
11d18042 MK |
37 | /* FIXME: kettenis/2001-07-11: Stuff on this page is obsolete, and |
38 | only used by the (unmaintained) sparc and m68k ports. */ | |
39 | ||
40 | /* Support for the glibc LinuxThreads package. */ | |
c2d11a7d JM |
41 | |
42 | struct objfile; | |
43 | ||
11d18042 | 44 | /* Hook to look at new objfiles (shared libraries). */ |
a14ed312 | 45 | extern void linuxthreads_new_objfile (struct objfile *objfile); |
c2d11a7d | 46 | |
11d18042 | 47 | /* Method to print a human-readable thread description. */ |
39f77062 | 48 | extern char *linuxthreads_pid_to_str (ptid_t ptid); |
c2d11a7d | 49 | |
a14ed312 | 50 | extern int linuxthreads_prepare_to_proceed (int step); |
c2d11a7d | 51 | #define PREPARE_TO_PROCEED(select_it) linuxthreads_prepare_to_proceed (1) |
11d18042 | 52 | \f |
ed9a39eb JM |
53 | |
54 | /* Defined to make stepping-over-breakpoints be thread-atomic. */ | |
55 | #define USE_THREAD_STEP_NEEDED 1 | |
56 | ||
c60c0f5f MS |
57 | /* Use elf_gregset_t and elf_fpregset_t, rather than |
58 | gregset_t and fpregset_t. */ | |
59 | ||
8f0b51af KB |
60 | #define GDB_GREGSET_T elf_gregset_t |
61 | #define GDB_FPREGSET_T elf_fpregset_t | |
f8d13125 MK |
62 | |
63 | /* Since we're building a native debugger, we can include <signal.h> | |
64 | to find the range of real-time signals. */ | |
65 | ||
66 | #include <signal.h> | |
67 | ||
68 | #ifdef __SIGRTMIN | |
69 | #define REALTIME_LO __SIGRTMIN | |
70 | #define REALTIME_HI (__SIGRTMAX + 1) | |
71 | #endif |