summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
diff options
context:
space:
mode:
authorHan Ming Ong <hanming@apple.com>2013-06-24 18:15:05 +0000
committerHan Ming Ong <hanming@apple.com>2013-06-24 18:15:05 +0000
commit91ed6b878f9503949b86f3a2f2edf0708868005b (patch)
treea7ce2540658b6de5352317d346450fb7197d7d89 /lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
parent7925e3db637a25d380fc68a8103a6bae6505d8de (diff)
downloadbcm5719-llvm-91ed6b878f9503949b86f3a2f2edf0708868005b.tar.gz
bcm5719-llvm-91ed6b878f9503949b86f3a2f2edf0708868005b.zip
<rdar://problem/14182286>
Made sure that temporary object created from HarmonizeThreadIdsForProfileData() doesn’t get passed around without creating an object first. Reviewed by Greg llvm-svn: 184769
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp')
-rw-r--r--lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
index 25568f278ea..ca594a8f3fd 100644
--- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
+++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
@@ -764,8 +764,8 @@ GDBRemoteCommunicationClient::SendContinuePacketAndWaitForResponse
while ((found = input.find(end_delimiter, pos)) != std::string::npos)
{
StringExtractorGDBRemote profileDataExtractor(input.substr(pos, found).c_str());
- const std::string& profile_data = HarmonizeThreadIdsForProfileData(process, profileDataExtractor);
- process->BroadcastAsyncProfileData (profile_data.c_str(), profile_data.length());
+ std::string profile_data = HarmonizeThreadIdsForProfileData(process, profileDataExtractor);
+ process->BroadcastAsyncProfileData (profile_data);
pos = found + end_delimiter_len;
}
OpenPOWER on IntegriCloud