[OB] linux-low.c (linux_read_memory): Fix argument to read.

Doug Evans dje@google.com
Wed Dec 16 21:25:00 GMT 2009


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);



More information about the Gdb-patches mailing list