Commit | Line | Data |
---|---|---|
41abdfbd JG |
1 | /* Parameters for hosting on an RS6000, for GDB, the GNU debugger. |
2 | Copyright (C) 1986, 1987, 1989, 1991 Free Software Foundation, Inc. | |
3 | Contributed by IBM Corporation. | |
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 | ||
0d6d92c7 | 21 | #include <sys/select.h> |
9b280a7f | 22 | #include <sys/ptrace.h> |
0d6d92c7 | 23 | |
41abdfbd JG |
24 | /* Big end is at the low address */ |
25 | ||
26 | #define HOST_BYTE_ORDER BIG_ENDIAN | |
27 | ||
28 | #define HAVE_TERMIO 1 | |
29 | #define USG 1 | |
30 | #define HAVE_SIGSETMASK 1 | |
31 | ||
37e2f5cb DZ |
32 | /* AIX declares the mem functions */ |
33 | ||
34 | #undef MEM_FNS_DECLARED | |
35 | #define MEM_FNS_DECLARED 1 | |
36 | ||
41abdfbd JG |
37 | /* This system requires that we open a terminal with O_NOCTTY for it to |
38 | not become our controlling terminal. */ | |
39 | ||
40 | #define USE_O_NOCTTY | |
41 | ||
42 | /* Get rid of any system-imposed stack limit if possible. */ | |
43 | ||
44 | #define SET_STACK_LIMIT_HUGE | |
45 | ||
46 | /* Brain death inherited from PC's pervades. */ | |
47 | #undef NULL | |
48 | #define NULL 0 | |
49 | ||
50 | /* The IBM compiler requires this in order to properly compile alloca(). */ | |
51 | #pragma alloca | |
52 | ||
9b280a7f JG |
53 | /* There is no vfork. */ |
54 | ||
41abdfbd JG |
55 | #define vfork fork |
56 | ||
57 | /* Do implement the attach and detach commands. */ | |
58 | ||
59 | #define ATTACH_DETACH | |
60 | ||
61 | /* Override copies of {fetch,store}_inferior_registers in infptrace.c. */ | |
62 | ||
63 | #define FETCH_INFERIOR_REGISTERS | |
64 | ||
65 | /* Setpgrp() takes arguments, unlike ordinary Sys V's. */ | |
66 | ||
818de002 | 67 | #define SETPGRP_ARGS 1 |
41abdfbd | 68 | |
818de002 | 69 | /* Flag for machine-specific stuff in shared files. FIXME */ |
1eeba686 | 70 | #define IBM6000_HOST |
6c6afbb9 PB |
71 | |
72 | /* /usr/include/stdlib.h always uses void* and void, | |
73 | even when __STDC__ isn't defined. */ | |
74 | #define MALLOC_INCOMPATIBLE | |
9aa44833 SG |
75 | extern void *malloc PARAMS ((size_t size)); |
76 | extern void *realloc PARAMS ((void *ptr, size_t size)); | |
77 | extern void free PARAMS ((void *)); | |
6c6afbb9 | 78 | |
9aa44833 SG |
79 | /* AIX doesn't have strdup, so we need to declare it for libiberty */ |
80 | extern char *strdup PARAMS ((char *)); |