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 | ||
21 | /* Big end is at the low address */ | |
22 | ||
23 | #define HOST_BYTE_ORDER BIG_ENDIAN | |
24 | ||
25 | #define HAVE_TERMIO 1 | |
26 | #define USG 1 | |
27 | #define HAVE_SIGSETMASK 1 | |
28 | ||
29 | /* This system requires that we open a terminal with O_NOCTTY for it to | |
30 | not become our controlling terminal. */ | |
31 | ||
32 | #define USE_O_NOCTTY | |
33 | ||
34 | /* Get rid of any system-imposed stack limit if possible. */ | |
35 | ||
36 | #define SET_STACK_LIMIT_HUGE | |
37 | ||
38 | /* Brain death inherited from PC's pervades. */ | |
39 | #undef NULL | |
40 | #define NULL 0 | |
41 | ||
42 | /* The IBM compiler requires this in order to properly compile alloca(). */ | |
43 | #pragma alloca | |
44 | ||
45 | #define vfork fork | |
46 | ||
47 | /* Do implement the attach and detach commands. */ | |
48 | ||
49 | #define ATTACH_DETACH | |
50 | ||
51 | /* Override copies of {fetch,store}_inferior_registers in infptrace.c. */ | |
52 | ||
53 | #define FETCH_INFERIOR_REGISTERS | |
54 | ||
55 | /* Setpgrp() takes arguments, unlike ordinary Sys V's. */ | |
56 | ||
818de002 | 57 | #define SETPGRP_ARGS 1 |
41abdfbd JG |
58 | |
59 | /* RS6000/AIXCOFF does not support PT_STEP. Has to be simulated. */ | |
60 | ||
61 | #define NO_SINGLE_STEP | |
62 | ||
63 | /* Interface between xcoff symbol reading code and AIX shared library | |
64 | handling code. FIXME, this probably needs generalizing. */ | |
65 | ||
66 | #define XCOFF_INIT_LOADINFO() xcoff_init_loadinfo() | |
67 | #define XCOFF_ADD_TOC_TO_LOADINFO(x) xcoff_add_toc_to_loadinfo (x) | |
818de002 PB |
68 | |
69 | /* AIX's assembler doesn't grok dollar signs in identifiers. | |
70 | So we use dots instead. This item must be coordinated with G++. */ | |
71 | #undef CPLUS_MARKER | |
72 | #define CPLUS_MARKER '.' | |
73 | ||
74 | /* Flag for machine-specific stuff in shared files. FIXME */ | |
75 | #ifndef IBM6000 | |
76 | #define IBM6000 | |
77 | #endif | |
6c6afbb9 PB |
78 | |
79 | /* /usr/include/stdlib.h always uses void* and void, | |
80 | even when __STDC__ isn't defined. */ | |
81 | #define MALLOC_INCOMPATIBLE | |
82 | extern void* malloc PARAMS (()); | |
83 | extern void* realloc PARAMS (()); | |
84 | extern void free PARAMS (()); | |
85 |