Treat hostname in android URL as device id unless it matches "localhost".

http://reviews.llvm.org/D14101

llvm-svn: 251422
This commit is contained in:
Oleksiy Vyalov
2015-10-27 17:41:34 +00:00
parent cc8c0202b3
commit a29d6475e6
2 changed files with 2 additions and 2 deletions

View File

@@ -126,7 +126,7 @@ PlatformAndroidRemoteGDBServer::ConnectRemote (Args& args)
return Error("URL is null.");
if (!UriParser::Parse (url, scheme, host, remote_port, path))
return Error("Invalid URL: %s", url);
if (scheme == "adb")
if (host != "localhost")
m_device_id = host;
std::string connect_url;