* inftarg.c: Remove unused include of terminal.h.
[deliverable/binutils-gdb.git] / gdb / config / sparc / xm-sun4os4.h
CommitLineData
5076de82
FF
1/* Macro definitions for running gdb on a Sun 4 running sunos 4.
2 Copyright (C) 1989, Free Software Foundation, Inc.
3
4This file is part of GDB.
5
6This program is free software; you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published by
8the Free Software Foundation; either version 2 of the License, or
9(at your option) any later version.
10
11This program is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with this program; if not, write to the Free Software
18Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
19
20#include "sparc/xm-sparc.h"
21#define FPU
22
23/* Large alloca's fail because the attempt to increase the stack limit in
24 main() fails because shared libraries are allocated just below the initial
25 stack limit. The SunOS kernel will not allow the stack to grow into
26 the area occupied by the shared libraries. Sun knows about this bug
27 but has no obvious fix for it. */
28#define BROKEN_LARGE_ALLOCA
29
30/* SunOS 4.x has memory mapped files. */
31
32#define HAVE_MMAP
33
34/* If you expect to use the mmalloc package to obtain mapped symbol files,
35 for now you have to specify some parameters that determine how gdb places
36 the mappings in it's address space. See the comments in map_to_address()
37 for details. This is expected to only be a short term solution. Yes it
38 is a kludge.
39 FIXME: Make this more automatic. */
40
41#define MMAP_BASE_ADDRESS 0xE0000000 /* First mapping here */
42#define MMAP_INCREMENT 0x01000000 /* Increment to next mapping */
43
08bb2617
JK
44#ifndef __STDC__
45/* GCC (2.3-ish at least) fixes this in fixincludes. */
46/* /usr/include/malloc.h is included by vx-share/xdr_ld. */
5076de82
FF
47/* /usr/include/malloc.h defines these w/o prototypes (and uses
48 char * instead of void *). */
49#define MALLOC_INCOMPATIBLE
e82980e4
JK
50extern char* malloc ();
51extern char* realloc ();
52/* Yes, it really does define it as returning int, both in malloc.h and
53 stdlib.h, at least on SunOS 4.1.1. */
54extern int free ();
08bb2617 55#endif
5076de82
FF
56
57/* SunOS 4.x uses nonstandard "char *" as type of third argument to ptrace() */
58
59#define PTRACE_ARG3_TYPE char*
c2e247c4
JK
60
61/* Using termios is required to save and restore ICRNL and ONLCR
62 separately. */
63
64/* At least SunOS 4.1.1 has termios. I'm not sure about 4.0.3. */
65#define HAVE_TERMIOS
This page took 0.040075 seconds and 4 git commands to generate.