Unbreak DJGPP build of GDB.
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.
This commit is contained in:
parent
6809615b88
commit
99cee7b71f
|
@ -1,3 +1,9 @@
|
|||
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.
|
||||
|
|
|
@ -587,10 +587,12 @@ go32_xfer_memory (gdb_byte *readbuf, const gdb_byte *writebuf,
|
|||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue