* config/pa/tm-hppa.h: Define macro SMASH_TEXT_ADDRESS.
[deliverable/binutils-gdb.git] / gdb / config / pa / xm-hppah.h
CommitLineData
5076de82
FF
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
7This file is part of GDB.
8
9This program is free software; you can redistribute it and/or modify
10it under the terms of the GNU General Public License as published by
11the Free Software Foundation; either version 2 of the License, or
12(at your option) any later version.
13
14This program is distributed in the hope that it will be useful,
15but WITHOUT ANY WARRANTY; without even the implied warranty of
16MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17GNU General Public License for more details.
18
19You should have received a copy of the GNU General Public License
20along with this program; if not, write to the Free Software
21Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
22
23/* Host is big-endian. */
24#define HOST_BYTE_ORDER BIG_ENDIAN
25
f9dd88b4
JK
26#include "pa/xm-pa.h"
27
5076de82
FF
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
55bee667
SG
33/* HPUX 8.0, in its infinite wisdom, has chosen to prototype ptrace
34 with five arguments, so programs written for normal ptrace lose.
35
36 Idiots.
37
38 (They should have just made it varadic). */
39#define FIVE_ARG_PTRACE
40
5076de82
FF
41#ifndef hp800
42#define USG
43#endif
44
45#ifndef __STDC__
46/* This define is discussed in decode_line_1 in symtab.c */
47#define HPPA_COMPILER_BUG
48#endif
49
073c6b2b 50#define HAVE_TERMIOS
5076de82
FF
51
52#define KERNEL_U_ADDR 0
53
54/* HP uses non-ANSI definitions, but with void * results. */
55#define MEM_FNS_DECLARED /* Some non-ANSI use void *, not char *. */
56extern void *
57memcpy PARAMS ((void *, const void *, size_t)); /* 4.11.2.1 */
58
59extern void *
60memset PARAMS ((void *, int, size_t)); /* 4.11.6.1 */
61
64c5ac4f
FF
62/* HP defines malloc and realloc as returning void *, even for non-ANSI
63 compilations (such as with the native compiler). */
64
65#define MALLOC_INCOMPATIBLE
66
67extern void *
68malloc PARAMS ((size_t));
69
70extern void *
71realloc PARAMS ((void *, size_t));
72
73extern void
74free PARAMS ((void *));
This page took 0.073595 seconds and 4 git commands to generate.