This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 15/15] Finally remove GDBSERVER (mostly) from linux-btrace.c
- From: Gary Benson <gbenson at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Wed, 9 Jul 2014 11:37:35 +0100
- Subject: [PATCH 15/15] Finally remove GDBSERVER (mostly) from linux-btrace.c
- Authentication-results: sourceware.org; auth=none
- References: <1404902255-11101-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-09 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 dd7744b..3fd80bb 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"
diff --git a/gdb/nat/linux-btrace.h b/gdb/nat/linux-btrace.h
index 85cd88b..708476f 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