Move libiberty.h to common-defs.h
authorGary Benson <gbenson@redhat.com>
Mon, 28 Jul 2014 12:52:38 +0000 (13:52 +0100)
committerGary Benson <gbenson@redhat.com>
Thu, 7 Aug 2014 08:06:41 +0000 (09:06 +0100)
This commit moves the inclusion of libiberty.h to common-defs.h and
removes all other inclusions.

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

* 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  <gbenson@redhat.com>

* server.h: Do not include libiberty.h.
* linux-bfin-low.c: Likewise.

gdb/ChangeLog
gdb/common/common-defs.h
gdb/common/queue.h
gdb/cp-name-parser.y
gdb/defs.h
gdb/gdbserver/ChangeLog
gdb/gdbserver/linux-bfin-low.c
gdb/gdbserver/server.h
gdb/mi/mi-cmd-catch.c
gdb/python/python.c

index 422a5d8..6e6143b 100644 (file)
@@ -1,5 +1,14 @@
 2014-08-07  Gary Benson  <gbenson@redhat.com>
 
+       * 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  <gbenson@redhat.com>
+
        * common/common-defs.h: Include ansidecl.h.
        * defs.h: Do not include ansidecl.h.
        * common/buffer.h: Likewise.
index 8106e68..eedc318 100644 (file)
@@ -32,5 +32,6 @@
 #include <stdarg.h>
 #include <stddef.h>
 #include "ansidecl.h"
+#include "libiberty.h"
 
 #endif /* COMMON_DEFS_H */
index 4ce53c3..34e4db3 100644 (file)
@@ -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.
index 3199aff..0caadfa 100644 (file)
@@ -35,7 +35,6 @@
 #include <string.h>
 
 #include "safe-ctype.h"
-#include "libiberty.h"
 #include "demangle.h"
 #include "cp-support.h"
 #include "gdb_assert.h"
index b7b6de9..d9775e3 100644 (file)
@@ -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
index 9d0c7b3..487ada9 100644 (file)
@@ -1,5 +1,10 @@
 2014-08-07  Gary Benson  <gbenson@redhat.com>
 
+       * server.h: Do not include libiberty.h.
+       * linux-bfin-low.c: Likewise.
+
+2014-08-07  Gary Benson  <gbenson@redhat.com>
+
        * server.h: Do not include ansidecl.h.
 
 2014-08-07  Gary Benson  <gbenson@redhat.com>
index 03aa132..4c10cac 100644 (file)
@@ -21,7 +21,6 @@
 
 #include "server.h"
 #include "linux-low.h"
-#include "libiberty.h"
 #include <asm/ptrace.h>
 
 /* Defined in auto-generated file reg-bfin.c.  */
index 061cdcd..9ecd9e0 100644 (file)
@@ -25,7 +25,6 @@
 #include "wincecompat.h"
 #endif
 
-#include "libiberty.h"
 #include "version.h"
 
 #ifdef HAVE_ERRNO_H
index 038df59..6c63058 100644 (file)
@@ -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"
index 369a249..40c4ec9 100644 (file)
@@ -86,7 +86,6 @@ const struct extension_language_defn extension_language_python =
 \f
 #ifdef HAVE_PYTHON
 
-#include "libiberty.h"
 #include "cli/cli-decode.h"
 #include "charset.h"
 #include "top.h"