Commit | Line | Data |
---|---|---|
0837376f | 1 | /* Definitions for running gdb on a host machine running any flavor of SVR4. |
5b026741 JG |
2 | Copyright 1991, 1992 Free Software Foundation, Inc. |
3 | Written by Fred Fish at Cygnus Support (fnf@cygnus.com). | |
0837376f FF |
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., 675 Mass Ave, Cambridge, MA 02139, USA. */ | |
20 | ||
a39ad5ce FF |
21 | /* Use SVR4 style shared library support */ |
22 | ||
23 | #define SVR4_SHARED_LIBS | |
24 | ||
0837376f FF |
25 | /* SVR4 has /proc support, so use it instead of ptrace. */ |
26 | ||
27 | #define USE_PROC_FS | |
28 | ||
29 | /* SVR4 has termio facilities. */ | |
30 | ||
31 | #define HAVE_TERMIO | |
32 | ||
5b026741 JG |
33 | /* SVR4 has mmap facilities */ |
34 | ||
35 | #define HAVE_MMAP | |
36 | ||
0837376f FF |
37 | /* TIOCGETC and TIOCGLTC are picked up somewhere, but struct tchars |
38 | and struct ltchars are not. This makes problems for inflow.c. | |
39 | It is unknown at this time if this is a generic SVR4 problem or | |
40 | one just limited to the initial SVR4 port host machine. */ | |
41 | ||
42 | #define TIOCGETC_BROKEN | |
43 | #define TIOCGLTC_BROKEN | |
44 | ||
45 | /* SVR4 is a derivative of System V Release 3 (USG) */ | |
46 | ||
47 | #define USG | |
48 | ||
49 | /* Get rid of any system-imposed stack limit if possible. */ | |
50 | ||
51 | /* #define SET_STACK_LIMIT_HUGE */ | |
52 | ||
53 | /* SVR4 machines can easily do attach and detach via /proc (procfs.c) | |
54 | support */ | |
55 | ||
56 | #define ATTACH_DETACH | |
57 | ||
0a663e9e FF |
58 | /* Use setpgid(0,0) to run inferior in a separate process group */ |
59 | ||
60 | #define NEED_POSIX_SETPGID | |
cc221e76 FF |
61 | |
62 | /* If gdb's signal handling changes (due to a "handle" command), then | |
63 | this macro expands to an action to perform to notify other parts of | |
64 | gdb that might care, that signal handling has changed. For hosts using | |
65 | the /proc interface, gdb has more control over which signals cause the | |
66 | inferior to stop and which do not. In some cases, it is desirable to | |
67 | have signals delivered directly to the inferior without involving the | |
68 | debugger at all. */ | |
69 | ||
70 | #ifdef USE_PROC_FS | |
71 | #define NOTICE_SIGNAL_HANDLING_CHANGE proc_signal_handling_change() | |
72 | #endif | |
9342ecb9 JG |
73 | |
74 | /* We have to include these files now, so that GDB will not make | |
75 | competing definitions in defs.h. */ | |
76 | #include <limits.h> |