Move have_ptrace_getregset to linux-nat.c

I'll let arm-linux-nat.c to use PTRACE_GETREGSET if kernel supports,
so this patch is to move have_ptrace_getregset from x86-linux-nat.c
to linux-nat.c.

gdb:

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.
This commit is contained in:
Yao Qi 2015-06-01 12:13:02 +01:00
parent ca9b78ce90
commit 433bbbf857
5 changed files with 14 additions and 4 deletions

View file

@ -20,8 +20,6 @@
#ifndef X86_LINUX_NAT_H
#define X86_LINUX_NAT_H 1
/* Does the current host support PTRACE_GETREGSET? */
extern int have_ptrace_getregset;
/* Helper for ps_get_thread_area. Sets BASE_ADDR to a pointer to