From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 56560 invoked by alias); 31 Jul 2015 15:16:59 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 56549 invoked by uid 89); 31 Jul 2015 15:16:58 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-pd0-f172.google.com Received: from mail-pd0-f172.google.com (HELO mail-pd0-f172.google.com) (209.85.192.172) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Fri, 31 Jul 2015 15:16:55 +0000 Received: by pdbbh15 with SMTP id bh15so44065843pdb.1 for ; Fri, 31 Jul 2015 08:16:53 -0700 (PDT) X-Received: by 10.70.92.138 with SMTP id cm10mr8009762pdb.63.1438355813472; Fri, 31 Jul 2015 08:16:53 -0700 (PDT) Received: from E107787-LIN.cambridge.arm.com (gcc1-power7.osuosl.org. [140.211.15.137]) by smtp.gmail.com with ESMTPSA id pd10sm8253798pdb.66.2015.07.31.08.16.52 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 31 Jul 2015 08:16:52 -0700 (PDT) From: Yao Qi X-Google-Original-From: Yao Qi To: gdb-patches@sourceware.org Subject: [PATCH 1/7] Move have_ptrace_getregset to linux-low.c Date: Fri, 31 Jul 2015 15:16:00 -0000 Message-Id: <1438355801-25798-2-git-send-email-yao.qi@linaro.org> In-Reply-To: <1438355801-25798-1-git-send-email-yao.qi@linaro.org> References: <1438355801-25798-1-git-send-email-yao.qi@linaro.org> X-IsSubscribed: yes X-SW-Source: 2015-07/txt/msg00936.txt.bz2 This patch moves variable have_ptrace_getregset from linux-x86-low.c to linux-low.c, so that arm can use it too. gdb/gdbserver: 2015-07-28 Yao Qi * linux-x86-low.c (have_ptrace_getregset): Move it to ... * linux-low.c: ... here. * linux-low.h (have_ptrace_getregset): Declare it. --- gdb/gdbserver/linux-low.c | 3 +++ gdb/gdbserver/linux-low.h | 2 ++ gdb/gdbserver/linux-x86-low.c | 3 --- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c index 9bc9fa3..0986bcc 100644 --- a/gdb/gdbserver/linux-low.c +++ b/gdb/gdbserver/linux-low.c @@ -139,6 +139,9 @@ typedef struct } Elf64_auxv_t; #endif +/* Does the current host support PTRACE_GETREGSET? */ +int have_ptrace_getregset = -1; + /* LWP accessors. */ /* See nat/linux-nat.h. */ diff --git a/gdb/gdbserver/linux-low.h b/gdb/gdbserver/linux-low.h index 5a3697b..24fb015 100644 --- a/gdb/gdbserver/linux-low.h +++ b/gdb/gdbserver/linux-low.h @@ -373,3 +373,5 @@ int thread_db_handle_monitor_command (char *); int thread_db_get_tls_address (struct thread_info *thread, CORE_ADDR offset, CORE_ADDR load_module, CORE_ADDR *address); int thread_db_look_up_one_symbol (const char *name, CORE_ADDR *addrp); + +extern int have_ptrace_getregset; diff --git a/gdb/gdbserver/linux-x86-low.c b/gdb/gdbserver/linux-x86-low.c index ec2d906..73fe6cd 100644 --- a/gdb/gdbserver/linux-x86-low.c +++ b/gdb/gdbserver/linux-x86-low.c @@ -1142,9 +1142,6 @@ int have_ptrace_getfpxregs = #endif ; -/* Does the current host support PTRACE_GETREGSET? */ -static int have_ptrace_getregset = -1; - /* Get Linux/x86 target description from running target. */ static const struct target_desc * -- 1.9.1