aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2008-07-28 18:28:56 +0000
committerDoug Evans <dje@google.com>2008-07-28 18:28:56 +0000
commit2fe5e3ffed21b9b205baf30b976e504b10651229 (patch)
tree9016af1d296e3ab04dba23c7db9c950536aceb25 /gdb/gdbserver
parent9f03412ac677d4f228026de9174c23a4bc47dd74 (diff)
downloadgdb-2fe5e3ffed21b9b205baf30b976e504b10651229.zip
gdb-2fe5e3ffed21b9b205baf30b976e504b10651229.tar.gz
gdb-2fe5e3ffed21b9b205baf30b976e504b10651229.tar.bz2
* linux-low.c (sys/dir.h, sys/user.h): Remove includes.
(linux_write_memory): Remove declaration of errno.
Diffstat (limited to 'gdb/gdbserver')
-rw-r--r--gdb/gdbserver/ChangeLog5
-rw-r--r--gdb/gdbserver/linux-low.c3
2 files changed, 5 insertions, 3 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index 77993c4..8dc4716 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,3 +1,8 @@
+2008-07-28 Doug Kwan <dougkwan@google.com>
+
+ * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
+ (linux_write_memory): Remove declaration of errno.
+
2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
* linux-low.c (handle_extended_wait): Do not use "status"
diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c
index 956b45c..fe4cd97 100644
--- a/gdb/gdbserver/linux-low.c
+++ b/gdb/gdbserver/linux-low.c
@@ -23,9 +23,7 @@
#include <sys/wait.h>
#include <stdio.h>
#include <sys/param.h>
-#include <sys/dir.h>
#include <sys/ptrace.h>
-#include <sys/user.h>
#include <signal.h>
#include <sys/ioctl.h>
#include <fcntl.h>
@@ -1704,7 +1702,6 @@ linux_write_memory (CORE_ADDR memaddr, const unsigned char *myaddr, int len)
= (((memaddr + len) - addr) + sizeof (PTRACE_XFER_TYPE) - 1) / sizeof (PTRACE_XFER_TYPE);
/* Allocate buffer of that many longwords. */
register PTRACE_XFER_TYPE *buffer = (PTRACE_XFER_TYPE *) alloca (count * sizeof (PTRACE_XFER_TYPE));
- extern int errno;
if (debug_threads)
{