]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/xm-sun4sol2.h
* buildsym.h: Add processing_acc_compilation flag.
[thirdparty/binutils-gdb.git] / gdb / xm-sun4sol2.h
1 /* Macro definitions for running gdb on a Sun 4 running Solaris 2.
2 Copyright 1989, 1992 Free Software Foundation, Inc.
3
4 This file is part of GDB.
5
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
19
20 /* Most of what we know is generic to SPARC hosts. */
21
22 #include "xm-sparc.h"
23
24 /* Pick up more stuff from the generic SVR4 host include file. */
25
26 #include "xm-sysv4.h"
27
28 /* SVR4's can't seem to agree on what to call the type that contains the
29 general registers. Kludge around it with a #define. */
30
31 #define gregset_t prgreg_t
32 #define fpregset_t prfpregset_t
33
34 /* The native Sun compiler complains about using volatile
35 to indicate functions that never return. So shut it up by simply
36 defining away "NORETURN", which is normally defined to "volatile". */
37
38 #ifndef __GNUC__
39 # define NORETURN /**/
40 #endif
41
42 /* Large alloca's fail because the attempt to increase the stack limit in
43 main() fails because shared libraries are allocated just below the initial
44 stack limit. The SunOS kernel will not allow the stack to grow into
45 the area occupied by the shared libraries. Sun knows about this bug
46 but has no obvious fix for it. */
47 #define BROKEN_LARGE_ALLOCA
48
49 /* If you expect to use the mmalloc package to obtain mapped symbol files,
50 for now you have to specify some parameters that determine how gdb places
51 the mappings in it's address space. See the comments in map_to_address()
52 for details. This is expected to only be a short term solution. Yes it
53 is a kludge.
54 FIXME: Make this more automatic. */
55
56 #define MMAP_BASE_ADDRESS 0xE0000000 /* First mapping here */
57 #define MMAP_INCREMENT 0x01000000 /* Increment to next mapping */
58
59 /* These are not currently used in SVR4 (but should be, FIXME!). */
60 #undef DO_DEFERRED_STORES
61 #undef CLEAR_DEFERRED_STORES
62
63 /* May be needed, may be not? From Pace Willisson's port. FIXME. */
64 #define NEED_POSIX_SETPGID