+2015-03-24 Gary Benson <gbenson@redhat.com>
+
+ * nat/x86-linux.h (x86_linux_new_thread): New declaration.
+ (x86_linux_prepare_to_resume): Likewise.
+ * x86-linux-nat.c (x86_linux_new_thread):
+ Moved to nat/x86-linux.c.
+ (x86_linux_prepare_to_resume): Likewise.
+ * nat/x86-linux.c (x86_linux_new_thread): New function.
+ (x86_linux_prepare_to_resume): Likewise.
+
2015-03-24 Gary Benson <gbenson@redhat.com>
* nat/x86-linux-dregs.h: New file.
+2015-03-24 Gary Benson <gbenson@redhat.com>
+
+ * linux-x86-low.c (x86_linux_new_thread): Moved to
+ nat/x86-linux.c.
+ (x86_linux_prepare_to_resume): Likewise.
+
2015-03-24 Gary Benson <gbenson@redhat.com>
* Makefile.in (x86-linux-dregs.o): New rule.
return info;
}
-/* Called when a new thread is detected. */
-
-static void
-x86_linux_new_thread (struct lwp_info *lwp)
-{
- lwp_set_debug_registers_changed (lwp, 1);
-}
-
/* See nat/x86-dregs.h. */
struct x86_debug_reg_state *
return &proc->priv->arch_private->debug_reg_state;
}
-
-/* Called prior to resuming a thread. */
-
-static void
-x86_linux_prepare_to_resume (struct lwp_info *lwp)
-{
- x86_linux_update_debug_registers (lwp);
-}
\f
/* When GDBSERVER is built as a 64-bit application on linux, the
PTRACE_GETSIGINFO data is always presented in 64-bit layout. Since
#include "common-defs.h"
#include "x86-linux.h"
+#include "x86-linux-dregs.h"
/* Per-thread arch-specific data we want to keep. */
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);
+}
extern int lwp_debug_registers_changed (struct lwp_info *lwp);
+/* Function to call when a new thread is detected. */
+
+extern void x86_linux_new_thread (struct lwp_info *lwp);
+
+/* Function to call prior to resuming a thread. */
+
+extern void x86_linux_prepare_to_resume (struct lwp_info *lwp);
+
#endif /* X86_LINUX_H */
/* Does the current host support PTRACE_GETREGSET? */
int have_ptrace_getregset = -1;
-
-/* Called prior to resuming a thread. */
-
-static void
-x86_linux_prepare_to_resume (struct lwp_info *lwp)
-{
- x86_linux_update_debug_registers (lwp);
-}
-
-/* Called when a new thread is detected. */
-
-static void
-x86_linux_new_thread (struct lwp_info *lwp)
-{
- lwp_set_debug_registers_changed (lwp, 1);
-}
\f
/* linux_nat_new_fork hook. */