Remove GDBSERVER uses from linux-btrace.c
authorGary Benson <gbenson@redhat.com>
Fri, 12 Sep 2014 09:11:42 +0000 (10:11 +0100)
committerGary Benson <gbenson@redhat.com>
Fri, 12 Sep 2014 09:11:42 +0000 (10:11 +0100)
This commit makes nat/linux-btrace.c include common-defs.h rather
than defs.h or server.h.  A couple of minor changes were required
to support this change.

gdb/ChangeLog:

* nat/linux-btrace.c: Include common-defs.h.
Don't include defs.h, server.h or gdbthread.h.
* nat/linux-btrace.h (struct target_ops): New forward declaration.

gdb/ChangeLog
gdb/nat/linux-btrace.c
gdb/nat/linux-btrace.h

index 2e18116704dc22fb0606f7b7935698e83f5654b7..bb0a9e86b07b77372abd5aa4bb7f27e1c4449e3b 100644 (file)
@@ -1,3 +1,9 @@
+2014-09-12  Gary Benson  <gbenson@redhat.com>
+
+       * nat/linux-btrace.c: Include common-defs.h.
+       Don't include defs.h, server.h or gdbthread.h.
+       * nat/linux-btrace.h (struct target_ops): New forward declaration.
+
 2014-09-12  Gary Benson  <gbenson@redhat.com>
 
        * common/agent.c: Include common-defs.h.
index 385ca4e033400365850a0b4e3211d874fa09dc13..37c85c06f0c979c30a11a4c7a6f09836eee90591 100644 (file)
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifdef GDBSERVER
-#include "server.h"
-#else
-#include "defs.h"
-#endif
-
+#include "common-defs.h"
 #include "linux-btrace.h"
 #include "common-regcache.h"
-#include "gdbthread.h"
 #include "gdb_wait.h"
 #include "x86-cpuid.h"
 
index 28a7176ea84e85ac0029420d9c60f2a72029c379..e4b260476a905b244ce4f9ac951f92d0e3fc118c 100644 (file)
@@ -30,6 +30,8 @@
 #  include <linux/perf_event.h>
 #endif
 
+struct target_ops;
+
 /* Branch trace target information per thread.  */
 struct btrace_target_info
 {