Move stdio.h to common-defs.h
This commit moves the inclusion of stdio.h to common-defs.h and removes all other inclusions. gdb/ 2014-08-07 Gary Benson <gbenson@redhat.com> * common/common-defs.h: Include stdio.h. * defs.h: Do not include stdio.h. * ada-lang.c: Likewise. * common/buffer.c: Likewise. * common/common-utils.c: Likewise. * cp-name-parser.y: Likewise. * gnu-nat.c: Likewise. * go32-nat.c: Likewise. * i386gnu-nat.c: Likewise. * proc-api.c: Likewise. * proc-events.c: Likewise. * proc-flags.c: Likewise. * proc-why.c: Likewise. * python/python-internal.h: Likewise. * target-memory.c: Likewise. * tui/tui-io.c: Likewise. * tui/tui.c: Likewise. gdb/gdbserver/ 2014-08-07 Gary Benson <gbenson@redhat.com> * server.h: Do not include stdio.h. * linux-low.c: Likewise. * remote-utils.c: Likewise. * spu-low.c: Likewise. * utils.c: Likewise. * wincecompat.c: Likewise.
This commit is contained in:
parent
7f59d2acb6
commit
d02f550d39
25 changed files with 31 additions and 23 deletions
|
@ -1,3 +1,23 @@
|
|||
2014-08-07 Gary Benson <gbenson@redhat.com>
|
||||
|
||||
* common/common-defs.h: Include stdio.h.
|
||||
* defs.h: Do not include stdio.h.
|
||||
* ada-lang.c: Likewise.
|
||||
* common/buffer.c: Likewise.
|
||||
* common/common-utils.c: Likewise.
|
||||
* cp-name-parser.y: Likewise.
|
||||
* gnu-nat.c: Likewise.
|
||||
* go32-nat.c: Likewise.
|
||||
* i386gnu-nat.c: Likewise.
|
||||
* proc-api.c: Likewise.
|
||||
* proc-events.c: Likewise.
|
||||
* proc-flags.c: Likewise.
|
||||
* proc-why.c: Likewise.
|
||||
* python/python-internal.h: Likewise.
|
||||
* target-memory.c: Likewise.
|
||||
* tui/tui-io.c: Likewise.
|
||||
* tui/tui.c: Likewise.
|
||||
|
||||
2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
|
||||
|
||||
* solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
|
||||
|
|
|
@ -19,7 +19,6 @@
|
|||
|
||||
|
||||
#include "defs.h"
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
#include <stdarg.h>
|
||||
|
|
|
@ -29,7 +29,6 @@
|
|||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include <stdint.h>
|
||||
|
||||
void
|
||||
|
|
|
@ -27,4 +27,6 @@
|
|||
#include "build-gnulib/config.h"
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#endif /* COMMON_DEFS_H */
|
||||
|
|
|
@ -27,7 +27,6 @@
|
|||
#include <string.h>
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
||||
/* The xmalloc() (libiberty.h) family of memory management routines.
|
||||
|
||||
|
|
|
@ -31,7 +31,6 @@
|
|||
|
||||
#include "defs.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <string.h>
|
||||
|
|
|
@ -28,7 +28,6 @@
|
|||
#include "common-defs.h"
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <stdio.h>
|
||||
#include <errno.h> /* System call error return status. */
|
||||
#include <limits.h>
|
||||
#include <stdint.h>
|
||||
|
|
|
@ -1,3 +1,12 @@
|
|||
2014-08-07 Gary Benson <gbenson@redhat.com>
|
||||
|
||||
* server.h: Do not include stdio.h.
|
||||
* linux-low.c: Likewise.
|
||||
* remote-utils.c: Likewise.
|
||||
* spu-low.c: Likewise.
|
||||
* utils.c: Likewise.
|
||||
* wincecompat.c: Likewise.
|
||||
|
||||
2014-08-06 Gary Benson <gbenson@redhat.com>
|
||||
|
||||
* regcache.c (init_register_cache): Move conditionals inside if.
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
#include "nat/linux-nat.h"
|
||||
#include "nat/linux-waitpid.h"
|
||||
#include "gdb_wait.h"
|
||||
#include <stdio.h>
|
||||
#include <sys/ptrace.h>
|
||||
#include "nat/linux-ptrace.h"
|
||||
#include "nat/linux-procfs.h"
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
#include "dll.h"
|
||||
#include "rsp-low.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#if HAVE_SYS_IOCTL_H
|
||||
#include <sys/ioctl.h>
|
||||
|
|
|
@ -30,7 +30,6 @@
|
|||
#include "version.h"
|
||||
|
||||
#include <stdarg.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#ifdef HAVE_ERRNO_H
|
||||
#include <errno.h>
|
||||
|
|
|
@ -21,7 +21,6 @@
|
|||
#include "server.h"
|
||||
|
||||
#include "gdb_wait.h"
|
||||
#include <stdio.h>
|
||||
#include <sys/ptrace.h>
|
||||
#include <fcntl.h>
|
||||
#include <string.h>
|
||||
|
|
|
@ -17,7 +17,6 @@
|
|||
along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||
|
||||
#include "server.h"
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#if HAVE_ERRNO_H
|
||||
|
|
|
@ -18,7 +18,6 @@
|
|||
|
||||
#include "server.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <windows.h>
|
||||
|
||||
void
|
||||
|
|
|
@ -27,7 +27,6 @@
|
|||
#include <limits.h>
|
||||
#include <setjmp.h>
|
||||
#include <signal.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <sys/ptrace.h>
|
||||
|
||||
|
|
|
@ -105,7 +105,6 @@
|
|||
#include "cli/cli-utils.h"
|
||||
#include "inf-child.h"
|
||||
|
||||
#include <stdio.h> /* might be required for __DJGPP_MINOR__ */
|
||||
#include <stdlib.h>
|
||||
#include <ctype.h>
|
||||
#include <errno.h>
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
|
||||
#include "gdb_assert.h"
|
||||
#include <errno.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <mach.h>
|
||||
|
|
|
@ -34,7 +34,6 @@
|
|||
#define _STRUCTURED_PROC 1
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/procfs.h>
|
||||
#ifdef HAVE_SYS_PROC_H
|
||||
|
|
|
@ -34,7 +34,6 @@
|
|||
#define _STRUCTURED_PROC 1
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/procfs.h>
|
||||
#ifdef HAVE_SYS_SYSCALL_H
|
||||
|
|
|
@ -31,7 +31,6 @@
|
|||
#define _STRUCTURED_PROC 1
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/procfs.h>
|
||||
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
#define _STRUCTURED_PROC 1
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/procfs.h>
|
||||
|
||||
|
|
|
@ -62,8 +62,6 @@
|
|||
#define CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
/* Python 2.4 doesn't include stdint.h soon enough to get {u,}intptr_t
|
||||
needed by pyport.h. */
|
||||
#include <stdint.h>
|
||||
|
|
|
@ -25,7 +25,6 @@
|
|||
|
||||
#include "gdb_assert.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <sys/time.h>
|
||||
|
||||
static int
|
||||
|
|
|
@ -36,7 +36,6 @@
|
|||
#include "cli-out.h"
|
||||
#include <fcntl.h>
|
||||
#include <signal.h>
|
||||
#include <stdio.h>
|
||||
#include "filestuff.h"
|
||||
|
||||
#include "gdb_curses.h"
|
||||
|
|
|
@ -38,7 +38,6 @@
|
|||
#include "symtab.h"
|
||||
#include "source.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <ctype.h>
|
||||
#include <signal.h>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue