]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/config/i386/nm-linux.h
Updated copyright notices for most files.
[thirdparty/binutils-gdb.git] / gdb / config / i386 / nm-linux.h
1 /* Native support for GNU/Linux x86.
2
3 Copyright 1986, 1987, 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4 2000, 2001, 2002, 2003, 2005, 2007, 2008, 2009
5 Free Software Foundation, Inc.
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 3 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, see <http://www.gnu.org/licenses/>. */
21
22 #ifndef NM_LINUX_H
23 #define NM_LINUX_H
24
25 /* GNU/Linux supports the i386 hardware debugging registers. */
26 #define I386_USE_GENERIC_WATCHPOINTS
27 #define I386_WATCHPOINTS_IN_TARGET_VECTOR
28
29 #include "i386/nm-i386.h"
30 #include "config/nm-linux.h"
31
32 /* Provide access to the i386 hardware debugging registers. */
33
34 extern void i386_linux_dr_set_control (unsigned long control);
35 #define I386_DR_LOW_SET_CONTROL(control) \
36 i386_linux_dr_set_control (control)
37
38 extern void i386_linux_dr_set_addr (int regnum, CORE_ADDR addr);
39 #define I386_DR_LOW_SET_ADDR(regnum, addr) \
40 i386_linux_dr_set_addr (regnum, addr)
41
42 extern void i386_linux_dr_reset_addr (int regnum);
43 #define I386_DR_LOW_RESET_ADDR(regnum) \
44 i386_linux_dr_reset_addr (regnum)
45
46 extern unsigned long i386_linux_dr_get_status (void);
47 #define I386_DR_LOW_GET_STATUS() \
48 i386_linux_dr_get_status ()
49 \f
50
51 #ifdef HAVE_PTRACE_GETFPXREGS
52 /* Include register set support for the SSE registers. */
53 #define FILL_FPXREGSET
54 #endif
55
56 #endif /* nm-linux.h */