mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-30 12:44:10 +08:00
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.
This commit is contained in:
parent
bb974a2493
commit
5ee8a82c47
@ -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.
|
||||
|
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user