* serial.h: Fix prototye for serial_raw().
[deliverable/binutils-gdb.git] / gdb / xm-rs6000.h
CommitLineData
41abdfbd 1/* Parameters for hosting on an RS6000, for GDB, the GNU debugger.
82eabd43 2 Copyright 1986, 1987, 1989, 1991, 1992 Free Software Foundation, Inc.
41abdfbd
JG
3 Contributed by IBM Corporation.
4
5This file is part of GDB.
6
7This program is free software; you can redistribute it and/or modify
8it under the terms of the GNU General Public License as published by
9the Free Software Foundation; either version 2 of the License, or
10(at your option) any later version.
11
12This program is distributed in the hope that it will be useful,
13but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
18along with this program; if not, write to the Free Software
19Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
20
82eabd43
JG
21/* The following text is taken from config/rs6000.mh:
22 * # The IBM version of /usr/include/rpc/rpc.h has a bug -- it says
23 * # `extern fd_set svc_fdset;' without ever defining the type fd_set.
24 * # Unfortunately this occurs in the vx-share code, which is not configured
25 * # like the rest of GDB (e.g. it doesn't include "defs.h").
26 * # We circumvent this bug by #define-ing fd_set here, but undefining it in
27 * # the xm-rs6000.h file before ordinary modules try to use it. FIXME, IBM!
28 * MH_CFLAGS='-Dfd_set=int'
29 * So, here we do the undefine...which has to occur before we include
30 * <sys/select.h> below.
31 */
32#undef fd_set
33
0d6d92c7 34#include <sys/select.h>
9b280a7f 35#include <sys/ptrace.h>
0d6d92c7 36
41abdfbd
JG
37/* Big end is at the low address */
38
39#define HOST_BYTE_ORDER BIG_ENDIAN
40
41#define HAVE_TERMIO 1
42#define USG 1
43#define HAVE_SIGSETMASK 1
44
37e2f5cb
DZ
45/* AIX declares the mem functions */
46
47#undef MEM_FNS_DECLARED
48#define MEM_FNS_DECLARED 1
49
41abdfbd
JG
50/* This system requires that we open a terminal with O_NOCTTY for it to
51 not become our controlling terminal. */
52
53#define USE_O_NOCTTY
54
55/* Get rid of any system-imposed stack limit if possible. */
56
57#define SET_STACK_LIMIT_HUGE
58
59/* Brain death inherited from PC's pervades. */
60#undef NULL
61#define NULL 0
62
63/* The IBM compiler requires this in order to properly compile alloca(). */
64#pragma alloca
65
9b280a7f
JG
66/* There is no vfork. */
67
41abdfbd
JG
68#define vfork fork
69
70/* Do implement the attach and detach commands. */
71
72#define ATTACH_DETACH
73
74/* Override copies of {fetch,store}_inferior_registers in infptrace.c. */
75
76#define FETCH_INFERIOR_REGISTERS
77
78/* Setpgrp() takes arguments, unlike ordinary Sys V's. */
79
818de002 80#define SETPGRP_ARGS 1
41abdfbd 81
818de002 82/* Flag for machine-specific stuff in shared files. FIXME */
1eeba686 83#define IBM6000_HOST
6c6afbb9
PB
84
85/* /usr/include/stdlib.h always uses void* and void,
86 even when __STDC__ isn't defined. */
87#define MALLOC_INCOMPATIBLE
9aa44833
SG
88extern void *malloc PARAMS ((size_t size));
89extern void *realloc PARAMS ((void *ptr, size_t size));
90extern void free PARAMS ((void *));
6c6afbb9 91
9aa44833
SG
92/* AIX doesn't have strdup, so we need to declare it for libiberty */
93extern char *strdup PARAMS ((char *));
This page took 0.059113 seconds and 4 git commands to generate.