summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Platform/gdb-server/PlatformRemoteGDBServer.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2016-11-17 01:38:02 +0000
committerZachary Turner <zturner@google.com>2016-11-17 01:38:02 +0000
commit245f7fdcfa9fb4351f53ab9d96b31e1e472e81bd (patch)
tree6ff373d6c04675d624f323b6452d3c5da1eac12f /lldb/source/Plugins/Platform/gdb-server/PlatformRemoteGDBServer.cpp
parent24bd3178714d8f9f10d0fd4c1a4de2605da20404 (diff)
downloadbcm5719-llvm-245f7fdcfa9fb4351f53ab9d96b31e1e472e81bd.tar.gz
bcm5719-llvm-245f7fdcfa9fb4351f53ab9d96b31e1e472e81bd.zip
Convert UriParser to use StringRef.
llvm-svn: 287190
Diffstat (limited to 'lldb/source/Plugins/Platform/gdb-server/PlatformRemoteGDBServer.cpp')
-rw-r--r--lldb/source/Plugins/Platform/gdb-server/PlatformRemoteGDBServer.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/lldb/source/Plugins/Platform/gdb-server/PlatformRemoteGDBServer.cpp b/lldb/source/Plugins/Platform/gdb-server/PlatformRemoteGDBServer.cpp
index 1a5df93fbd6..ccc73015adc 100644
--- a/lldb/source/Plugins/Platform/gdb-server/PlatformRemoteGDBServer.cpp
+++ b/lldb/source/Plugins/Platform/gdb-server/PlatformRemoteGDBServer.cpp
@@ -309,9 +309,12 @@ Error PlatformRemoteGDBServer::ConnectRemote(Args &args) {
const char *url = args.GetArgumentAtIndex(0);
if (!url)
return Error("URL is null.");
- if (!UriParser::Parse(url, m_platform_scheme, m_platform_hostname, port,
- path))
+ llvm::StringRef scheme, hostname, pathname;
+ if (!UriParser::Parse(url, scheme, hostname, port, pathname))
return Error("Invalid URL: %s", url);
+ m_platform_scheme = scheme;
+ m_platform_hostname = hostname;
+ path = pathname;
const ConnectionStatus status = m_gdb_client.Connect(url, &error);
if (status == eConnectionStatusSuccess) {
OpenPOWER on IntegriCloud