This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[OB] linux-low.c (linux_read_memory): Fix argument to read.
- From: dje at google dot com (Doug Evans)
- To: gdb-patches at sourceware dot org
- Date: Wed, 16 Dec 2009 13:25:07 -0800 (PST)
- Subject: [OB] linux-low.c (linux_read_memory): Fix argument to read.
Hi.
I checked this in under the obvious rule.
2009-12-16 Doug Evans <dje@google.com>
* linux-low.c (linux_read_memory): Fix argument to read.
Index: linux-low.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbserver/linux-low.c,v
retrieving revision 1.114
diff -u -p -u -p -r1.114 linux-low.c
--- linux-low.c 16 Nov 2009 18:15:05 -0000 1.114
+++ linux-low.c 16 Dec 2009 21:21:45 -0000
@@ -2357,7 +2357,7 @@ linux_read_memory (CORE_ADDR memaddr, un
#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);