gdb/
* go32-nat.c (go32_xfer_memory): Fix the return value to be
compatible to what read_child and write_child return. This
unbreaks that DJGPP build of GDB which was broken since v7.7.
+2015-05-30 Eli Zaretskii <eliz@gnu.org>
+
+ * go32-nat.c (go32_xfer_memory): Fix the return value to be
+ compatible to what read_child and write_child return. This
+ unbreaks that DJGPP build of GDB which was broken since v7.7.
+
2015-05-29 Martin Galvan <martin.galvan@tallertechnologies.com>
* MAINTAINERS (Write After Approval): Add Martin Galvan.
else
res = read_child (memaddr, readbuf, len);
- if (res <= 0)
+ /* read_child and write_child return zero on success, non-zero on
+ failure. */
+ if (res != 0)
return TARGET_XFER_E_IO;
- *xfered_len = res;
+ *xfered_len = len;
return TARGET_XFER_OK;
}