aboutsummaryrefslogtreecommitdiff
path: root/gdb/common
diff options
context:
space:
mode:
authorGary Benson <gbenson@redhat.com>2014-07-25 16:29:40 +0100
committerGary Benson <gbenson@redhat.com>2014-08-07 09:06:37 +0100
commitd02f550d39f0229f7c190e6509b3b466f1a60732 (patch)
tree7da74f2311bae86fd3383aa460d8a955c1986bee /gdb/common
parent7f59d2acb6971695c36a73ce4a061cdc4b892f29 (diff)
downloadgdb-d02f550d39f0229f7c190e6509b3b466f1a60732.zip
gdb-d02f550d39f0229f7c190e6509b3b466f1a60732.tar.gz
gdb-d02f550d39f0229f7c190e6509b3b466f1a60732.tar.bz2
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/common')
-rw-r--r--gdb/common/buffer.c1
-rw-r--r--gdb/common/common-defs.h2
-rw-r--r--gdb/common/common-utils.c1
3 files changed, 2 insertions, 2 deletions
diff --git a/gdb/common/buffer.c b/gdb/common/buffer.c
index 4d9edb8..a50c890 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 9e397d9..0fc7af5 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 29fe2c5..41ef289 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.