Fix another little nit with detach and keep stopped, you have to check
authorJim Ingham <jingham@apple.com>
Wed, 15 Jul 2015 00:59:25 +0000 (00:59 +0000)
committerJim Ingham <jingham@apple.com>
Wed, 15 Jul 2015 00:59:25 +0000 (00:59 +0000)
both for packet success and that the response is OK.

llvm-svn: 242262

lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp

index b9edfad..f486216 100644 (file)
@@ -2293,7 +2293,8 @@ GDBRemoteCommunicationClient::Detach (bool keep_stopped)
             const int packet_len = ::snprintf(packet, sizeof(packet), "qSupportsDetachAndStayStopped:");
             assert (packet_len < (int)sizeof(packet));
             StringExtractorGDBRemote response;
-            if (SendPacketAndWaitForResponse (packet, packet_len, response, false) == PacketResult::Success)
+            if (SendPacketAndWaitForResponse (packet, packet_len, response, false) == PacketResult::Success
+                  && response.IsOKResponse())
             {
                 m_supports_detach_stay_stopped = eLazyBoolYes;        
             }