From patchwork Tue Jul 29 14:37:05 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gary Benson X-Patchwork-Id: 2211 Received: (qmail 31100 invoked by alias); 29 Jul 2014 15:11:22 -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 8340 invoked by uid 89); 29 Jul 2014 14:37:25 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 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 14:37:20 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s6TEbJ6D014378 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 29 Jul 2014 10:37:19 -0400 Received: from blade.nx (ovpn-116-90.ams2.redhat.com [10.36.116.90]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s6TEbHcc017902 for ; Tue, 29 Jul 2014 10:37:18 -0400 Received: from blade.nx (localhost [127.0.0.1]) by blade.nx (Postfix) with ESMTP id 718DB2640D8 for ; Tue, 29 Jul 2014 15:37:17 +0100 (BST) From: Gary Benson To: gdb-patches@sourceware.org Subject: [PATCH 03/13] Move stdarg.h to common-defs.h Date: Tue, 29 Jul 2014 15:37:05 +0100 Message-Id: <1406644635-1011-4-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 stdarg.h to common-defs.h and removes all other inclusions. gdb/ 2014-07-28 Gary Benson * common/common-defs.h: Include stdarg.h. * defs.h: Do not include stdarg.h. * ada-lang.c: Likewise. * common/common-utils.h: Likewise. * guile/scm-string.c: Likewise. * guile/scm-utils.c: Likewise. * m32c-tdep.c: Likewise. gdb/gdbserver/ 2014-07-28 Gary Benson * server.h: Do not include stdarg.h. * nto-low.c: Likewise. --- gdb/ChangeLog | 10 ++++++++++ gdb/ada-lang.c | 1 - gdb/common/common-defs.h | 1 + gdb/common/common-utils.h | 1 - gdb/defs.h | 2 -- gdb/gdbserver/ChangeLog | 5 +++++ gdb/gdbserver/nto-low.c | 1 - gdb/gdbserver/server.h | 1 - gdb/guile/scm-string.c | 1 - gdb/guile/scm-utils.c | 1 - gdb/m32c-tdep.c | 3 --- 11 files changed, 16 insertions(+), 11 deletions(-) diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c index bf39f6b..5297fd3 100644 --- a/gdb/ada-lang.c +++ b/gdb/ada-lang.c @@ -21,7 +21,6 @@ #include "defs.h" #include #include -#include #include "demangle.h" #include "gdb_regex.h" #include "frame.h" diff --git a/gdb/common/common-defs.h b/gdb/common/common-defs.h index ed95a36..d227b00 100644 --- a/gdb/common/common-defs.h +++ b/gdb/common/common-defs.h @@ -29,5 +29,6 @@ #include #include +#include #endif /* COMMON_DEFS_H */ diff --git a/gdb/common/common-utils.h b/gdb/common/common-utils.h index f052fed..dff7b53 100644 --- a/gdb/common/common-utils.h +++ b/gdb/common/common-utils.h @@ -22,7 +22,6 @@ #include "ansidecl.h" #include -#include /* If possible, define FUNCTION_NAME, a macro containing the name of the function being defined. Since this macro may not always be diff --git a/gdb/defs.h b/gdb/defs.h index 2e1e06b..00cb8e7 100644 --- a/gdb/defs.h +++ b/gdb/defs.h @@ -90,8 +90,6 @@ #define O_BINARY 0 #endif -#include /* For va_list. */ - #include "libiberty.h" #include "hashtab.h" diff --git a/gdb/gdbserver/nto-low.c b/gdb/gdbserver/nto-low.c index 3587156..0afaec7 100644 --- a/gdb/gdbserver/nto-low.c +++ b/gdb/gdbserver/nto-low.c @@ -28,7 +28,6 @@ #include #include #include -#include #include #include diff --git a/gdb/gdbserver/server.h b/gdb/gdbserver/server.h index a15ba36..9d7fd99 100644 --- a/gdb/gdbserver/server.h +++ b/gdb/gdbserver/server.h @@ -29,7 +29,6 @@ #include "ansidecl.h" #include "version.h" -#include #ifdef HAVE_ERRNO_H #include #endif diff --git a/gdb/guile/scm-string.c b/gdb/guile/scm-string.c index 3e3e015..975d198 100644 --- a/gdb/guile/scm-string.c +++ b/gdb/guile/scm-string.c @@ -21,7 +21,6 @@ conventions, et.al. */ #include "defs.h" -#include #include "charset.h" #include "guile-internal.h" diff --git a/gdb/guile/scm-utils.c b/gdb/guile/scm-utils.c index 5a17bd9..ada77a3 100644 --- a/gdb/guile/scm-utils.c +++ b/gdb/guile/scm-utils.c @@ -21,7 +21,6 @@ conventions, et.al. */ #include "defs.h" -#include #include #include "gdb_assert.h" #include "guile-internal.h" diff --git a/gdb/m32c-tdep.c b/gdb/m32c-tdep.c index 2c7dbb8..88f17a9 100644 --- a/gdb/m32c-tdep.c +++ b/gdb/m32c-tdep.c @@ -18,9 +18,6 @@ along with this program. If not, see . */ #include "defs.h" - -#include - #include #include "gdb_assert.h" #include "elf-bfd.h"