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  <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.
This commit is contained in:
Gary Benson 2014-07-28 13:15:41 +01:00
parent 8980bdf628
commit 8ebb3f5606
20 changed files with 25 additions and 23 deletions

View 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.

View 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>

View 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

View File

@ -29,7 +29,6 @@
#include "arch-utils.h"
#include "gdb_vecs.h"
#include <stddef.h>
#include <string.h>
#include <ctype.h>

View File

@ -20,7 +20,6 @@
#ifndef BUFFER_H
#define BUFFER_H
#include <stddef.h>
#include <string.h>
#include "ansidecl.h"

View File

@ -30,5 +30,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <stddef.h>
#endif /* COMMON_DEFS_H */

View 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

View File

@ -20,8 +20,6 @@
#if !defined (GDB_VEC_H)
#define GDB_VEC_H
#include <stddef.h>
#include <string.h>
#include "gdb_assert.h"

View 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. */

View 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.

View 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>

View File

@ -19,7 +19,6 @@
#include "lynx-low.h"
#include <stdint.h>
#include <stddef.h>
#include <limits.h>
#include <sys/ptrace.h>

View File

@ -26,7 +26,6 @@
#include <fcntl.h>
#include <unistd.h>
#include <sys/time.h>
#include <stddef.h>
#include <inttypes.h>
#include <stdint.h>

View 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>

View 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

View 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>

View File

@ -20,8 +20,6 @@
#ifndef PPCNBSD_TDEP_H
#define PPCNBSD_TDEP_H
#include <stddef.h>
struct regset;
/* Register offsets for NetBSD/powerpc. */

View 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>

View File

@ -20,8 +20,6 @@
#ifndef PPCOBSD_TDEP_H
#define PPCOBSD_TDEP_H
#include <stddef.h>
struct regset;
struct regcache;

View 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