diff options
| author | Pavel Labath <labath@google.com> | 2016-08-23 12:10:09 +0000 |
|---|---|---|
| committer | Pavel Labath <labath@google.com> | 2016-08-23 12:10:09 +0000 |
| commit | 849cc1ae57946da20bcf67cb963fcb3c37e4147f (patch) | |
| tree | 9e099340934c0df4dda0eeb1f9185e7bab286ea4 | |
| parent | e92050f0446492be6eb52ca21bbb582e8ce7e717 (diff) | |
| download | bcm5719-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
| -rw-r--r-- | lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp | 2 |
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); |

