From 8ebb3f5606b361b30e854335fa5a9ce0fd018d41 Mon Sep 17 00:00:00 2001 From: Gary Benson Date: Mon, 28 Jul 2014 13:15:41 +0100 Subject: [PATCH] Move stddef.h to common-defs.h This commit moves the inclusion of stddef.h to common-defs.h and removes all other inclusions. gdb/ 2014-08-07 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-08-07 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/ChangeLog b/gdb/ChangeLog index 8ced7b8f696..1cd070c3e3d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,21 @@ +2014-08-07 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. + 2014-08-07 Gary Benson * common/common-defs.h: Include stdarg.h. diff --git a/gdb/amd64fbsd-nat.c b/gdb/amd64fbsd-nat.c index 72dc39bb34b..3650bb59649 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 0c87e2d5e34..44530bcf7e5 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 05d8feeb863..9e39e21ef6d 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 c6abc8b3f86..d051bfbedc5 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 d227b00847d..f1fd3637fa2 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 dff7b53c5b8..4dc432970b5 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 7bae2ff9494..2a39eff4e53 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 00cb8e73b75..58098a9c883 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/ChangeLog b/gdb/gdbserver/ChangeLog index 6f0dbf0f121..90d40ed7610 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,9 @@ +2014-08-07 Gary Benson + + * linux-x86-low.c: Do not include stddef.h. + * lynx-ppc-low.c: Likewise. + * tracepoint.c: Likewise. + 2014-08-07 Gary Benson * server.h: Do not include stdarg.h. diff --git a/gdb/gdbserver/linux-x86-low.c b/gdb/gdbserver/linux-x86-low.c index 850ed7cd4e3..7a8a4732386 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 d6ead6f5e54..7884f2334cc 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 31be953e56b..302b9c7f430 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 acae6cbe88f..4bee1594977 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 a96d9d1fdb5..5faf535d4b4 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 079bd12e3db..aeb47aff126 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 747b452e7a8..6631fc1156e 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 1aa56d01b47..9e3e85b78a1 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 8c9ac3a0926..7d8d13e731b 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 e926f8e1460..b778aa9f4d7 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 -- 2.30.2