Commit | Line | Data |
---|---|---|
92362027 AC |
1 | /* Native support for GNU/Linux x86-64. |
2 | ||
9b254dd1 DJ |
3 | Copyright 2001, 2002, 2003, 2004, 2005, 2007, 2008 |
4 | Free Software Foundation, Inc. | |
c4f35dd8 MK |
5 | |
6 | Contributed by Jiri Smid, SuSE Labs. | |
53e95fcf JS |
7 | |
8 | This file is part of GDB. | |
9 | ||
10 | This program is free software; you can redistribute it and/or modify | |
11 | it under the terms of the GNU General Public License as published by | |
a9762ec7 | 12 | the Free Software Foundation; either version 3 of the License, or |
53e95fcf JS |
13 | (at your option) any later version. |
14 | ||
15 | This program is distributed in the hope that it will be useful, | |
16 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
17 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
18 | GNU General Public License for more details. | |
19 | ||
20 | You should have received a copy of the GNU General Public License | |
a9762ec7 | 21 | along with this program. If not, see <http://www.gnu.org/licenses/>. */ |
53e95fcf | 22 | |
9c1488cb MK |
23 | #ifndef NM_LINUX64_H |
24 | #define NM_LINUX64_H | |
53e95fcf | 25 | |
c4f35dd8 | 26 | /* GNU/Linux supports the i386 hardware debugging registers. */ |
53e95fcf | 27 | #define I386_USE_GENERIC_WATCHPOINTS |
c4f35dd8 | 28 | |
53e95fcf | 29 | #include "i386/nm-i386.h" |
c4f35dd8 | 30 | #include "config/nm-linux.h" |
53e95fcf | 31 | |
c4f35dd8 | 32 | /* Support for 8-byte wide hardware watchpoints. */ |
53e95fcf JS |
33 | #define TARGET_HAS_DR_LEN_8 1 |
34 | ||
35 | /* Provide access to the i386 hardware debugging registers. */ | |
36 | ||
430eaf2e | 37 | extern void amd64_linux_dr_set_control (unsigned long control); |
53e95fcf | 38 | #define I386_DR_LOW_SET_CONTROL(control) \ |
430eaf2e | 39 | amd64_linux_dr_set_control (control) |
53e95fcf | 40 | |
430eaf2e | 41 | extern void amd64_linux_dr_set_addr (int regnum, CORE_ADDR addr); |
53e95fcf | 42 | #define I386_DR_LOW_SET_ADDR(regnum, addr) \ |
430eaf2e | 43 | amd64_linux_dr_set_addr (regnum, addr) |
53e95fcf | 44 | |
430eaf2e | 45 | extern void amd64_linux_dr_reset_addr (int regnum); |
53e95fcf | 46 | #define I386_DR_LOW_RESET_ADDR(regnum) \ |
430eaf2e | 47 | amd64_linux_dr_reset_addr (regnum) |
53e95fcf | 48 | |
430eaf2e | 49 | extern unsigned long amd64_linux_dr_get_status (void); |
53e95fcf | 50 | #define I386_DR_LOW_GET_STATUS() \ |
430eaf2e | 51 | amd64_linux_dr_get_status () |
53e95fcf | 52 | |
9c1488cb | 53 | #endif /* nm-linux64.h */ |