Update/correct copyright notices.
[deliverable/binutils-gdb.git] / gdb / config / mips / xm-mips.h
CommitLineData
c906108c 1/* Definitions to make GDB run on a mips box under 4.3bsd.
b6ba6518
KB
2 Copyright 1986, 1987, 1989, 1993, 1994, 1995, 1996, 1998
3 Free Software Foundation, Inc.
c906108c
SS
4 Contributed by Per Bothner(bothner@cs.wisc.edu) at U.Wisconsin
5 and by Alessandro Forin(af@cs.cmu.edu) at CMU
6
c5aa993b 7 This file is part of GDB.
c906108c 8
c5aa993b
JM
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.
c906108c 13
c5aa993b
JM
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.
c906108c 18
c5aa993b
JM
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,
22 Boston, MA 02111-1307, USA. */
c906108c
SS
23
24#if !defined (HOST_BYTE_ORDER)
25#define HOST_BYTE_ORDER LITTLE_ENDIAN
26#endif
27
28#ifdef ultrix
29/* Needed for DECstation core files. */
30#include <machine/param.h>
31#define KERNEL_U_ADDR UADDR
32
33/* Native Ultrix cc has broken long long support. */
34#ifndef __GNUC__
35#undef CC_HAS_LONG_LONG
36#endif
37#endif
38
39#if ! defined (__STDC__) && ! defined (offsetof)
c5aa993b 40#define offsetof(TYPE, MEMBER) ((unsigned long) &((TYPE *)0)->MEMBER)
c906108c
SS
41#endif
42
43/* Only used for core files on DECstations.
44 First four registers at u.u_ar0 are saved arguments, and
45 there is no r0 saved. Float registers are saved
46 in u_pcb.pcb_fpregs, not relative to u.u_ar0. */
47
48#define REGISTER_U_ADDR(addr, blockend, regno) \
49 { \
50 if (regno < FP0_REGNUM) \
51 addr = blockend + sizeof(int) * (4 + regno - 1); \
52 else \
53 addr = offsetof (struct user, u_pcb.pcb_fpregs[0]) + \
54 sizeof (int) * (regno - FP0_REGNUM); \
55 }
56
57/* Kernel is a bit tenacious about sharing text segments, disallowing bpts. */
58#define ONE_PROCESS_WRITETEXT
59
60/* HAVE_SGTTY also works, last we tried.
61
62 But we have termios, at least as of Ultrix 4.2A, so use it. */
63#define HAVE_TERMIOS
This page took 0.08428 seconds and 4 git commands to generate.