From 433bbbf8574a04c1639c5466fd7c320b510b9512 Mon Sep 17 00:00:00 2001 From: Yao Qi Date: Mon, 1 Jun 2015 12:13:02 +0100 Subject: 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 * 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. --- gdb/x86-linux-nat.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'gdb/x86-linux-nat.c') diff --git a/gdb/x86-linux-nat.c b/gdb/x86-linux-nat.c index 0026d26..5d8f7c7 100644 --- a/gdb/x86-linux-nat.c +++ b/gdb/x86-linux-nat.c @@ -51,8 +51,6 @@ struct arch_lwp_info int debug_registers_changed; }; -/* Does the current host support PTRACE_GETREGSET? */ -int have_ptrace_getregset = -1; /* linux_nat_new_fork hook. */ -- cgit v1.1