aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote-mips.c
diff options
context:
space:
mode:
authorYao Qi <yao@codesourcery.com>2014-08-06 13:27:57 +0800
committerYao Qi <yao@codesourcery.com>2014-08-07 17:43:37 +0800
commit5ee8a82c47856b204ad76407780e454f8cfd9a72 (patch)
tree3d987a68583e001df7ee5b17b7eb110b653f78d9 /gdb/remote-mips.c
parentbb974a2493495923903631bab3de9f340526d353 (diff)
downloadgdb-5ee8a82c47856b204ad76407780e454f8cfd9a72.zip
gdb-5ee8a82c47856b204ad76407780e454f8cfd9a72.tar.gz
gdb-5ee8a82c47856b204ad76407780e454f8cfd9a72.tar.bz2
Fix remote/17230
This patch is to fix PR remote/17230, which is a leftover of the to_xfer_partial interface change. I tried splint and it reprots this problem like this, ../../../git/gdb/remote-mips.c:2236: Return value type unsigned long long does not match declared type enum target_xfer_status: len and this problem only exists in remote-mips.c. gdb: 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.
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. */