aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/remote.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/remote.c b/gdb/remote.c
index 311430b..2a483f9 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -12663,6 +12663,9 @@ remote_target::remote_hostio_send_command (int command_bytes, int which_packet,
return -1;
}
+ if (*remote_errno != FILEIO_SUCCESS)
+ return -1;
+
/* Make sure we saw an attachment if and only if we expected one. */
if ((attachment_tmp == NULL && attachment != NULL)
|| (attachment_tmp != NULL && attachment == NULL))