GDB (API)
/home/stan/gdb/src/gdb/config/i386/nm-i386gnu.h
Go to the documentation of this file.
00001 /* Native-dependent definitions for Intel 386 running the GNU Hurd
00002    Copyright (C) 1994-2013 Free Software Foundation, Inc.
00003 
00004    This file is part of GDB.
00005 
00006    This program is free software; you can redistribute it and/or modify
00007    it under the terms of the GNU General Public License as published by
00008    the Free Software Foundation; either version 3 of the License, or
00009    (at your option) any later version.
00010 
00011    This program is distributed in the hope that it will be useful,
00012    but WITHOUT ANY WARRANTY; without even the implied warranty of
00013    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014    GNU General Public License for more details.
00015 
00016    You should have received a copy of the GNU General Public License
00017    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
00018 
00019 #ifndef NM_I386GNU_H
00020 #define NM_I386GNU_H
00021 
00022 #include <unistd.h>
00023 #include <mach.h>
00024 #include <mach/exception.h>
00025 #include "regcache.h"
00026 
00027 extern char *gnu_target_pid_to_str (int pid);
00028 
00029 /* Thread flavors used in re-setting the T bit.  */
00030 #define THREAD_STATE_FLAVOR             i386_REGS_SEGS_STATE
00031 #define THREAD_STATE_SIZE               i386_THREAD_STATE_COUNT
00032 #define THREAD_STATE_SET_TRACED(state) \
00033         ((struct i386_thread_state *) (state))->efl |= 0x100
00034 #define THREAD_STATE_CLEAR_TRACED(state) \
00035         ((((struct i386_thread_state *) (state))->efl &= ~0x100), 1)
00036 
00037 #endif /* nm-i386gnu.h */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines