* procfs.c (procfs_insert_watchpoint, procfs_remove_watchpoint)
[external/binutils.git] / gdb / config / i386 / nm-i386sol2.h
1 /* Native support for i386 running Solaris 2.
2    Copyright 1998, 1999, 2000, 2007, 2008, 2009 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 3 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, see <http://www.gnu.org/licenses/>.  */
18
19 #ifdef NEW_PROC_API     /* Solaris 6 and above can do HW watchpoints */
20
21 #define TARGET_HAS_HARDWARE_WATCHPOINTS
22
23 /* Solaris x86 2.6 and 2.7 targets have a kernel bug when stepping
24    over an instruction that causes a page fault without triggering
25    a hardware watchpoint. The kernel properly notices that it shouldn't
26    stop, because the hardware watchpoint is not triggered, but it forgets
27    the step request and continues the program normally.
28    Work around the problem by removing hardware watchpoints if a step is
29    requested, GDB will check for a hardware watchpoint trigger after the
30    step anyway.  */
31 #define CANNOT_STEP_HW_WATCHPOINTS
32
33 #endif /* NEW_PROC_API */