aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver
diff options
context:
space:
mode:
authorGary Benson <gbenson@redhat.com>2014-07-25 17:35:30 +0100
committerGary Benson <gbenson@redhat.com>2014-08-07 09:06:38 +0100
commitd7096f716534f280fba72a5b2ec3712ad1aea42e (patch)
tree788000437b39b0e011270364687cb10807f346af /gdb/gdbserver
parentd02f550d39f0229f7c190e6509b3b466f1a60732 (diff)
downloadgdb-d7096f716534f280fba72a5b2ec3712ad1aea42e.zip
gdb-d7096f716534f280fba72a5b2ec3712ad1aea42e.tar.gz
gdb-d7096f716534f280fba72a5b2ec3712ad1aea42e.tar.bz2
Move stdlib.h to common-defs.h
This commit moves the inclusion of stdlib.h to common-defs.h and removes all other inclusions. gdb/ 2014-08-07 Gary Benson <gbenson@redhat.com> * common/common-defs.h: Include stdlib.h. * defs.h: Do not include stdlib.h. * addrmap.c: Likewise. * bcache.c: Likewise. * common/buffer.c: Likewise. * common/common-utils.c: Likewise. * cp-name-parser.y: Likewise. * go32-nat.c: Likewise. * mn10300-linux-tdep.c: Likewise. * nat/linux-osdata.c: Likewise. * tui/tui.c: Likewise. * windows-nat.c: Likewise. gdb/gdbserver/ 2014-08-07 Gary Benson <gbenson@redhat.com> * server.h: Do not include stdlib.h. * inferiors.c: Likewise. * linux-low.c: Likewise. * regcache.c: Likewise. * spu-low.c: Likewise. * tracepoint.c: Likewise. * utils.c: Likewise.
Diffstat (limited to 'gdb/gdbserver')
-rw-r--r--gdb/gdbserver/ChangeLog10
-rw-r--r--gdb/gdbserver/inferiors.c1
-rw-r--r--gdb/gdbserver/linux-low.c1
-rw-r--r--gdb/gdbserver/regcache.c2
-rw-r--r--gdb/gdbserver/server.h1
-rw-r--r--gdb/gdbserver/spu-low.c1
-rw-r--r--gdb/gdbserver/tracepoint.c1
-rw-r--r--gdb/gdbserver/utils.c1
8 files changed, 10 insertions, 8 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index abdda14..c5a6455 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,5 +1,15 @@
2014-08-07 Gary Benson <gbenson@redhat.com>
+ * server.h: Do not include stdlib.h.
+ * inferiors.c: Likewise.
+ * linux-low.c: Likewise.
+ * regcache.c: Likewise.
+ * spu-low.c: Likewise.
+ * tracepoint.c: Likewise.
+ * utils.c: Likewise.
+
+2014-08-07 Gary Benson <gbenson@redhat.com>
+
* server.h: Do not include stdio.h.
* linux-low.c: Likewise.
* remote-utils.c: Likewise.
diff --git a/gdb/gdbserver/inferiors.c b/gdb/gdbserver/inferiors.c
index 48d7700..608a997 100644
--- a/gdb/gdbserver/inferiors.c
+++ b/gdb/gdbserver/inferiors.c
@@ -19,7 +19,6 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "server.h"
-#include <stdlib.h>
#include "gdbthread.h"
#include "dll.h"
diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c
index b309289..d758330 100644
--- a/gdb/gdbserver/linux-low.c
+++ b/gdb/gdbserver/linux-low.c
@@ -31,7 +31,6 @@
#include <sys/ioctl.h>
#include <fcntl.h>
#include <string.h>
-#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <sys/syscall.h>
diff --git a/gdb/gdbserver/regcache.c b/gdb/gdbserver/regcache.c
index db99f8c..86af39c 100644
--- a/gdb/gdbserver/regcache.c
+++ b/gdb/gdbserver/regcache.c
@@ -21,8 +21,6 @@
#include "gdbthread.h"
#include "tdesc.h"
#include "rsp-low.h"
-
-#include <stdlib.h>
#include <string.h>
#ifndef IN_PROCESS_AGENT
diff --git a/gdb/gdbserver/server.h b/gdb/gdbserver/server.h
index 743a368..a15ba36 100644
--- a/gdb/gdbserver/server.h
+++ b/gdb/gdbserver/server.h
@@ -30,7 +30,6 @@
#include "version.h"
#include <stdarg.h>
-#include <stdlib.h>
#ifdef HAVE_ERRNO_H
#include <errno.h>
#endif
diff --git a/gdb/gdbserver/spu-low.c b/gdb/gdbserver/spu-low.c
index 67ff147..ba2780b 100644
--- a/gdb/gdbserver/spu-low.c
+++ b/gdb/gdbserver/spu-low.c
@@ -24,7 +24,6 @@
#include <sys/ptrace.h>
#include <fcntl.h>
#include <string.h>
-#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <sys/syscall.h>
diff --git a/gdb/gdbserver/tracepoint.c b/gdb/gdbserver/tracepoint.c
index 7c4b291..31be953 100644
--- a/gdb/gdbserver/tracepoint.c
+++ b/gdb/gdbserver/tracepoint.c
@@ -7110,7 +7110,6 @@ gdb_ust_init (void)
#endif /* HAVE_UST */
#include <sys/syscall.h>
-#include <stdlib.h>
static void
gdb_agent_remove_socket (void)
diff --git a/gdb/gdbserver/utils.c b/gdb/gdbserver/utils.c
index b87bcc9..a0febb1 100644
--- a/gdb/gdbserver/utils.c
+++ b/gdb/gdbserver/utils.c
@@ -18,7 +18,6 @@
#include "server.h"
#include <string.h>
-#include <stdlib.h>
#if HAVE_ERRNO_H
#include <errno.h>
#endif