Commit | Line | Data |
---|---|---|
d4e0bab4 MK |
1 | /* Native support for i386 running System V (pre-SVR4). |
2 | ||
3 | Copyright 1986, 1987, 1989, 1992, 1993, 1998, 2000, 2002 | |
b6ba6518 | 4 | Free Software Foundation, Inc. |
c906108c SS |
5 | Changes for 80386 by Pace Willisson (pace@prep.ai.mit.edu), July 1988. |
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 | 23 | |
d4e0bab4 MK |
24 | #ifndef NM_I386V_H |
25 | #define NM_I386V_H | |
26 | ||
27 | /* Support for the user struct. */ | |
28 | ||
29 | /* This is the amount to subtract from u.u_ar0 | |
30 | to get the offset in the core file of the register values. */ | |
31 | ||
32 | #define REGISTER_U_ADDR(addr, blockend, regnum) \ | |
33 | (addr) = register_u_addr ((blockend), (regnum)) | |
34 | extern CORE_ADDR register_u_addr (CORE_ADDR blockend, int regnum); | |
e910f676 AC |
35 | |
36 | /* This is the amount to subtract from u.u_ar0 | |
37 | to get the offset in the core file of the register values. */ | |
38 | #define KERNEL_U_ADDR 0xe0000000 | |
26d28e12 MK |
39 | |
40 | /* Number of traps that happen between exec'ing the shell to run an | |
41 | inferior, and when we finally get to the inferior code. This is 2 | |
42 | on most implementations. Override here to 4. */ | |
43 | ||
44 | #undef START_INFERIOR_TRAPS_EXPECTED | |
45 | #define START_INFERIOR_TRAPS_EXPECTED 4 | |
c906108c | 46 | |
d4e0bab4 | 47 | #endif /* nm-i386v.h */ |