Initial import from FreeBSD RELENG_4:
[dragonfly.git] / contrib / gdb / gdb / config / i386 / tm-i386gnu.h
1 /* Macro definitions for i386, GNU Hurd
2    Copyright (C) 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
19
20 /* Include common definitions for gnu systems */
21 #include "nm-gnu.h"
22
23 /* Thread flavors used in re-setting the T bit.
24  * @@ this is also bad for cross debugging.
25  */
26 #define THREAD_STATE_FLAVOR             i386_THREAD_STATE
27 #define THREAD_STATE_SIZE               i386_THREAD_STATE_COUNT
28 #define THREAD_STATE_SET_TRACED(state) \
29         ((struct i386_thread_state *)state)->efl |= 0x100
30 #define THREAD_STATE_CLEAR_TRACED(state) \
31         ((((struct i386_thread_state *)state)->efl &= ~0x100), 1)
32
33 /* we can do it */
34 #define ATTACH_DETACH 1
35
36 /* Sigh. There should be a file for i386 but no sysv stuff in it */
37 #include "i386/tm-i386v.h"
38
39 /* I want to test this float info code. See comment in tm-i386v.h */
40 #undef FLOAT_INFO
41 #define FLOAT_INFO { i386_mach3_float_info (); }
42
43 /* Address of end of stack space.
44  * for MACH, see <machine/vmparam.h>
45  * @@@ I don't know what is in the 5 ints...
46  */
47 #undef  STACK_END_ADDR
48 #define STACK_END_ADDR (0xc0000000-sizeof(int [5]))