Author: ovyalov Date: Mon Sep 28 12:42:16 2015 New Revision: 248722 URL: http://llvm.org/viewvc/llvm-project?rev=248722&view=rev Log: Bind listener to 127.0.0.1 to make sure that loopback address is used.
Modified: lldb/trunk/source/Plugins/Platform/Android/PlatformAndroidRemoteGDBServer.cpp Modified: lldb/trunk/source/Plugins/Platform/Android/PlatformAndroidRemoteGDBServer.cpp URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Platform/Android/PlatformAndroidRemoteGDBServer.cpp?rev=248722&r1=248721&r2=248722&view=diff ============================================================================== --- lldb/trunk/source/Plugins/Platform/Android/PlatformAndroidRemoteGDBServer.cpp (original) +++ lldb/trunk/source/Plugins/Platform/Android/PlatformAndroidRemoteGDBServer.cpp Mon Sep 28 12:42:16 2015 @@ -53,7 +53,7 @@ static Error FindUnusedPort (uint16_t& port) { Socket* socket = nullptr; - auto error = Socket::TcpListen ("localhost:0", false, socket, nullptr); + auto error = Socket::TcpListen ("127.0.0.1:0", false, socket, nullptr); if (error.Success ()) { port = socket->GetLocalPortNumber (); _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits