gdb/ChangeLog 2016-03-24 Jan Kratochvil * remote.c (packet_ok): Add workaround for vFile:setfs. diff --git a/gdb/remote.c b/gdb/remote.c index af0a08a..be5cc09 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -1311,7 +1311,14 @@ packet_ok (const char *buf, struct packet_config *config) internal_error (__FILE__, __LINE__, _("packet_ok: attempt to use a disabled packet")); - result = packet_check_result (buf); + if (strcmp (config->name, "vFile:setfs") == 0 && strcmp (buf, "OK") == 0) + { + /* Workaround gdbserver < 7.7 before its fix from 2013-12-11. */ + result = PACKET_UNKNOWN; + } + else + result = packet_check_result (buf); + switch (result) { case PACKET_OK: