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

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

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

* linux-x86-low.c: Do not include stddef.h.
* lynx-ppc-low.c: Likewise.
* tracepoint.c: Likewise.

20 files changed:
gdb/ChangeLog
gdb/amd64fbsd-nat.c
gdb/bcache.c
gdb/charset.c
gdb/common/buffer.h
gdb/common/common-defs.h
gdb/common/common-utils.h
gdb/common/vec.h
gdb/defs.h
gdb/gdbserver/ChangeLog
gdb/gdbserver/linux-x86-low.c
gdb/gdbserver/lynx-ppc-low.c
gdb/gdbserver/tracepoint.c
gdb/i386bsd-nat.c
gdb/nat/linux-btrace.h
gdb/ppcfbsd-nat.c
gdb/ppcnbsd-tdep.h
gdb/ppcobsd-nat.c
gdb/ppcobsd-tdep.h
gdb/python/py-gdb-readline.c

index 8ced7b8f6967adbfd28e8f7bb2660fba722ee67f..1cd070c3e3d69bbda950120bbe450f40de89261b 100644 (file)
@@ -1,3 +1,21 @@
+2014-08-07  Gary Benson  <gbenson@redhat.com>
+
+       * 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  <gbenson@redhat.com>
 
        * common/common-defs.h: Include stdarg.h.
index 72dc39bb34b48e7ecf66ded4372b307d3dc081c3..3650bb596497017a4ae521d8aaa42b3cf27852e3 100644 (file)
@@ -24,7 +24,6 @@
 
 #include "gdb_assert.h"
 #include <signal.h>
-#include <stddef.h>
 #include <sys/types.h>
 #include <sys/ptrace.h>
 #include <sys/sysctl.h>
index 0c87e2d5e349b3d841f25bc3ef4133a400d4316b..44530bcf7e5de69449fcc5bc96306313708e5ded 100644 (file)
@@ -25,8 +25,6 @@
 #include <string.h>            /* For memcpy declaration */
 #include "gdb_assert.h"
 
-#include <stddef.h>
-
 /* 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
index 05d8feeb863e60e5a883d456d9c8c117f3885976..9e39e21ef6d6858d26c73f626a1af37cbe28b18c 100644 (file)
@@ -29,7 +29,6 @@
 #include "arch-utils.h"
 #include "gdb_vecs.h"
 
-#include <stddef.h>
 #include <string.h>
 #include <ctype.h>
 
index c6abc8b3f861f9f74c7f904be85495da060b74ba..d051bfbedc521a96a72d3965a2e42e13c1e55a52 100644 (file)
@@ -20,7 +20,6 @@
 #ifndef BUFFER_H
 #define BUFFER_H
 
-#include <stddef.h>
 #include <string.h>
 #include "ansidecl.h"
 
index d227b00847d91a8f3622a25d489d5f18cf0d0c71..f1fd3637fa279705b9b73a74437c0409edd213b1 100644 (file)
@@ -30,5 +30,6 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <stdarg.h>
+#include <stddef.h>
 
 #endif /* COMMON_DEFS_H */
index dff7b53c5b8bc1e378f6c929536ce568e3bbb24d..4dc432970b588f735ce9ad9a4f304346cf6c14e1 100644 (file)
@@ -21,7 +21,6 @@
 #define COMMON_UTILS_H
 
 #include "ansidecl.h"
-#include <stddef.h>
 
 /* If possible, define FUNCTION_NAME, a macro containing the name of
    the function being defined.  Since this macro may not always be
index 7bae2ff9494f1c669b669ab1d2eab1f603f34a8f..2a39eff4e535efbbb1c6804dce17ae988689f56f 100644 (file)
@@ -20,8 +20,6 @@
 #if !defined (GDB_VEC_H)
 #define GDB_VEC_H
 
-#include <stddef.h>
-
 #include <string.h>
 #include "gdb_assert.h"
 
index 00cb8e73b753b9358127752e4c326e4981ac048e..58098a9c883e66bd2b5de09f05f32815dc40e3b6 100644 (file)
@@ -46,8 +46,6 @@
    included, so it's ok to blank out gstdint.h.  */
 #define GCC_GENERATED_STDINT_H 1
 
-#include <stddef.h>
-
 #include <unistd.h>
 
 /* For gnulib's PATH_MAX.  */
index 6f0dbf0f12178ce130811f299a5ff0fba0ea2265..90d40ed761034d442df09f8b9008a4e2260db9f3 100644 (file)
@@ -1,3 +1,9 @@
+2014-08-07  Gary Benson  <gbenson@redhat.com>
+
+       * linux-x86-low.c: Do not include stddef.h.
+       * lynx-ppc-low.c: Likewise.
+       * tracepoint.c: Likewise.
+
 2014-08-07  Gary Benson  <gbenson@redhat.com>
 
        * server.h: Do not include stdarg.h.
index 850ed7cd4e3d7a04c1954c45947f388de66ccf27..7a8a47323869fc1fffb67415bf1a172ac44b0aa4 100644 (file)
@@ -18,7 +18,6 @@
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
 #include "server.h"
-#include <stddef.h>
 #include <signal.h>
 #include <limits.h>
 #include <inttypes.h>
index d6ead6f5e546d0172076d588033aff12aed59200..7884f2334cc28211fd17b975cab8d2e70ae62832 100644 (file)
@@ -19,7 +19,6 @@
 #include "lynx-low.h"
 
 #include <stdint.h>
-#include <stddef.h>
 #include <limits.h>
 #include <sys/ptrace.h>
 
index 31be953e56be1559d9393c7cfb2790cfe0eb667b..302b9c7f430407967a17bc280c15fcad87ae49cc 100644 (file)
@@ -26,7 +26,6 @@
 #include <fcntl.h>
 #include <unistd.h>
 #include <sys/time.h>
-#include <stddef.h>
 #include <inttypes.h>
 #include <stdint.h>
 
index acae6cbe88fab6fe013c7a7de7e5db07b735dc70..4bee1594977916321186e5e925d40f13d725d3a4 100644 (file)
@@ -23,7 +23,6 @@
 
 #include "gdb_assert.h"
 #include <signal.h>
-#include <stddef.h>
 #include <sys/types.h>
 #include <sys/ptrace.h>
 #include <machine/reg.h>
index a96d9d1fdb5fd569def07f6a0ba0634f238479ff..5faf535d4b456fdf58735e75659183c8fd4602e4 100644 (file)
@@ -25,7 +25,6 @@
 #include "btrace-common.h"
 #include "vec.h"
 #include "ptid.h"
-#include <stddef.h>
 #include <stdint.h>
 
 #if HAVE_LINUX_PERF_EVENT_H
index 079bd12e3db20be5802507b6a005a093d76c4261..aeb47aff12689e81ad9c0b9e3325f7c60f540de5 100644 (file)
@@ -23,7 +23,6 @@
 #include "regcache.h"
 
 #include "gdb_assert.h"
-#include <stddef.h>
 #include <sys/types.h>
 #include <sys/procfs.h>
 #include <sys/ptrace.h>
index 747b452e7a8468c8490a1f24b175d3e33fa3af7a..6631fc1156e2ae6914c164279c055305e38c0368 100644 (file)
@@ -20,8 +20,6 @@
 #ifndef PPCNBSD_TDEP_H
 #define PPCNBSD_TDEP_H
 
-#include <stddef.h>
-
 struct regset;
 
 /* Register offsets for NetBSD/powerpc.  */
index 1aa56d01b47f64bef50c610a5ed115f5cbf4e31a..9e3e85b78a170274e08ad72858f52d0578cb764a 100644 (file)
@@ -23,7 +23,6 @@
 #include "regcache.h"
 
 #include "gdb_assert.h"
-#include <stddef.h>
 #include <sys/types.h>
 #include <sys/ptrace.h>
 #include <sys/signal.h>
index 8c9ac3a09269af95cef21f4c706304f9dc697c0e..7d8d13e731bba399f5aca5f0e650cebcba481084 100644 (file)
@@ -20,8 +20,6 @@
 #ifndef PPCOBSD_TDEP_H
 #define PPCOBSD_TDEP_H
 
-#include <stddef.h>
-
 struct regset;
 struct regcache;
 
index e926f8e1460eefa5c4c03927a097982834fd9a7c..b778aa9f4d759ba66d5b1471386dfec6bb43c6a4 100644 (file)
@@ -24,8 +24,6 @@
 #include "cli/cli-utils.h"
 #include <string.h>
 
-#include <stddef.h>
-
 /* 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