diff options
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/remote-mips.c | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 5261972..8146dea 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2014-08-07 Yao Qi <yao@codesourcery.com> + + PR remote/17230 + * remote-mips.c (mips_xfer_memory): Set *xfered_len and return + TARGET_XFER_OK instead of 0. + 2014-08-07 Gary Benson <gbenson@redhat.com> * common/common-defs.h: Include errno.h. diff --git a/gdb/remote-mips.c b/gdb/remote-mips.c index 1f1650e..19ac30f 100644 --- a/gdb/remote-mips.c +++ b/gdb/remote-mips.c @@ -2232,7 +2232,8 @@ mips_xfer_memory (gdb_byte *readbuf, const gdb_byte *writebuf, /* Copy appropriate bytes out of the buffer. */ memcpy (readbuf, buffer + (memaddr & 3), len); } - return len; + *xfered_len = len; + return TARGET_XFER_OK; } /* Target to_xfer_partial implementation. */ |