[15/15,v2] Finally remove GDBSERVER (mostly) from linux-btrace.c
Commit Message
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(-)
@@ -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"
@@ -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"