diff options
author | Gary Benson <gbenson@redhat.com> | 2014-09-12 10:11:42 +0100 |
---|---|---|
committer | Gary Benson <gbenson@redhat.com> | 2014-09-12 10:11:42 +0100 |
commit | 727605ca75e009d8468bb6378b7d18b774838b2d (patch) | |
tree | e3ae51da620ae399d975a28028f26d1e2b693727 /gdb/common/vec.c | |
parent | 361c8ade9c3c88cf7f0111fdab3ceb03028842bc (diff) | |
download | binutils-gdb-727605ca75e009d8468bb6378b7d18b774838b2d.tar.gz |
Include common-defs.h instead of defs.h/server.h in shared code
This commit makes 19 of the 22 shared .c files in common, nat and
target include common-defs.h instead of defs.h/server.h. The
remaining three files need slight extra work and are dealt with
in separate commits.
gdb/ChangeLog:
* common/agent.c: Include common-defs.h.
Don't include defs.h or server.h.
* common/buffer.c: Likewise.
* common/common-debug.c: Likewise.
* common/common-utils.c: Likewise.
* common/errors.c: Likewise.
* common/filestuff.c: Likewise.
* common/format.c: Likewise.
* common/gdb_vecs.c: Likewise.
* common/print-utils.c: Likewise.
* common/ptid.c: Likewise.
* common/rsp-low.c: Likewise.
* common/signals.c: Likewise.
* common/vec.c: Likewise.
* common/xml-utils.c: Likewise.
* nat/linux-osdata.c: Likewise.
* nat/linux-procfs.c: Likewise.
* nat/linux-ptrace.c: Likewise.
* nat/mips-linux-watch.c: Likewise.
* target/waitstatus.c: Likewise.
Diffstat (limited to 'gdb/common/vec.c')
-rw-r--r-- | gdb/common/vec.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/gdb/common/vec.c b/gdb/common/vec.c index 4611e5f8db0..9fc691504c3 100644 --- a/gdb/common/vec.c +++ b/gdb/common/vec.c @@ -17,12 +17,7 @@ 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 "vec.h" struct vec_prefix |