1 /* Parameters for hosting on an PowerPC, for GDB, the GNU debugger.
2 Copyright 1995, 1998 Free Software Foundation, Inc.
3 Contributed by Cygnus Corporation.
5 This file is part of GDB.
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.
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.
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., 59 Temple Place - Suite 330,
20 Boston, MA 02111-1307, USA. */
22 /* The following text is taken from config/rs6000.mh:
23 * # The IBM version of /usr/include/rpc/rpc.h has a bug -- it says
24 * # `extern fd_set svc_fdset;' without ever defining the type fd_set.
25 * # Unfortunately this occurs in the vx-share code, which is not configured
26 * # like the rest of GDB (e.g. it doesn't include "defs.h").
27 * # We circumvent this bug by #define-ing fd_set here, but undefining it in
28 * # the xm-rs6000.h file before ordinary modules try to use it. FIXME, IBM!
29 * MH_CFLAGS='-Dfd_set=int'
30 * So, here we do the undefine...which has to occur before we include
31 * <sys/select.h> below.
35 #include <sys/select.h>
37 /* Big end is at the low address */
39 #define HOST_BYTE_ORDER BIG_ENDIAN
41 /* At least as of AIX 3.2, we have termios. */
42 #define HAVE_TERMIOS 1
43 /* #define HAVE_TERMIO 1 */
46 #define HAVE_SIGSETMASK 1
48 #define FIVE_ARG_PTRACE
50 /* AIX declares the mem functions differently than defs.h does. AIX is
51 right, but defs.h works on more old systems. For now, override it. */
53 #define MEM_FNS_DECLARED 1
55 /* This system requires that we open a terminal with O_NOCTTY for it to
56 not become our controlling terminal. */
60 /* Brain death inherited from PC's pervades. */
64 /* The IBM compiler requires this in order to properly compile alloca(). */
67 /* There is no vfork. */
73 /* Signal handler for SIGWINCH `window size changed'. */
75 #define SIGWINCH_HANDLER aix_resizewindow
76 extern void aix_resizewindow (int);
78 /* `lines_per_page' and `chars_per_line' are local to utils.c. Rectify this. */
80 #define SIGWINCH_HANDLER_BODY \
82 /* Respond to SIGWINCH `window size changed' signal, and reset GDB's \
83 window settings appropriately. */ \
86 aix_resizewindow (signo) \
89 int fd = fileno (stdout); \
93 val = atoi (termdef (fd, 'l')); \
95 lines_per_page = val; \
96 val = atoi (termdef (fd, 'c')); \
98 chars_per_line = val; \
This page took 0.03107 seconds and 4 git commands to generate.