From: Gary Benson Date: Mon, 28 Jul 2014 12:52:38 +0000 (+0100) Subject: Move libiberty.h to common-defs.h X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b939114242762636cfdcf9a45949cb54cdaacc8c;p=binutils-gdb.git Move libiberty.h to common-defs.h This commit moves the inclusion of libiberty.h to common-defs.h and removes all other inclusions. gdb/ 2014-08-07 Gary Benson * common/common-defs.h: Include libiberty.h. * defs.h: Do not include libiberty.h. * common/queue.h: Likewise. * cp-name-parser.y: Likewise. * mi/mi-cmd-catch.c: Likewise. * python/python.c: Likewise. gdb/gdbserver/ 2014-08-07 Gary Benson * server.h: Do not include libiberty.h. * linux-bfin-low.c: Likewise. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 422a5d8ce59..6e6143ba219 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,12 @@ +2014-08-07 Gary Benson + + * common/common-defs.h: Include libiberty.h. + * defs.h: Do not include libiberty.h. + * common/queue.h: Likewise. + * cp-name-parser.y: Likewise. + * mi/mi-cmd-catch.c: Likewise. + * python/python.c: Likewise. + 2014-08-07 Gary Benson * common/common-defs.h: Include ansidecl.h. diff --git a/gdb/common/common-defs.h b/gdb/common/common-defs.h index 8106e68ed1a..eedc318cac6 100644 --- a/gdb/common/common-defs.h +++ b/gdb/common/common-defs.h @@ -32,5 +32,6 @@ #include #include #include "ansidecl.h" +#include "libiberty.h" #endif /* COMMON_DEFS_H */ diff --git a/gdb/common/queue.h b/gdb/common/queue.h index 4ce53c3c7c7..34e4db38666 100644 --- a/gdb/common/queue.h +++ b/gdb/common/queue.h @@ -20,7 +20,6 @@ #ifndef QUEUE_H #define QUEUE_H -#include "libiberty.h" /* xmalloc */ #include "gdb_assert.h" /* These macros implement functions and structs for a general queue. diff --git a/gdb/cp-name-parser.y b/gdb/cp-name-parser.y index 3199aff6c6d..0caadfa85e0 100644 --- a/gdb/cp-name-parser.y +++ b/gdb/cp-name-parser.y @@ -35,7 +35,6 @@ #include #include "safe-ctype.h" -#include "libiberty.h" #include "demangle.h" #include "cp-support.h" #include "gdb_assert.h" diff --git a/gdb/defs.h b/gdb/defs.h index b7b6de90ff8..d9775e32843 100644 --- a/gdb/defs.h +++ b/gdb/defs.h @@ -83,7 +83,6 @@ #define O_BINARY 0 #endif -#include "libiberty.h" #include "hashtab.h" /* Rather than duplicate all the logic in BFD for figuring out what diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 9d0c7b36627..487ada9890a 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,8 @@ +2014-08-07 Gary Benson + + * server.h: Do not include libiberty.h. + * linux-bfin-low.c: Likewise. + 2014-08-07 Gary Benson * server.h: Do not include ansidecl.h. diff --git a/gdb/gdbserver/linux-bfin-low.c b/gdb/gdbserver/linux-bfin-low.c index 03aa13253b9..4c10cace9d7 100644 --- a/gdb/gdbserver/linux-bfin-low.c +++ b/gdb/gdbserver/linux-bfin-low.c @@ -21,7 +21,6 @@ #include "server.h" #include "linux-low.h" -#include "libiberty.h" #include /* Defined in auto-generated file reg-bfin.c. */ diff --git a/gdb/gdbserver/server.h b/gdb/gdbserver/server.h index 061cdcdb29c..9ecd9e02c9d 100644 --- a/gdb/gdbserver/server.h +++ b/gdb/gdbserver/server.h @@ -25,7 +25,6 @@ #include "wincecompat.h" #endif -#include "libiberty.h" #include "version.h" #ifdef HAVE_ERRNO_H diff --git a/gdb/mi/mi-cmd-catch.c b/gdb/mi/mi-cmd-catch.c index 038df5969bd..6c63058e7ee 100644 --- a/gdb/mi/mi-cmd-catch.c +++ b/gdb/mi/mi-cmd-catch.c @@ -22,7 +22,6 @@ #include "arch-utils.h" #include "breakpoint.h" #include "gdb.h" -#include "libiberty.h" #include "ada-lang.h" #include "mi-cmds.h" #include "mi-getopt.h" diff --git a/gdb/python/python.c b/gdb/python/python.c index 369a2497809..40c4ec97943 100644 --- a/gdb/python/python.c +++ b/gdb/python/python.c @@ -86,7 +86,6 @@ const struct extension_language_defn extension_language_python = #ifdef HAVE_PYTHON -#include "libiberty.h" #include "cli/cli-decode.h" #include "charset.h" #include "top.h"