1130803Smarcel/* Native-dependent definitions for Intel 386 running the GNU Hurd
2130803Smarcel   Copyright 1994, 1995, 1996, 2002 Free Software Foundation, Inc.
3130803Smarcel
4130803Smarcel   This file is part of GDB.
5130803Smarcel
6130803Smarcel   This program is free software; you can redistribute it and/or modify
7130803Smarcel   it under the terms of the GNU General Public License as published by
8130803Smarcel   the Free Software Foundation; either version 2 of the License, or
9130803Smarcel   (at your option) any later version.
10130803Smarcel
11130803Smarcel   This program is distributed in the hope that it will be useful,
12130803Smarcel   but WITHOUT ANY WARRANTY; without even the implied warranty of
13130803Smarcel   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14130803Smarcel   GNU General Public License for more details.
15130803Smarcel
16130803Smarcel   You should have received a copy of the GNU General Public License
17130803Smarcel   along with this program; if not, write to the Free Software
18130803Smarcel   Foundation, Inc., 59 Temple Place - Suite 330,
19130803Smarcel   Boston, MA 02111-1307, USA.  */
20130803Smarcel
21130803Smarcel#ifndef NM_I386GNU_H
22130803Smarcel#define NM_I386GNU_H
23130803Smarcel
24130803Smarcel/* Include common definitions for GNU systems.  */
25130803Smarcel#include "config/nm-gnu.h"
26130803Smarcel
27130803Smarcel/* Thread flavors used in re-setting the T bit.  */
28130803Smarcel#define THREAD_STATE_FLAVOR		i386_REGS_SEGS_STATE
29130803Smarcel#define THREAD_STATE_SIZE		i386_THREAD_STATE_COUNT
30130803Smarcel#define THREAD_STATE_SET_TRACED(state) \
31130803Smarcel  	((struct i386_thread_state *) (state))->efl |= 0x100
32130803Smarcel#define THREAD_STATE_CLEAR_TRACED(state) \
33130803Smarcel  	((((struct i386_thread_state *) (state))->efl &= ~0x100), 1)
34130803Smarcel
35130803Smarcel/* We can attach and detach.  */
36130803Smarcel#define ATTACH_DETACH 1
37130803Smarcel
38130803Smarcel#endif /* nm-i386gnu.h */
39