oops - omitted from previous delta
[deliverable/binutils-gdb.git] / gdb / i386-nat.c
index adf220bba730d05cd2b37ad9f9de03ebe56a3ab7..53a81a463eb1d2bd7cf1f84dfa4bbfdc3034ec56 100644 (file)
@@ -230,6 +230,14 @@ i386_cleanup_dregs (void)
   dr_status_mirror  = 0;
 }
 
+/* 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 ();
+}
+
 /* 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.0244 seconds and 4 git commands to generate.