[Lldb-commits] [lldb] r287542 - Fix remote-linux regression due to stringRef changes
Omair Javaid via lldb-commits
lldb-commits at lists.llvm.org
Mon Nov 21 07:18:59 PST 2016
Author: omjavaid
Date: Mon Nov 21 09:18:58 2016
New Revision: 287542
URL: http://llvm.org/viewvc/llvm-project?rev=287542&view=rev
Log:
Fix remote-linux regression due to stringRef changes
This is to fix a regression in remote-linux lldb-server connections.
We were wrongly passing a copy of uri and expecting a stringRef back.
Modified:
lldb/trunk/tools/lldb-server/Acceptor.cpp
Modified: lldb/trunk/tools/lldb-server/Acceptor.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/lldb-server/Acceptor.cpp?rev=287542&r1=287541&r2=287542&view=diff
==============================================================================
--- lldb/trunk/tools/lldb-server/Acceptor.cpp (original)
+++ lldb/trunk/tools/lldb-server/Acceptor.cpp Mon Nov 21 09:18:58 2016
@@ -90,7 +90,7 @@ std::unique_ptr<Acceptor> Acceptor::Crea
int port;
StringRef scheme, host, path;
// Try to match socket name as URL - e.g., tcp://localhost:5555
- if (UriParser::Parse(name.str(), scheme, host, port, path)) {
+ if (UriParser::Parse(name, scheme, host, port, path)) {
if (!FindProtocolByScheme(scheme.str().c_str(), socket_protocol))
error.SetErrorStringWithFormat("Unknown protocol scheme \"%s\"",
scheme.str().c_str());
More information about the lldb-commits
mailing list