From patchwork Tue Jul 29 14:37:06 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gary Benson X-Patchwork-Id: 2210 Received: (qmail 31070 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 8369 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 s6TEbJSr014380 (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 s6TEbH86017905 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 89EE72640DA for ; Tue, 29 Jul 2014 15:37:17 +0100 (BST) From: Gary Benson To: gdb-patches@sourceware.org Subject: [PATCH 04/13] Move stddef.h to common-defs.h Date: Tue, 29 Jul 2014 15:37:06 +0100 Message-Id: <1406644635-1011-5-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 stddef.h to common-defs.h and removes all other inclusions. gdb/ 2014-07-28 Gary Benson * common/common-defs.h: Include stddef.h. * defs.h: Do not include stddef.h. * common/common-utils.h: Likewise. * amd64fbsd-nat.c: Likewise. * bcache.c: Likewise. * charset.c: Likewise. * common/buffer.h: Likewise. * common/vec.h: Likewise. * i386bsd-nat.c: Likewise. * nat/linux-btrace.h: Likewise. * ppcfbsd-nat.c: Likewise. * ppcnbsd-tdep.h: Likewise. * ppcobsd-nat.c: Likewise. * ppcobsd-tdep.h: Likewise. * python/py-gdb-readline.c: Likewise. gdb/gdbserver/ 2014-07-28 Gary Benson * linux-x86-low.c: Do not include stddef.h. * lynx-ppc-low.c: Likewise. * tracepoint.c: Likewise. --- gdb/ChangeLog | 18 ++++++++++++++++++ gdb/amd64fbsd-nat.c | 1 - gdb/bcache.c | 2 -- gdb/charset.c | 1 - gdb/common/buffer.h | 1 - gdb/common/common-defs.h | 1 + gdb/common/common-utils.h | 1 - gdb/common/vec.h | 2 -- gdb/defs.h | 2 -- gdb/gdbserver/ChangeLog | 6 ++++++ gdb/gdbserver/linux-x86-low.c | 1 - gdb/gdbserver/lynx-ppc-low.c | 1 - gdb/gdbserver/tracepoint.c | 1 - gdb/i386bsd-nat.c | 1 - gdb/nat/linux-btrace.h | 1 - gdb/ppcfbsd-nat.c | 1 - gdb/ppcnbsd-tdep.h | 2 -- gdb/ppcobsd-nat.c | 1 - gdb/ppcobsd-tdep.h | 2 -- gdb/python/py-gdb-readline.c | 2 -- 20 files changed, 25 insertions(+), 23 deletions(-) diff --git a/gdb/amd64fbsd-nat.c b/gdb/amd64fbsd-nat.c index 72dc39b..3650bb5 100644 --- a/gdb/amd64fbsd-nat.c +++ b/gdb/amd64fbsd-nat.c @@ -24,7 +24,6 @@ #include "gdb_assert.h" #include -#include #include #include #include diff --git a/gdb/bcache.c b/gdb/bcache.c index 0c87e2d..44530bc 100644 --- a/gdb/bcache.c +++ b/gdb/bcache.c @@ -25,8 +25,6 @@ #include /* For memcpy declaration */ #include "gdb_assert.h" -#include - /* The type used to hold a single bcache string. The user data is stored in d.data. Since it can be any type, it needs to have the same alignment as the most strict alignment of any type on the host diff --git a/gdb/charset.c b/gdb/charset.c index 6f413a2..3e7a85c 100644 --- a/gdb/charset.c +++ b/gdb/charset.c @@ -29,7 +29,6 @@ #include "arch-utils.h" #include "gdb_vecs.h" -#include #include #include diff --git a/gdb/common/buffer.h b/gdb/common/buffer.h index c6abc8b..d051bfb 100644 --- a/gdb/common/buffer.h +++ b/gdb/common/buffer.h @@ -20,7 +20,6 @@ #ifndef BUFFER_H #define BUFFER_H -#include #include #include "ansidecl.h" diff --git a/gdb/common/common-defs.h b/gdb/common/common-defs.h index d227b00..f1fd363 100644 --- a/gdb/common/common-defs.h +++ b/gdb/common/common-defs.h @@ -30,5 +30,6 @@ #include #include #include +#include #endif /* COMMON_DEFS_H */ diff --git a/gdb/common/common-utils.h b/gdb/common/common-utils.h index dff7b53..4dc4329 100644 --- a/gdb/common/common-utils.h +++ b/gdb/common/common-utils.h @@ -21,7 +21,6 @@ #define COMMON_UTILS_H #include "ansidecl.h" -#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/common/vec.h b/gdb/common/vec.h index 7bae2ff..2a39eff 100644 --- a/gdb/common/vec.h +++ b/gdb/common/vec.h @@ -20,8 +20,6 @@ #if !defined (GDB_VEC_H) #define GDB_VEC_H -#include - #include #include "gdb_assert.h" diff --git a/gdb/defs.h b/gdb/defs.h index 00cb8e7..58098a9 100644 --- a/gdb/defs.h +++ b/gdb/defs.h @@ -46,8 +46,6 @@ included, so it's ok to blank out gstdint.h. */ #define GCC_GENERATED_STDINT_H 1 -#include - #include /* For gnulib's PATH_MAX. */ diff --git a/gdb/gdbserver/linux-x86-low.c b/gdb/gdbserver/linux-x86-low.c index 850ed7c..7a8a473 100644 --- a/gdb/gdbserver/linux-x86-low.c +++ b/gdb/gdbserver/linux-x86-low.c @@ -18,7 +18,6 @@ along with this program. If not, see . */ #include "server.h" -#include #include #include #include diff --git a/gdb/gdbserver/lynx-ppc-low.c b/gdb/gdbserver/lynx-ppc-low.c index d6ead6f..7884f23 100644 --- a/gdb/gdbserver/lynx-ppc-low.c +++ b/gdb/gdbserver/lynx-ppc-low.c @@ -19,7 +19,6 @@ #include "lynx-low.h" #include -#include #include #include diff --git a/gdb/gdbserver/tracepoint.c b/gdb/gdbserver/tracepoint.c index 31be953..302b9c7 100644 --- a/gdb/gdbserver/tracepoint.c +++ b/gdb/gdbserver/tracepoint.c @@ -26,7 +26,6 @@ #include #include #include -#include #include #include diff --git a/gdb/i386bsd-nat.c b/gdb/i386bsd-nat.c index acae6cb..4bee159 100644 --- a/gdb/i386bsd-nat.c +++ b/gdb/i386bsd-nat.c @@ -23,7 +23,6 @@ #include "gdb_assert.h" #include -#include #include #include #include diff --git a/gdb/nat/linux-btrace.h b/gdb/nat/linux-btrace.h index a96d9d1..5faf535 100644 --- a/gdb/nat/linux-btrace.h +++ b/gdb/nat/linux-btrace.h @@ -25,7 +25,6 @@ #include "btrace-common.h" #include "vec.h" #include "ptid.h" -#include #include #if HAVE_LINUX_PERF_EVENT_H diff --git a/gdb/ppcfbsd-nat.c b/gdb/ppcfbsd-nat.c index 079bd12..aeb47af 100644 --- a/gdb/ppcfbsd-nat.c +++ b/gdb/ppcfbsd-nat.c @@ -23,7 +23,6 @@ #include "regcache.h" #include "gdb_assert.h" -#include #include #include #include diff --git a/gdb/ppcnbsd-tdep.h b/gdb/ppcnbsd-tdep.h index 747b452..6631fc1 100644 --- a/gdb/ppcnbsd-tdep.h +++ b/gdb/ppcnbsd-tdep.h @@ -20,8 +20,6 @@ #ifndef PPCNBSD_TDEP_H #define PPCNBSD_TDEP_H -#include - struct regset; /* Register offsets for NetBSD/powerpc. */ diff --git a/gdb/ppcobsd-nat.c b/gdb/ppcobsd-nat.c index 1aa56d0..9e3e85b 100644 --- a/gdb/ppcobsd-nat.c +++ b/gdb/ppcobsd-nat.c @@ -23,7 +23,6 @@ #include "regcache.h" #include "gdb_assert.h" -#include #include #include #include diff --git a/gdb/ppcobsd-tdep.h b/gdb/ppcobsd-tdep.h index 8c9ac3a..7d8d13e 100644 --- a/gdb/ppcobsd-tdep.h +++ b/gdb/ppcobsd-tdep.h @@ -20,8 +20,6 @@ #ifndef PPCOBSD_TDEP_H #define PPCOBSD_TDEP_H -#include - struct regset; struct regcache; diff --git a/gdb/python/py-gdb-readline.c b/gdb/python/py-gdb-readline.c index e926f8e..b778aa9 100644 --- a/gdb/python/py-gdb-readline.c +++ b/gdb/python/py-gdb-readline.c @@ -24,8 +24,6 @@ #include "cli/cli-utils.h" #include -#include - /* Readline function suitable for PyOS_ReadlineFunctionPointer, which is used for Python's interactive parser and raw_input. In both cases, sys_stdin and sys_stdout are always stdin and stdout