summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2014-01-10 22:24:11 +0000
committerGreg Clayton <gclayton@apple.com>2014-01-10 22:24:11 +0000
commitfda4fab5059aa88e711315a61fccf78b23cc64ce (patch)
tree2eeac5edbf27bf28cf8d953358ebddb733667c97 /lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp
parent9485dcfb1a7500fa0e15c71c4c27919c9e2924a7 (diff)
downloadbcm5719-llvm-fda4fab5059aa88e711315a61fccf78b23cc64ce.tar.gz
bcm5719-llvm-fda4fab5059aa88e711315a61fccf78b23cc64ce.zip
Revert to getting a random port and sending that down to debugserver for iOS. The sandboxing is not letting debugserver reverse connect back to lldb.
<rdar://problem/15789865> llvm-svn: 198963
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp')
-rw-r--r--lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp
index 9983626bb24..91658b98d61 100644
--- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp
+++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp
@@ -841,18 +841,16 @@ GDBRemoteCommunicationServer::Handle_qLaunchGDBServer (StringExtractorGDBRemote
{
// Spawn a debugserver and try to get the port it listens to.
ProcessLaunchInfo debugserver_launch_info;
- StreamString host_and_port;
if (hostname.empty())
hostname = "localhost";
- host_and_port.Printf("%s:%u", hostname.c_str(), port);
- const char *host_and_port_cstr = host_and_port.GetString().c_str();
Log *log(GetLogIfAnyCategoriesSet(LIBLLDB_LOG_PLATFORM));
if (log)
- log->Printf("Launching debugserver with: %s...\n", host_and_port_cstr);
+ log->Printf("Launching debugserver with: %s:%u...\n", hostname.c_str(), port);
debugserver_launch_info.SetMonitorProcessCallback(ReapDebugserverProcess, this, false);
- error = StartDebugserverProcess (host_and_port_cstr,
+ error = StartDebugserverProcess (hostname.empty() ? NULL : hostname.c_str(),
+ port,
debugserver_launch_info,
port);
OpenPOWER on IntegriCloud