From: Gary Benson Date: Fri, 12 Sep 2014 09:11:42 +0000 (+0100) Subject: Remove GDBSERVER uses from linux-btrace.c X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=53f813629714f46e536c1f0bfa256d7b6b48cf3e;p=binutils-gdb.git Remove GDBSERVER uses from linux-btrace.c 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. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2e18116704d..bb0a9e86b07 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2014-09-12 Gary Benson + + * 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 * common/agent.c: Include common-defs.h. diff --git a/gdb/nat/linux-btrace.c b/gdb/nat/linux-btrace.c index 385ca4e0334..37c85c06f0c 100644 --- a/gdb/nat/linux-btrace.c +++ b/gdb/nat/linux-btrace.c @@ -19,15 +19,9 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#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" diff --git a/gdb/nat/linux-btrace.h b/gdb/nat/linux-btrace.h index 28a7176ea84..e4b260476a9 100644 --- a/gdb/nat/linux-btrace.h +++ b/gdb/nat/linux-btrace.h @@ -30,6 +30,8 @@ # include #endif +struct target_ops; + /* Branch trace target information per thread. */ struct btrace_target_info {