[Lldb-commits] [lldb] r248722 - Bind listener to 127.0.0.1 to make sure that loopback address is used.

Oleksiy Vyalov via lldb-commits lldb-commits at lists.llvm.org
Mon Sep 28 10:42:16 PDT 2015


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 ();




More information about the lldb-commits mailing list