* rs6000-nat.c (child_xfer_memory): Compute the right address when
fetching the trailing bytes of the buffer we are about to write.
This commit is contained in:
parent
5ef0935e19
commit
a191ea8dac
@ -1,3 +1,8 @@
|
||||
2003-06-10 J. Brobecker <brobecker@gnat.com>
|
||||
|
||||
* rs6000-nat.c (child_xfer_memory): Compute the right address when
|
||||
fetching the trailing bytes of the buffer we are about to write.
|
||||
|
||||
2003-06-10 Andrew Cagney <cagney@redhat.com>
|
||||
|
||||
* remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
|
||||
|
@ -485,7 +485,8 @@ child_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len,
|
||||
|
||||
/* Fetch trailing memory needed for alignment. */
|
||||
if (addr + count * sizeof (int) > memaddr + len)
|
||||
if (!read_word (addr, buf + count - 1, arch64))
|
||||
if (!read_word (addr + (count - 1) * sizeof (int),
|
||||
buf + count - 1, arch64))
|
||||
return 0;
|
||||
|
||||
/* Copy supplied data into memory buffer. */
|
||||
|
Loading…
Reference in New Issue
Block a user