forked from Imagelibrary/binutils-gdb
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user