* inftarg.c (child_create_inferior, child_attach,
[deliverable/binutils-gdb.git] / gdb / xm-svr4.h
1 /* Definitions for running gdb on a host machine running any flavor of SVR4.
2 Copyright (C) 1991, Free Software Foundation, Inc.
3 Written by Fred Fish at Cygnus Support (fnf@cygint)
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
21 /* SVR4 has /proc support, so use it instead of ptrace. */
22
23 #define USE_PROC_FS
24
25 /* SVR4 has termio facilities. */
26
27 #define HAVE_TERMIO
28
29 /* TIOCGETC and TIOCGLTC are picked up somewhere, but struct tchars
30 and struct ltchars are not. This makes problems for inflow.c.
31 It is unknown at this time if this is a generic SVR4 problem or
32 one just limited to the initial SVR4 port host machine. */
33
34 #define TIOCGETC_BROKEN
35 #define TIOCGLTC_BROKEN
36
37 /* SVR4 is a derivative of System V Release 3 (USG) */
38
39 #define USG
40
41 /* Get rid of any system-imposed stack limit if possible. */
42
43 /* #define SET_STACK_LIMIT_HUGE */
44
45 /* SVR4 machines can easily do attach and detach via /proc (procfs.c)
46 support */
47
48 #define ATTACH_DETACH
49
50 /* If we are using SVR4 /proc instead of ptrace, use CREATE_INFERIOR_HOOK
51 to do internal /proc initialization. */
52
53 #ifdef USE_PROC_FS
54 #define CREATE_INFERIOR_HOOK(pid) inferior_proc_init(pid)
55 #endif
56
This page took 0.063828 seconds and 4 git commands to generate.