2015-06-01 Yao Qi <yao.qi@linaro.org>
+ * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
+ * linux-nat.c: ... here.
+ * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
+ to ...
+ * linux-nat.h: ... here.
+
+2015-06-01 Yao Qi <yao.qi@linaro.org>
+
* amd64-linux-nat.c: Include "nat/linux-ptrace.h".
* i386-linux-nat.c: Likewise.
* nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
#define O_LARGEFILE 0
#endif
+/* Does the current host support PTRACE_GETREGSET? */
+int have_ptrace_getregset = -1;
+
/* The single-threaded native GNU/Linux target_ops. We save a pointer for
the use of the multi-threaded target. */
static struct target_ops *linux_ops;
native target is active. */
extern struct lwp_info *lwp_list;
+/* Does the current host support PTRACE_GETREGSET? */
+extern int have_ptrace_getregset;
+
/* Iterate over each active thread (light-weight process). */
#define ALL_LWPS(LP) \
for ((LP) = lwp_list; \
int debug_registers_changed;
};
-/* Does the current host support PTRACE_GETREGSET? */
-int have_ptrace_getregset = -1;
\f
/* linux_nat_new_fork hook. */
#ifndef X86_LINUX_NAT_H
#define X86_LINUX_NAT_H 1
-/* Does the current host support PTRACE_GETREGSET? */
-extern int have_ptrace_getregset;
\f
/* Helper for ps_get_thread_area. Sets BASE_ADDR to a pointer to