* config/mips/nm-irix4.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Define.
authorJeff Law <law@redhat.com>
Thu, 14 Apr 1994 03:13:52 +0000 (03:13 +0000)
committerJeff Law <law@redhat.com>
Thu, 14 Apr 1994 03:13:52 +0000 (03:13 +0000)
(STOPPED_BY_WATCHPOINT, HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
(target_{insert,remove}_watchpoint): Likewise.

gdb/ChangeLog
gdb/config/mips/nm-irix4.h

index 7248d73da80b0eaee718c30d48d817be9291e9a8..e9b10f9cade83ae3123165361e952f449d43ba06 100644 (file)
@@ -61,6 +61,10 @@ Wed Apr 13 14:52:46 1994  Jeffrey A. Law  (law@snake.cs.utah.edu)
        (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Define.
        (target_{insert,delete}_watchpoint): Define.
 
+       * config/mips/nm-irix4.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Define.
+       (STOPPED_BY_WATCHPOINT, HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
+       (target_{insert,remove}_watchpoint): Likewise.
+
 Mon Apr 11 19:21:27 1994  Stu Grossman  (grossman at cygnus.com)
 
        * xcoffread.c (read_xcoff_symtab):  Ignore symbols of class C_EXT,
index 81d27086f8d73b8624871e1e921de7250e61a4d3..3c80a59885c9dc1a16830c7570b669b5ddd44c0c 100644 (file)
@@ -34,3 +34,19 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
    config file?  */
 
 #define        ONE_PROCESS_WRITETEXT
+
+/* Temporary new watchpoint stuff */
+#define TARGET_CAN_USE_HARDWARE_WATCHPOINT(B) 1
+
+/* When a hardware watchpoint fires off the PC will be left at the
+   instruction which caused the watchpoint.  It will be necessary for
+   GDB to step over the watchpoint. */
+
+#define STOPPED_BY_WATCHPOINT(W) \
+  procfs_stopped_by_watchpoint(inferior_pid)
+
+#define HAVE_NONSTEPPABLE_WATCHPOINT
+
+/* Use these macros for watchpoint insertion/deletion.  */
+#define target_insert_watchpoint(addr, len) procfs_set_watchpoint (inferior_pid, addr, len, 2)
+#define target_remove_watchpoint(addr, len) procfs_set_watchpoint (inferior_pid, addr, 0, 0)