diff options
author | Gary Benson <gbenson@redhat.com> | 2014-07-24 15:35:45 +0100 |
---|---|---|
committer | Gary Benson <gbenson@redhat.com> | 2014-07-30 09:22:49 +0100 |
commit | 976411d6b6aa5cae05259eb92b87a04262052e09 (patch) | |
tree | 680cd8fa567bb21cba7ce135f49f3e609740d36a /gdb/gdbserver | |
parent | 5d4848a4bda0cb79d61dcb9987ef6116cf1e6f67 (diff) | |
download | binutils-976411d6b6aa5cae05259eb92b87a04262052e09.zip binutils-976411d6b6aa5cae05259eb92b87a04262052e09.tar.gz binutils-976411d6b6aa5cae05259eb92b87a04262052e09.tar.bz2 |
Introduce common/common-defs.h
This commit creates a new header, common/common-defs.h, to hold
definitions common to all code under gdb/. Both gdb/defs.h and
gdb/gdbserver/server.h are modified to include common-defs.h as
their first non-comment line; all code under gdb/ includes either
defs.h or server.h as appropriate, so common-defs.h will be the
first actual code the compiler sees.
For this initial commit common-defs.h includes only the two
config.h files. Future commits will move more code currently
duplicated across defs.h and server.h such that shared code in
gdb/{common,target,nat} can be modified to include common-defs.h
rather than defs.h or server.h.
gdb/
2014-07-30 Gary Benson <gbenson@redhat.com>
* common/common-defs.h: New file.
* Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
* defs.h: Include common-defs.h.
Do not include config.h or build-gnulib/config.h.
gdb/gdbserver/
2014-07-30 Gary Benson <gbenson@redhat.com>
* server.h: Include common-defs.h.
Do not include config.h or build-gnulib-gdbserver/config.h.
Diffstat (limited to 'gdb/gdbserver')
-rw-r--r-- | gdb/gdbserver/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/gdbserver/server.h | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index df20e8c..d0fa61d 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,5 +1,10 @@ 2014-07-30 Gary Benson <gbenson@redhat.com> + * server.h: Include common-defs.h. + Do not include config.h or build-gnulib-gdbserver/config.h. + +2014-07-30 Gary Benson <gbenson@redhat.com> + * hostio-errno.c: Move server.h to top of includes list. * inferiors.c: Likewise. * linux-x86-low.c: Likewise. diff --git a/gdb/gdbserver/server.h b/gdb/gdbserver/server.h index 2d55513..ef66a32 100644 --- a/gdb/gdbserver/server.h +++ b/gdb/gdbserver/server.h @@ -19,8 +19,7 @@ #ifndef SERVER_H #define SERVER_H -#include "config.h" -#include "build-gnulib-gdbserver/config.h" +#include "common-defs.h" #ifdef __MINGW32CE__ #include "wincecompat.h" |