]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/config/i386/nm-i386v.h
Copyright updates for 2007.
[thirdparty/binutils-gdb.git] / gdb / config / i386 / nm-i386v.h
1 /* Native support for i386 running System V (pre-SVR4).
2
3 Copyright 1986, 1987, 1989, 1992, 1993, 1998, 2000, 2002, 2007
4 Free Software Foundation, Inc.
5 Changes for 80386 by Pace Willisson (pace@prep.ai.mit.edu), July 1988.
6
7 This file is part of GDB.
8
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.
13
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.
18
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. */
23
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);
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
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
46
47 #endif /* nm-i386v.h */