Finally remove GDBSERVER (mostly) from agent.c

This reduces the use of the GDBSERVER define in agent.c to deciding
which gnulib header to include.

gdb/
2014-06-18  Tom Tromey  <tromey@redhat.com>
	    Gary Benson  <gbenson@redhat.com>

	* common/agent.c: Don't include defs.h or server.h.
Introduce common_get_thread_regcache

This introduces common_get_thread_regcache so that we can simplify
common/linux-btrace.c.  A better long term solution would be unify the
regcache code, but this suffices for my current purposes.

gdb/
2014-06-18  Tom Tromey  <tromey@redhat.com>

	* regcache.h (common_get_thread_regcache): Declare.
	* regcache.c (common_get_thread_regcache): New function.
	* common/linux-btrace.h (common_get_thread_regcache): Declare.
	* common/linux-btrace.c (perf_event_read_bts): Use
	common_get_thread_regcache.

gdb/gdbserver/
2014-06-18  Tom Tromey  <tromey@redhat.com>

	* regcache.c (common_get_thread_regcache): New function.
Finally remove GDBSERVER (mostly) from linux-btrace.c

This applies the usual GDBSERVER treatment to linux-btrace.c.
Now it is used only to find the gnulib header.

gdb/
2014-06-18  Tom Tromey  <tromey@redhat.com>

	* common/linux-btrace.c: Don't include defs.h or server.h.
	* common/linux-btrace.h (struct target_ops): Declare.