mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-21 18:39:34 +08:00
* linux-low.c (linux_read_memory): Fix argument to read.
This commit is contained in:
@ -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>
|
2009-11-26 Pedro Alves <pedro@codesourcery.com>
|
||||||
|
|
||||||
* win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
|
* win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
|
||||||
|
@ -2357,7 +2357,7 @@ linux_read_memory (CORE_ADDR memaddr, unsigned char *myaddr, int len)
|
|||||||
#ifdef HAVE_PREAD64
|
#ifdef HAVE_PREAD64
|
||||||
if (pread64 (fd, myaddr, len, memaddr) != len)
|
if (pread64 (fd, myaddr, len, memaddr) != len)
|
||||||
#else
|
#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
|
#endif
|
||||||
{
|
{
|
||||||
close (fd);
|
close (fd);
|
||||||
|
Reference in New Issue
Block a user