Remove the debugserver "--open-connection" option and obey the hostname that is passed into debugserver.
you can now specify:
debugserver host:port
debugserver port
debugserver /path/to/file
When "host" is specified, we will only accept connections from that host. If host is not specified, we default to "localhost".
llvm-svn: 183457
diff --git a/lldb/tools/debugserver/source/RNBSocket.h b/lldb/tools/debugserver/source/RNBSocket.h
index 2417d57..2467bb7 100644
--- a/lldb/tools/debugserver/source/RNBSocket.h
+++ b/lldb/tools/debugserver/source/RNBSocket.h
@@ -43,7 +43,10 @@
Disconnect (false);
}
- rnb_err_t Listen (in_port_t port, PortBoundCallback callback, const void *callback_baton, bool localhost_only);
+ rnb_err_t Listen (const char *listen_host,
+ in_port_t port,
+ PortBoundCallback callback,
+ const void *callback_baton);
rnb_err_t Connect (const char *host, uint16_t port);
rnb_err_t useFD(int fd);