From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15776 invoked by alias); 16 Jul 2014 16:19:40 -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 15722 invoked by uid 89); 16 Jul 2014 16:19:39 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Wed, 16 Jul 2014 16:19:37 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s6GGJYtv027777 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 16 Jul 2014 12:19:34 -0400 Received: from blade.nx (ovpn-116-36.ams2.redhat.com [10.36.116.36]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s6GGJX3s032404; Wed, 16 Jul 2014 12:19:34 -0400 Received: from blade.nx (localhost [127.0.0.1]) by blade.nx (Postfix) with ESMTP id DC2722640D5; Wed, 16 Jul 2014 15:17:31 +0100 (BST) From: Gary Benson To: gdb-patches@sourceware.org Cc: Tom Tromey , Doug Evans Subject: [PATCH 15/15 v2] Finally remove GDBSERVER (mostly) from linux-btrace.c Date: Wed, 16 Jul 2014 16:19:00 -0000 Message-Id: <1405520243-17282-16-git-send-email-gbenson@redhat.com> In-Reply-To: <1405520243-17282-1-git-send-email-gbenson@redhat.com> References: <1405520243-17282-1-git-send-email-gbenson@redhat.com> X-IsSubscribed: yes X-SW-Source: 2014-07/txt/msg00430.txt.bz2 This applies the usual GDBSERVER treatment to linux-btrace.c. Now it is used only to find the gnulib header. gdb/ 2014-07-16 Tom Tromey Gary Benson * nat/linux-btrace.c: Don't include defs.h or server.h. * nat/linux-btrace.h (struct target_ops): Declare. --- gdb/ChangeLog | 6 ++++++ gdb/nat/linux-btrace.c | 13 ++++++++++--- gdb/nat/linux-btrace.h | 2 ++ 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/gdb/nat/linux-btrace.c b/gdb/nat/linux-btrace.c index 3b4180f..30d678c 100644 --- a/gdb/nat/linux-btrace.c +++ b/gdb/nat/linux-btrace.c @@ -19,17 +19,24 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ +#include + #ifdef GDBSERVER -#include "server.h" +#include "build-gnulib-gdbserver/config.h" #else -#include "defs.h" +#include "build-gnulib/config.h" #endif +#include "common-types.h" +#include "common-utils.h" +#include "target/waitstatus.h" +#include "errors.h" +#include "gdb_locale.h" +#include "gdb_signals.h" #include "linux-btrace.h" #include "common-utils.h" #include "gdb_assert.h" #include "regcache.h" -#include "gdbthread.h" #include "gdb_wait.h" #include "i386-cpuid.h" #include "common-regcache.h" diff --git a/gdb/nat/linux-btrace.h b/gdb/nat/linux-btrace.h index 12e9b60..e237eea 100644 --- a/gdb/nat/linux-btrace.h +++ b/gdb/nat/linux-btrace.h @@ -22,6 +22,8 @@ #ifndef LINUX_BTRACE_H #define LINUX_BTRACE_H +struct target_ops; + #include "btrace-common.h" #include "config.h" #include "vec.h" -- 1.7.1