Move duplicated Linux x86 code to nat/x86-linux.c
[deliverable/binutils-gdb.git] / gdb / nat / x86-linux.c
index a2bd36895c41a0b3c36110f22ce895742a09fbba..e78315625c3523aa7fe154f456885934165cc371 100644 (file)
@@ -19,6 +19,7 @@
 
 #include "common-defs.h"
 #include "x86-linux.h"
+#include "x86-linux-dregs.h"
 
 /* Per-thread arch-specific data we want to keep.  */
 
@@ -55,3 +56,19 @@ lwp_debug_registers_changed (struct lwp_info *lwp)
 
   return info->debug_registers_changed;
 }
+
+/* See nat/x86-linux.h.  */
+
+void
+x86_linux_new_thread (struct lwp_info *lwp)
+{
+  lwp_set_debug_registers_changed (lwp, 1);
+}
+
+/* See nat/x86-linux.h.  */
+
+void
+x86_linux_prepare_to_resume (struct lwp_info *lwp)
+{
+  x86_linux_update_debug_registers (lwp);
+}
This page took 0.023771 seconds and 4 git commands to generate.