mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-23 18:14:13 +08:00
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:
parent
8980bdf628
commit
8ebb3f5606
@ -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.
|
||||
|
@ -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>
|
||||
|
@ -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
|
||||
|
@ -29,7 +29,6 @@
|
||||
#include "arch-utils.h"
|
||||
#include "gdb_vecs.h"
|
||||
|
||||
#include <stddef.h>
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
|
||||
|
@ -20,7 +20,6 @@
|
||||
#ifndef BUFFER_H
|
||||
#define BUFFER_H
|
||||
|
||||
#include <stddef.h>
|
||||
#include <string.h>
|
||||
#include "ansidecl.h"
|
||||
|
||||
|
@ -30,5 +30,6 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdarg.h>
|
||||
#include <stddef.h>
|
||||
|
||||
#endif /* COMMON_DEFS_H */
|
||||
|
@ -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
|
||||
|
@ -20,8 +20,6 @@
|
||||
#if !defined (GDB_VEC_H)
|
||||
#define GDB_VEC_H
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
#include <string.h>
|
||||
#include "gdb_assert.h"
|
||||
|
||||
|
@ -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. */
|
||||
|
@ -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.
|
||||
|
@ -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>
|
||||
|
@ -19,7 +19,6 @@
|
||||
#include "lynx-low.h"
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
#include <limits.h>
|
||||
#include <sys/ptrace.h>
|
||||
|
||||
|
@ -26,7 +26,6 @@
|
||||
#include <fcntl.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/time.h>
|
||||
#include <stddef.h>
|
||||
#include <inttypes.h>
|
||||
#include <stdint.h>
|
||||
|
||||
|
@ -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>
|
||||
|
@ -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
|
||||
|
@ -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>
|
||||
|
@ -20,8 +20,6 @@
|
||||
#ifndef PPCNBSD_TDEP_H
|
||||
#define PPCNBSD_TDEP_H
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
struct regset;
|
||||
|
||||
/* Register offsets for NetBSD/powerpc. */
|
||||
|
@ -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>
|
||||
|
@ -20,8 +20,6 @@
|
||||
#ifndef PPCOBSD_TDEP_H
|
||||
#define PPCOBSD_TDEP_H
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
struct regset;
|
||||
struct regcache;
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user