* config/m68k/xm-hp300hpux.h: Define MMAP_BASE_ADDRESS and MMAP_INCREMENT.
[binutils-gdb.git] / gdb / config / pa / xm-hppah.h
1 /* Parameters for hosting on an HPPA-RISC machine running HPUX, for GDB.
2 Copyright 1991, 1992 Free Software Foundation, Inc.
3
4 Contributed by the Center for Software Science at the
5 University of Utah (pa-gdb-bugs@cs.utah.edu).
6
7 This file is part of GDB.
8
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 2 of the License, or
12 (at your option) any later version.
13
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
18
19 You should have received a copy of the GNU General Public License
20 along with this program; if not, write to the Free Software
21 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
22
23 /* Host is big-endian. */
24 #define HOST_BYTE_ORDER BIG_ENDIAN
25
26 #include "pa/xm-pa.h"
27
28 /* Avoid "INT_MIN redefined" warnings -- by defining it here, exactly
29 the same as in the system <machine/machtypes.h> file. */
30 #undef INT_MIN
31 #define INT_MIN 0x80000000
32
33 #define USG
34
35 #ifndef __STDC__
36 /* This define is discussed in decode_line_1 in symtab.c */
37 #define HPPA_COMPILER_BUG
38 #endif
39
40 #define HAVE_TERMIOS
41
42 /* HP defines malloc and realloc as returning void *, even for non-ANSI
43 compilations (such as with the native compiler). */
44
45 #define MALLOC_INCOMPATIBLE
46
47 /* If you expect to use the mmalloc package to obtain mapped symbol files,
48 for now you have to specify some parameters that determine how gdb places
49 the mappings in it's address space. See the comments in map_to_address()
50 for details. This is expected to only be a short term solution. Yes it
51 is a kludge.
52 FIXME: Make this more automatic. */
53
54 #define MMAP_BASE_ADDRESS 0xA0000000 /* First mapping here */
55 #define MMAP_INCREMENT 0x01000000 /* Increment to next mapping */
56
57 /* On hpux, autoconf 2.4 (and possibly others) does not properly detect that
58 mmap is available. Until this is fixed, we have to explicitly force
59 HAVE_MMAP. -fnf */
60
61 #define HAVE_MMAP 1
62
63 extern void *
64 malloc PARAMS ((size_t));
65
66 extern void *
67 realloc PARAMS ((void *, size_t));
68
69 extern void
70 free PARAMS ((void *));