llvm-project/lldb/source/Host
Greg Clayton 00fe87b488 Modified local spawning in debugserver processes to use a new --reverse-connect option so that debugserver actually connects back to LLDB instead of LLDB connecting to debugserver.
This gets rid of our hacky "get_random_port()" which would grab a random port and tell debugserver to open that port. Now LLDB creates, binds, listens and accepts a connection by binding to port zero and sending the correctly bound port down as the host:port to connect back to.

Fixed the "ConnectionFileDescriptor" to be able to correctly listen for connections from a specified host, localhost, or any host. Prior to this fix "listen://" only accepted the following format:

listen://<port>

But now it can accept:

listen://<port>         // Listen for connection from localhost on port <port>
listen://<host>:<port>  // Listen for connection from <host> and <port>    
listen://*:<port>       // Listen for connection from any host on port <port>

llvm-svn: 196547
2013-12-05 22:58:22 +00:00
..
common Modified local spawning in debugserver processes to use a new --reverse-connect option so that debugserver actually connects back to LLDB instead of LLDB connecting to debugserver. 2013-12-05 22:58:22 +00:00
freebsd Enable Host::LaunchProcess on Linux 2013-08-27 20:58:59 +00:00
linux Add error checking to 'cmd' buffer as it may not be available (ie. in the case of exec). 2013-10-09 19:23:34 +00:00
macosx Enable POSIX_SPAWN_CLOEXEC_DEFAULT (a darwin specific flag) when available when using posix_spawn to spawn processes to close all file handles. 2013-12-04 19:38:57 +00:00
windows Added some MSVC required functions in Windows.cpp. Moved MSVC specific getopt code inside its own folder. 2013-09-07 05:05:49 +00:00
CMakeLists.txt Convert to UNIX line endings. 2013-09-25 10:37:32 +00:00
Makefile MingW compilation (windows). Includes various refactoring to improve portability. 2013-08-23 12:44:05 +00:00