diff options
author | Gary Benson <gbenson@redhat.com> | 2014-07-25 16:29:40 +0100 |
---|---|---|
committer | Gary Benson <gbenson@redhat.com> | 2014-08-07 09:06:37 +0100 |
commit | d02f550d39f0229f7c190e6509b3b466f1a60732 (patch) | |
tree | 7da74f2311bae86fd3383aa460d8a955c1986bee /gdb | |
parent | 7f59d2acb6971695c36a73ce4a061cdc4b892f29 (diff) | |
download | binutils-gdb-d02f550d39f0229f7c190e6509b3b466f1a60732.tar.gz |
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.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 20 | ||||
-rw-r--r-- | gdb/ada-lang.c | 1 | ||||
-rw-r--r-- | gdb/common/buffer.c | 1 | ||||
-rw-r--r-- | gdb/common/common-defs.h | 2 | ||||
-rw-r--r-- | gdb/common/common-utils.c | 1 | ||||
-rw-r--r-- | gdb/cp-name-parser.y | 1 | ||||
-rw-r--r-- | gdb/defs.h | 1 | ||||
-rw-r--r-- | gdb/gdbserver/ChangeLog | 9 | ||||
-rw-r--r-- | gdb/gdbserver/linux-low.c | 1 | ||||
-rw-r--r-- | gdb/gdbserver/remote-utils.c | 1 | ||||
-rw-r--r-- | gdb/gdbserver/server.h | 1 | ||||
-rw-r--r-- | gdb/gdbserver/spu-low.c | 1 | ||||
-rw-r--r-- | gdb/gdbserver/utils.c | 1 | ||||
-rw-r--r-- | gdb/gdbserver/wincecompat.c | 1 | ||||
-rw-r--r-- | gdb/gnu-nat.c | 1 | ||||
-rw-r--r-- | gdb/go32-nat.c | 1 | ||||
-rw-r--r-- | gdb/i386gnu-nat.c | 1 | ||||
-rw-r--r-- | gdb/proc-api.c | 1 | ||||
-rw-r--r-- | gdb/proc-events.c | 1 | ||||
-rw-r--r-- | gdb/proc-flags.c | 1 | ||||
-rw-r--r-- | gdb/proc-why.c | 1 | ||||
-rw-r--r-- | gdb/python/python-internal.h | 2 | ||||
-rw-r--r-- | gdb/target-memory.c | 1 | ||||
-rw-r--r-- | gdb/tui/tui-io.c | 1 | ||||
-rw-r--r-- | gdb/tui/tui.c | 1 |
25 files changed, 31 insertions, 23 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c667f3ed5fd..a6a46d96a47 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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. diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c index 6956909badf..bf39f6b119a 100644 --- a/gdb/ada-lang.c +++ b/gdb/ada-lang.c @@ -19,7 +19,6 @@ #include "defs.h" -#include <stdio.h> #include <string.h> #include <ctype.h> #include <stdarg.h> diff --git a/gdb/common/buffer.c b/gdb/common/buffer.c index 4d9edb88317..a50c8905795 100644 --- a/gdb/common/buffer.c +++ b/gdb/common/buffer.c @@ -29,7 +29,6 @@ #include <stdlib.h> #include <string.h> -#include <stdio.h> #include <stdint.h> void diff --git a/gdb/common/common-defs.h b/gdb/common/common-defs.h index 9e397d91b19..0fc7af52965 100644 --- a/gdb/common/common-defs.h +++ b/gdb/common/common-defs.h @@ -27,4 +27,6 @@ #include "build-gnulib/config.h" #endif +#include <stdio.h> + #endif /* COMMON_DEFS_H */ diff --git a/gdb/common/common-utils.c b/gdb/common/common-utils.c index 29fe2c516c1..41ef2895d1f 100644 --- a/gdb/common/common-utils.c +++ b/gdb/common/common-utils.c @@ -27,7 +27,6 @@ #include <string.h> #include <stdlib.h> -#include <stdio.h> /* The xmalloc() (libiberty.h) family of memory management routines. diff --git a/gdb/cp-name-parser.y b/gdb/cp-name-parser.y index 7d9d925d5f5..6a9d13d448a 100644 --- a/gdb/cp-name-parser.y +++ b/gdb/cp-name-parser.y @@ -31,7 +31,6 @@ #include "defs.h" -#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> diff --git a/gdb/defs.h b/gdb/defs.h index 422c4e8522e..49e45b80586 100644 --- a/gdb/defs.h +++ b/gdb/defs.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> diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 450862182f3..abdda147274 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -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. diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c index e65e2760371..b3092890afa 100644 --- a/gdb/gdbserver/linux-low.c +++ b/gdb/gdbserver/linux-low.c @@ -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" diff --git a/gdb/gdbserver/remote-utils.c b/gdb/gdbserver/remote-utils.c index 4fcafa0b2b9..96d6038a0f6 100644 --- a/gdb/gdbserver/remote-utils.c +++ b/gdb/gdbserver/remote-utils.c @@ -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> diff --git a/gdb/gdbserver/server.h b/gdb/gdbserver/server.h index ef66a32fd40..743a368de21 100644 --- a/gdb/gdbserver/server.h +++ b/gdb/gdbserver/server.h @@ -30,7 +30,6 @@ #include "version.h" #include <stdarg.h> -#include <stdio.h> #include <stdlib.h> #ifdef HAVE_ERRNO_H #include <errno.h> diff --git a/gdb/gdbserver/spu-low.c b/gdb/gdbserver/spu-low.c index 9bb0c4050d1..67ff1474470 100644 --- a/gdb/gdbserver/spu-low.c +++ b/gdb/gdbserver/spu-low.c @@ -21,7 +21,6 @@ #include "server.h" #include "gdb_wait.h" -#include <stdio.h> #include <sys/ptrace.h> #include <fcntl.h> #include <string.h> diff --git a/gdb/gdbserver/utils.c b/gdb/gdbserver/utils.c index 2d0b3319f6a..b87bcc90bac 100644 --- a/gdb/gdbserver/utils.c +++ b/gdb/gdbserver/utils.c @@ -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 diff --git a/gdb/gdbserver/wincecompat.c b/gdb/gdbserver/wincecompat.c index 68f6aa965a9..7d45b3079e6 100644 --- a/gdb/gdbserver/wincecompat.c +++ b/gdb/gdbserver/wincecompat.c @@ -18,7 +18,6 @@ #include "server.h" -#include <stdio.h> #include <windows.h> void diff --git a/gdb/gnu-nat.c b/gdb/gnu-nat.c index 176f4a1fcc3..a2de2f107cb 100644 --- a/gdb/gnu-nat.c +++ b/gdb/gnu-nat.c @@ -27,7 +27,6 @@ #include <limits.h> #include <setjmp.h> #include <signal.h> -#include <stdio.h> #include <string.h> #include <sys/ptrace.h> diff --git a/gdb/go32-nat.c b/gdb/go32-nat.c index b2570e848ab..42133d6af46 100644 --- a/gdb/go32-nat.c +++ b/gdb/go32-nat.c @@ -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> diff --git a/gdb/i386gnu-nat.c b/gdb/i386gnu-nat.c index d0a610b0588..23a70b37c9d 100644 --- a/gdb/i386gnu-nat.c +++ b/gdb/i386gnu-nat.c @@ -24,7 +24,6 @@ #include "gdb_assert.h" #include <errno.h> -#include <stdio.h> #include <string.h> #include <mach.h> diff --git a/gdb/proc-api.c b/gdb/proc-api.c index 2ae7b84b2e0..c4aecc4421d 100644 --- a/gdb/proc-api.c +++ b/gdb/proc-api.c @@ -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 diff --git a/gdb/proc-events.c b/gdb/proc-events.c index 68f004f32d1..bc494c352a6 100644 --- a/gdb/proc-events.c +++ b/gdb/proc-events.c @@ -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 diff --git a/gdb/proc-flags.c b/gdb/proc-flags.c index 7c37e357cc3..31af26d7bec 100644 --- a/gdb/proc-flags.c +++ b/gdb/proc-flags.c @@ -31,7 +31,6 @@ #define _STRUCTURED_PROC 1 #endif -#include <stdio.h> #include <sys/types.h> #include <sys/procfs.h> diff --git a/gdb/proc-why.c b/gdb/proc-why.c index 72c28e1c276..c053c9ecc0f 100644 --- a/gdb/proc-why.c +++ b/gdb/proc-why.c @@ -24,7 +24,6 @@ #define _STRUCTURED_PROC 1 #endif -#include <stdio.h> #include <sys/types.h> #include <sys/procfs.h> diff --git a/gdb/python/python-internal.h b/gdb/python/python-internal.h index b7298d93628..6e7e60000a0 100644 --- a/gdb/python/python-internal.h +++ b/gdb/python/python-internal.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> diff --git a/gdb/target-memory.c b/gdb/target-memory.c index 1c6cd4005f3..583d337de36 100644 --- a/gdb/target-memory.c +++ b/gdb/target-memory.c @@ -25,7 +25,6 @@ #include "gdb_assert.h" -#include <stdio.h> #include <sys/time.h> static int diff --git a/gdb/tui/tui-io.c b/gdb/tui/tui-io.c index 75eb4b85071..a890678d317 100644 --- a/gdb/tui/tui-io.c +++ b/gdb/tui/tui-io.c @@ -36,7 +36,6 @@ #include "cli-out.h" #include <fcntl.h> #include <signal.h> -#include <stdio.h> #include "filestuff.h" #include "gdb_curses.h" diff --git a/gdb/tui/tui.c b/gdb/tui/tui.c index c30b76cfc23..413ec204fa7 100644 --- a/gdb/tui/tui.c +++ b/gdb/tui/tui.c @@ -38,7 +38,6 @@ #include "symtab.h" #include "source.h" -#include <stdio.h> #include <stdlib.h> #include <ctype.h> #include <signal.h> |