summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
diff options
context:
space:
mode:
authorPavel Labath <labath@google.com>2016-08-23 12:10:09 +0000
committerPavel Labath <labath@google.com>2016-08-23 12:10:09 +0000
commit849cc1ae57946da20bcf67cb963fcb3c37e4147f (patch)
tree9e099340934c0df4dda0eeb1f9185e7bab286ea4 /lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
parente92050f0446492be6eb52ca21bbb582e8ce7e717 (diff)
downloadbcm5719-llvm-849cc1ae57946da20bcf67cb963fcb3c37e4147f.tar.gz
bcm5719-llvm-849cc1ae57946da20bcf67cb963fcb3c37e4147f.zip
Fix a crash in GDBRemoteCommunicationClient::GetSupportedStructuredDataPlugins
The function was attempting to write the reply to the log even if the reply was empty. llvm-svn: 279513
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp')
-rw-r--r--lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
index 79ff5d18553..038ba308678 100644
--- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
+++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
@@ -3975,7 +3975,7 @@ GDBRemoteCommunicationClient::GetSupportedStructuredDataPlugins()
__FUNCTION__);
}
- if (log && m_supported_async_json_packets_is_valid)
+ if (log && m_supported_async_json_packets_sp)
{
StreamString stream;
m_supported_async_json_packets_sp->Dump(stream);
OpenPOWER on IntegriCloud