* Extend use of i386_use_watchpoints to all i386 native files
[deliverable/binutils-gdb.git] / gdb / config / i386 / nm-go32.h
index ba79c1b0ea98f4622cc257523b0c3248e96c31ae..1268846ad140ae92480ad4fa3d7d51d408f8ed4f 100644 (file)
@@ -1,11 +1,12 @@
 /* Native definitions for Intel x86 running DJGPP.
-   Copyright (C) 1997, 1998, 1999 Free Software Foundation, Inc.
+   Copyright 1997, 1998, 1999, 2001, 2002, 2007, 2008, 2009
+   Free Software Foundation, Inc.
 
    This file is part of GDB.
 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
-   the Free Software Foundation; either version 2 of the License, or
+   the Free Software Foundation; either version 3 of the License, or
    (at your option) any later version.
 
    This program is distributed in the hope that it will be useful,
    GNU General Public License for more details.
 
    You should have received a copy of the GNU General Public License
-   along with this program; if not, write to the Free Software
-   Foundation, Inc., 59 Temple Place - Suite 330,
-   Boston, MA 02111-1307, USA.  */
+   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#define NO_PTRACE_H
+#define I386_USE_GENERIC_WATCHPOINTS
+#define I386_WATCHPOINTS_IN_TARGET_VECTOR
 
-#include "i386/nm-i386v.h"
+#include "i386/nm-i386.h"
 
-#define TARGET_HAS_HARDWARE_WATCHPOINTS
+/* Support for hardware-assisted breakpoints and watchpoints.  */
 
-#define TARGET_CAN_USE_HARDWARE_WATCHPOINT(type, cnt, ot) 1
+#define I386_DR_LOW_SET_CONTROL(VAL)   go32_set_dr7 (VAL)
+extern void go32_set_dr7 (unsigned);
 
-/* After a watchpoint trap, the PC points to the instruction after the
-   one that caused the trap.  Therefore we don't need to step over it.
-   But we do need to reset the status register to avoid another trap.  */
+#define I386_DR_LOW_SET_ADDR(N,ADDR)   go32_set_dr (N,ADDR)
+extern void go32_set_dr (int, CORE_ADDR);
 
-#define HAVE_CONTINUABLE_WATCHPOINT
+#define I386_DR_LOW_RESET_ADDR(N)
 
-#define STOPPED_BY_WATCHPOINT(W)  \
-  go32_stopped_by_watchpoint (inferior_pid)
-
-/* Use these macros for watchpoint insertion/removal.  */
-
-#define target_insert_watchpoint(addr, len, type)  \
-  go32_insert_watchpoint (inferior_pid, addr, len, 2)
-
-#define target_remove_watchpoint(addr, len, type)  \
-  go32_remove_watchpoint (inferior_pid, addr, len)
-
-#define target_insert_hw_breakpoint(addr, shadow)  \
-  go32_insert_hw_breakpoint(addr, shadow)
-
-#define target_remove_hw_breakpoint(addr, shadow)  \
-  go32_remove_hw_breakpoint(addr, shadow)
-
-#define DECR_PC_AFTER_HW_BREAK 0
-
-#undef FLOAT_INFO
-#define FLOAT_INFO { i386_go32_float_info (); }
-
-extern void i386_go32_float_info (void);
+#define I386_DR_LOW_GET_STATUS()       go32_get_dr6 ()
+extern unsigned go32_get_dr6 (void);
This page took 0.024475 seconds and 4 git commands to generate.