summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2014-02-27 19:38:18 +0000
committerGreg Clayton <gclayton@apple.com>2014-02-27 19:38:18 +0000
commit1681092f9652b443aa2a355080b76714190579c0 (patch)
tree59b60aa1d16f37338479324b95d3951ddbf369b9 /lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
parentfdbad6d5d8d666d71045db94301a18f6cdb858d2 (diff)
downloadbcm5719-llvm-1681092f9652b443aa2a355080b76714190579c0.tar.gz
bcm5719-llvm-1681092f9652b443aa2a355080b76714190579c0.zip
Remove an assertion that was being hit due to slow DNS name lookups on MacOSX for "localhost".
Changed all "localhost" to "127.0.0.1" to prevent potentially long name lookups. <rdar://problem/16154630> llvm-svn: 202424
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp')
-rw-r--r--lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
index 1172222d62a..800bd257061 100644
--- a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
+++ b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
@@ -2604,7 +2604,7 @@ ProcessGDBRemote::LaunchAndConnectToDebugserver (const ProcessInfo &process_info
#if defined (__APPLE__) && defined (__arm__)
// On iOS, still do a local connection using a random port
- const char *hostname = "localhost";
+ const char *hostname = "127.0.0.1";
uint16_t port = get_random_port ();
#else
// Set hostname being NULL to do the reverse connect where debugserver
OpenPOWER on IntegriCloud