From patchwork Tue Jul 29 14:37:08 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gary Benson X-Patchwork-Id: 2219 Received: (qmail 8969 invoked by alias); 29 Jul 2014 16:08:53 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 2093 invoked by uid 89); 29 Jul 2014 15:33:44 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD, SPF_HELO_PASS, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Tue, 29 Jul 2014 15:33:42 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s6TEbKsN028283 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 29 Jul 2014 10:37:20 -0400 Received: from blade.nx (ovpn-116-90.ams2.redhat.com [10.36.116.90]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s6TEbJij012355 for ; Tue, 29 Jul 2014 10:37:19 -0400 Received: from blade.nx (localhost [127.0.0.1]) by blade.nx (Postfix) with ESMTP id B2C2D2640DC for ; Tue, 29 Jul 2014 15:37:17 +0100 (BST) From: Gary Benson To: gdb-patches@sourceware.org Subject: [PATCH 06/13] Move libiberty.h to common-defs.h Date: Tue, 29 Jul 2014 15:37:08 +0100 Message-Id: <1406644635-1011-7-git-send-email-gbenson@redhat.com> In-Reply-To: <1406644635-1011-1-git-send-email-gbenson@redhat.com> References: <1406644635-1011-1-git-send-email-gbenson@redhat.com> X-IsSubscribed: yes This commit moves the inclusion of libiberty.h to common-defs.h and removes all other inclusions. gdb/ 2014-07-28 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-07-28 Gary Benson * server.h: Do not include libiberty.h. * linux-bfin-low.c: Likewise. --- gdb/ChangeLog | 9 +++++++++ gdb/common/common-defs.h | 1 + gdb/common/queue.h | 1 - gdb/cp-name-parser.y | 1 - gdb/defs.h | 1 - gdb/gdbserver/ChangeLog | 5 +++++ gdb/gdbserver/linux-bfin-low.c | 1 - gdb/gdbserver/server.h | 1 - gdb/mi/mi-cmd-catch.c | 1 - gdb/python/python.c | 1 - 10 files changed, 15 insertions(+), 7 deletions(-) diff --git a/gdb/common/common-defs.h b/gdb/common/common-defs.h index 8106e68..eedc318 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 4ce53c3..34e4db3 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 3199aff..0caadfa 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 b7b6de9..d9775e3 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/linux-bfin-low.c b/gdb/gdbserver/linux-bfin-low.c index 03aa132..4c10cac 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 061cdcd..9ecd9e0 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 038df59..6c63058 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 369a249..40c4ec9 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"