summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2015-07-15 00:59:25 +0000
committerJim Ingham <jingham@apple.com>2015-07-15 00:59:25 +0000
commit4920a4ef56396d898bb52dc8ffaa4ed10e41edef (patch)
treed24d388071f9e9c2a4b448e5150cceb18c179f24 /lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
parent6a96c61659198306fb2f8e63f7466dd2e3c87399 (diff)
downloadbcm5719-llvm-4920a4ef56396d898bb52dc8ffaa4ed10e41edef.tar.gz
bcm5719-llvm-4920a4ef56396d898bb52dc8ffaa4ed10e41edef.zip
Fix another little nit with detach and keep stopped, you have to check
both for packet success and that the response is OK. llvm-svn: 242262
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp')
-rw-r--r--lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
index b9edfad78ab..f4862167d49 100644
--- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
+++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
@@ -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;
}
OpenPOWER on IntegriCloud