Commit | Line | Data |
---|---|---|
0748d941 AC |
1 | // OBSOLETE /* Definitions to make GDB run on a mips box under 4.3bsd. |
2 | // OBSOLETE Copyright 1986, 1987, 1989, 1993, 1994, 1995, 1996, 1998 | |
3 | // OBSOLETE Free Software Foundation, Inc. | |
4 | // OBSOLETE Contributed by Per Bothner(bothner@cs.wisc.edu) at U.Wisconsin | |
5 | // OBSOLETE and by Alessandro Forin(af@cs.cmu.edu) at CMU | |
6 | // OBSOLETE | |
7 | // OBSOLETE This file is part of GDB. | |
8 | // OBSOLETE | |
9 | // OBSOLETE This program is free software; you can redistribute it and/or modify | |
10 | // OBSOLETE it under the terms of the GNU General Public License as published by | |
11 | // OBSOLETE the Free Software Foundation; either version 2 of the License, or | |
12 | // OBSOLETE (at your option) any later version. | |
13 | // OBSOLETE | |
14 | // OBSOLETE This program is distributed in the hope that it will be useful, | |
15 | // OBSOLETE but WITHOUT ANY WARRANTY; without even the implied warranty of | |
16 | // OBSOLETE MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
17 | // OBSOLETE GNU General Public License for more details. | |
18 | // OBSOLETE | |
19 | // OBSOLETE You should have received a copy of the GNU General Public License | |
20 | // OBSOLETE along with this program; if not, write to the Free Software | |
21 | // OBSOLETE Foundation, Inc., 59 Temple Place - Suite 330, | |
22 | // OBSOLETE Boston, MA 02111-1307, USA. */ | |
23 | // OBSOLETE | |
24 | // OBSOLETE #ifdef ultrix | |
25 | // OBSOLETE /* Needed for DECstation core files. */ | |
26 | // OBSOLETE #include <machine/param.h> | |
27 | // OBSOLETE #define KERNEL_U_ADDR UADDR | |
28 | // OBSOLETE | |
29 | // OBSOLETE /* Native Ultrix cc has broken long long support. */ | |
30 | // OBSOLETE #ifndef __GNUC__ | |
31 | // OBSOLETE #undef CC_HAS_LONG_LONG | |
32 | // OBSOLETE #endif | |
33 | // OBSOLETE #endif | |
34 | // OBSOLETE | |
35 | // OBSOLETE #if ! defined (__GNUC__) && ! defined (offsetof) | |
36 | // OBSOLETE #define offsetof(TYPE, MEMBER) ((unsigned long) &((TYPE *)0)->MEMBER) | |
37 | // OBSOLETE #endif | |
38 | // OBSOLETE | |
39 | // OBSOLETE /* Only used for core files on DECstations. | |
40 | // OBSOLETE First four registers at u.u_ar0 are saved arguments, and | |
41 | // OBSOLETE there is no r0 saved. Float registers are saved | |
42 | // OBSOLETE in u_pcb.pcb_fpregs, not relative to u.u_ar0. */ | |
43 | // OBSOLETE | |
44 | // OBSOLETE #define REGISTER_U_ADDR(addr, blockend, regno) \ | |
45 | // OBSOLETE { \ | |
46 | // OBSOLETE if (regno < FP0_REGNUM) \ | |
47 | // OBSOLETE addr = blockend + sizeof(int) * (4 + regno - 1); \ | |
48 | // OBSOLETE else \ | |
49 | // OBSOLETE addr = offsetof (struct user, u_pcb.pcb_fpregs[0]) + \ | |
50 | // OBSOLETE sizeof (int) * (regno - FP0_REGNUM); \ | |
51 | // OBSOLETE } | |
52 | // OBSOLETE | |
53 | // OBSOLETE /* Kernel is a bit tenacious about sharing text segments, disallowing bpts. */ | |
54 | // OBSOLETE #define ONE_PROCESS_WRITETEXT | |
55 | // OBSOLETE | |
56 | // OBSOLETE /* HAVE_SGTTY also works, last we tried. | |
57 | // OBSOLETE | |
58 | // OBSOLETE But we have termios, at least as of Ultrix 4.2A, so use it. */ | |
59 | // OBSOLETE #define HAVE_TERMIOS |