2004-02-14 Andrew Cagney <cagney@redhat.com>
[deliverable/binutils-gdb.git] / gdb / i386-nat.c
index adf220bba730d05cd2b37ad9f9de03ebe56a3ab7..73794bc2fb5d111818758992bc3b044f749338f8 100644 (file)
@@ -230,6 +230,16 @@ i386_cleanup_dregs (void)
   dr_status_mirror  = 0;
 }
 
+#ifndef LINUX_CHILD_POST_STARTUP_INFERIOR
+/* Reset all debug registers at each new startup
+   to avoid missing watchpoints after restart.  */
+void
+child_post_startup_inferior (ptid_t ptid)
+{
+  i386_cleanup_dregs ();
+}
+#endif /* LINUX_CHILD_POST_STARTUP_INFERIOR */
+
 /* Print the values of the mirrored debug registers.
    This is called when maint_show_dr is non-zero.  To set that
    up, type "maint show-debug-regs" at GDB's prompt.  */
This page took 0.023341 seconds and 4 git commands to generate.