aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2009-12-16 21:23:34 +0000
committerDoug Evans <dje@google.com>2009-12-16 21:23:34 +0000
commit1de1badb7ac2d659ddc55f77e298de104b61a1e4 (patch)
tree980f2a8435a4eea2e65d05f2f4190fa3d23404dd
parent2eb952a4d9091415769c814787db714334171b90 (diff)
downloadgdb-1de1badb7ac2d659ddc55f77e298de104b61a1e4.zip
gdb-1de1badb7ac2d659ddc55f77e298de104b61a1e4.tar.gz
gdb-1de1badb7ac2d659ddc55f77e298de104b61a1e4.tar.bz2
* linux-low.c (linux_read_memory): Fix argument to read.
-rw-r--r--gdb/gdbserver/ChangeLog4
-rw-r--r--gdb/gdbserver/linux-low.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index 81707a7..5a5c860 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,3 +1,7 @@
+2009-12-16 Doug Evans <dje@google.com>
+
+ * linux-low.c (linux_read_memory): Fix argument to read.
+
2009-11-26 Pedro Alves <pedro@codesourcery.com>
* win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c
index 45dd9f7..2fc43f0 100644
--- a/gdb/gdbserver/linux-low.c
+++ b/gdb/gdbserver/linux-low.c
@@ -2357,7 +2357,7 @@ linux_read_memory (CORE_ADDR memaddr, unsigned char *myaddr, int len)
#ifdef HAVE_PREAD64
if (pread64 (fd, myaddr, len, memaddr) != len)
#else
- if (lseek (fd, memaddr, SEEK_SET) == -1 || read (fd, memaddr, len) != len)
+ if (lseek (fd, memaddr, SEEK_SET) == -1 || read (fd, myaddr, len) != len)
#endif
{
close (fd);