aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote-mips.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/remote-mips.c')
-rw-r--r--gdb/remote-mips.c3
1 files changed, 2 insertions, 1 deletions
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. */