aboutsummaryrefslogtreecommitdiff
path: root/gdb/common
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/common')
-rw-r--r--gdb/common/agent.c2
-rw-r--r--gdb/common/buffer.c2
-rw-r--r--gdb/common/buffer.h2
-rw-r--r--gdb/common/common-defs.h1
-rw-r--r--gdb/common/common-utils.c2
-rw-r--r--gdb/common/filestuff.c3
-rw-r--r--gdb/common/format.c2
-rw-r--r--gdb/common/print-utils.c2
-rw-r--r--gdb/common/rsp-low.c2
-rw-r--r--gdb/common/signals.c1
-rw-r--r--gdb/common/vec.h2
-rw-r--r--gdb/common/xml-utils.c2
12 files changed, 1 insertions, 22 deletions
diff --git a/gdb/common/agent.c b/gdb/common/agent.c
index 54f861a..3f868ba 100644
--- a/gdb/common/agent.c
+++ b/gdb/common/agent.c
@@ -25,8 +25,6 @@
#include "infrun.h"
#include "objfiles.h"
#endif
-
-#include <string.h>
#include <unistd.h>
#include "agent.h"
#include "filestuff.h"
diff --git a/gdb/common/buffer.c b/gdb/common/buffer.c
index c291b32..4a213b33 100644
--- a/gdb/common/buffer.c
+++ b/gdb/common/buffer.c
@@ -26,8 +26,6 @@
#include "xml-utils.h"
#include "buffer.h"
#include "inttypes.h"
-
-#include <string.h>
#include <stdint.h>
void
diff --git a/gdb/common/buffer.h b/gdb/common/buffer.h
index 98da0d2..1c748dd 100644
--- a/gdb/common/buffer.h
+++ b/gdb/common/buffer.h
@@ -20,8 +20,6 @@
#ifndef BUFFER_H
#define BUFFER_H
-#include <string.h>
-
struct buffer
{
char *buffer;
diff --git a/gdb/common/common-defs.h b/gdb/common/common-defs.h
index 75a587a..7c67846 100644
--- a/gdb/common/common-defs.h
+++ b/gdb/common/common-defs.h
@@ -31,6 +31,7 @@
#include <stdlib.h>
#include <stdarg.h>
#include <stddef.h>
+#include <string.h>
#include "ansidecl.h"
#include "libiberty.h"
#include "pathmax.h"
diff --git a/gdb/common/common-utils.c b/gdb/common/common-utils.c
index 3fe9bf9..a905d1d 100644
--- a/gdb/common/common-utils.c
+++ b/gdb/common/common-utils.c
@@ -23,8 +23,6 @@
#include "defs.h"
#endif
-#include <string.h>
-
/* The xmalloc() (libiberty.h) family of memory management routines.
These are like the ISO-C malloc() family except that they implement
diff --git a/gdb/common/filestuff.c b/gdb/common/filestuff.c
index 4544926..a31ecd7 100644
--- a/gdb/common/filestuff.c
+++ b/gdb/common/filestuff.c
@@ -20,12 +20,9 @@
#include "server.h"
#else
#include "defs.h"
-#include <string.h>
#endif
#include "filestuff.h"
#include "gdb_vecs.h"
-
-#include <string.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/types.h>
diff --git a/gdb/common/format.c b/gdb/common/format.c
index bddfbc6..247aaff 100644
--- a/gdb/common/format.c
+++ b/gdb/common/format.c
@@ -23,8 +23,6 @@
#include "defs.h"
#endif
-#include <string.h>
-
#include "format.h"
struct format_piece *
diff --git a/gdb/common/print-utils.c b/gdb/common/print-utils.c
index 0e612a3..f5bef0a 100644
--- a/gdb/common/print-utils.c
+++ b/gdb/common/print-utils.c
@@ -24,8 +24,6 @@
#endif
#include "print-utils.h"
-
-#include <string.h>
#include <stdint.h>
/* Temporary storage using circular buffer. */
diff --git a/gdb/common/rsp-low.c b/gdb/common/rsp-low.c
index b777716..0263005 100644
--- a/gdb/common/rsp-low.c
+++ b/gdb/common/rsp-low.c
@@ -23,8 +23,6 @@
#include "defs.h"
#endif
-#include <string.h>
-
#include "rsp-low.h"
/* See rsp-low.h. */
diff --git a/gdb/common/signals.c b/gdb/common/signals.c
index d9cacee..13d1e2c 100644
--- a/gdb/common/signals.c
+++ b/gdb/common/signals.c
@@ -21,7 +21,6 @@
#include "server.h"
#else
#include "defs.h"
-#include <string.h>
#endif
#ifdef HAVE_SIGNAL_H
diff --git a/gdb/common/vec.h b/gdb/common/vec.h
index 82d4b0d..c406c9c 100644
--- a/gdb/common/vec.h
+++ b/gdb/common/vec.h
@@ -20,8 +20,6 @@
#if !defined (GDB_VEC_H)
#define GDB_VEC_H
-#include <string.h>
-
/* The macros here implement a set of templated vector types and
associated interfaces. These templates are implemented with
macros, as we're not in C++ land. The interface functions are
diff --git a/gdb/common/xml-utils.c b/gdb/common/xml-utils.c
index c6ceb69..0f81390 100644
--- a/gdb/common/xml-utils.c
+++ b/gdb/common/xml-utils.c
@@ -25,8 +25,6 @@
#include "xml-utils.h"
-#include <string.h>
-
/* Return a malloc allocated string with special characters from TEXT
replaced by entity references. */