From 2fe5e3ffed21b9b205baf30b976e504b10651229 Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Mon, 28 Jul 2008 18:28:56 +0000 Subject: [PATCH] * linux-low.c (sys/dir.h, sys/user.h): Remove includes. (linux_write_memory): Remove declaration of errno. --- gdb/gdbserver/ChangeLog | 5 +++++ gdb/gdbserver/linux-low.c | 3 --- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 77993c4fa98..8dc4716162b 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,8 @@ +2008-07-28 Doug Kwan + + * linux-low.c (sys/dir.h, sys/user.h): Remove includes. + (linux_write_memory): Remove declaration of errno. + 2008-07-12 Ulrich Weigand * 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 956b45c3c21..fe4cd97cc8e 100644 --- a/gdb/gdbserver/linux-low.c +++ b/gdb/gdbserver/linux-low.c @@ -23,9 +23,7 @@ #include #include #include -#include #include -#include #include #include #include @@ -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) { -- 2.30.2