aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.h
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2013-12-04 19:19:12 +0000
committerGreg Clayton <gclayton@apple.com>2013-12-04 19:19:12 +0000
commit91a9b247d473cebc23cee55309aecc56a0c29f64 (patch)
tree2b17093853340a7e78025fe809f1748ca211ff2b /lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.h
parentc15bf89122f60a0e06a17f4ae7ee32892665fd33 (diff)
downloadllvm-91a9b247d473cebc23cee55309aecc56a0c29f64.zip
llvm-91a9b247d473cebc23cee55309aecc56a0c29f64.tar.gz
llvm-91a9b247d473cebc23cee55309aecc56a0c29f64.tar.bz2
Switch local launching of debugserver over to always use a FIFO in order to handshake with the launched debugserver.
This helps ensure that the launched debugserver is ready and listening for a connection. Prior to this we had a race condition. Consolidate the launching of debugserver into a single place: a static function in GDBRemoteCommunication. llvm-svn: 196401
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.h')
-rw-r--r--lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.h b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.h
index a107795..98e29e4 100644
--- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.h
+++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.h
@@ -108,10 +108,10 @@ public:
// Start a debugserver instance on the current host using the
// supplied connection URL.
//------------------------------------------------------------------
- lldb_private::Error
+ static lldb_private::Error
StartDebugserverProcess (const char *connect_url,
- const char *unix_socket_name,
- lldb_private::ProcessLaunchInfo &launch_info);
+ lldb_private::ProcessLaunchInfo &launch_info,
+ uint16_t &port);
void
DumpHistory(lldb_private::Stream &strm);