Do not include defs.h or server.h in any header file

This commit removes all inclusions of defs.h and server.h from header
files.

gdb/
2014-07-31  Gary Benson  <gbenson@redhat.com>

	* common/btrace-common.h: Do not include defs.h or server.h.
	* nat/mips-linux-watch.h: Likewise.
	* gdb-dlfcn.h: Do not include defs.h.
	* tracefile.h: Likewise.

gdb/gdbserver/
2014-07-31  Gary Benson  <gbenson@redhat.com>

	* ax.h: Do not include server.h.
	* gdbthread.h: Likewise.
	* lynx-low.h: Likewise.
	* notif.h: Likewise.
This commit is contained in:
Gary Benson 2014-07-31 13:25:01 +01:00
parent 678f6f20d0
commit 462f517e50
10 changed files with 14 additions and 20 deletions

View file

@ -1,3 +1,10 @@
2014-07-31 Gary Benson <gbenson@redhat.com>
* common/btrace-common.h: Do not include defs.h or server.h.
* nat/mips-linux-watch.h: Likewise.
* gdb-dlfcn.h: Do not include defs.h.
* tracefile.h: Likewise.
2014-07-30 Roland McGrath <mcgrathr@google.com> 2014-07-30 Roland McGrath <mcgrathr@google.com>
* remote-sim.c (gdbsim_open): Apply constification to forward decl. * remote-sim.c (gdbsim_open): Apply constification to forward decl.

View file

@ -26,12 +26,6 @@
inferior. For presentation purposes, the branch trace is represented as a inferior. For presentation purposes, the branch trace is represented as a
list of sequential control-flow blocks, one such list per thread. */ list of sequential control-flow blocks, one such list per thread. */
#ifdef GDBSERVER
# include "server.h"
#else
# include "defs.h"
#endif
#include "vec.h" #include "vec.h"
/* A branch trace block. /* A branch trace block.

View file

@ -20,8 +20,6 @@
#ifndef GDB_DLFCN_H #ifndef GDB_DLFCN_H
#define GDB_DLFCN_H #define GDB_DLFCN_H
#include "defs.h"
/* Load the dynamic library file named FILENAME, and return a handle /* Load the dynamic library file named FILENAME, and return a handle
for that dynamic library. Return NULL if the loading fails for any for that dynamic library. Return NULL if the loading fails for any
reason. */ reason. */

View file

@ -1,3 +1,10 @@
2014-07-31 Gary Benson <gbenson@redhat.com>
* ax.h: Do not include server.h.
* gdbthread.h: Likewise.
* lynx-low.h: Likewise.
* notif.h: Likewise.
2014-07-30 Gary Benson <gbenson@redhat.com> 2014-07-30 Gary Benson <gbenson@redhat.com>
* server.h: Include common-defs.h. * server.h: Include common-defs.h.

View file

@ -19,7 +19,6 @@
#if !defined (AX_H) #if !defined (AX_H)
#define AX_H 1 #define AX_H 1
#include "server.h"
#include "regcache.h" #include "regcache.h"
#ifdef IN_PROCESS_AGENT #ifdef IN_PROCESS_AGENT

View file

@ -19,7 +19,6 @@
#ifndef GDB_THREAD_H #ifndef GDB_THREAD_H
#define GDB_THREAD_H #define GDB_THREAD_H
#include "server.h"
#include "inferiors.h" #include "inferiors.h"
struct btrace_target_info; struct btrace_target_info;

View file

@ -15,8 +15,6 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "server.h"
struct regcache; struct regcache;
struct target_desc; struct target_desc;

View file

@ -17,7 +17,6 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "ptid.h" #include "ptid.h"
#include "server.h"
#include "target.h" #include "target.h"
#include "queue.h" #include "queue.h"

View file

@ -18,12 +18,6 @@
#ifndef MIPS_LINUX_WATCH_H #ifndef MIPS_LINUX_WATCH_H
#define MIPS_LINUX_WATCH_H 1 #define MIPS_LINUX_WATCH_H 1
#ifdef GDBSERVER
#include "server.h"
#else
#include "defs.h"
#endif
#include <asm/ptrace.h> #include <asm/ptrace.h>
#include <stdint.h> #include <stdint.h>

View file

@ -1,7 +1,6 @@
#ifndef TRACEFILE_H #ifndef TRACEFILE_H
#define TRACEFILE_H 1 #define TRACEFILE_H 1
#include "defs.h"
#include "tracepoint.h" #include "tracepoint.h"
struct trace_file_writer; struct trace_file_writer;