This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 15/15 v2] Finally remove GDBSERVER (mostly) from linux-btrace.c
- From: Gary Benson <gbenson at redhat dot com>
- To: gdb-patches at sourceware dot org
- Cc: Tom Tromey <tromey at redhat dot com>, Doug Evans <dje at google dot com>
- Date: Wed, 16 Jul 2014 15:17:23 +0100
- Subject: [PATCH 15/15 v2] Finally remove GDBSERVER (mostly) from linux-btrace.c
- Authentication-results: sourceware.org; auth=none
- References: <1405520243-17282-1-git-send-email-gbenson at redhat dot com>
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 <tromey@redhat.com>
Gary Benson <gbenson@redhat.com>
* 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 <http://www.gnu.org/licenses/>. */
+#include <config.h>
+
#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