diff options
| author | Jason Molenda <jmolenda@apple.com> | 2013-03-23 00:44:22 +0000 |
|---|---|---|
| committer | Jason Molenda <jmolenda@apple.com> | 2013-03-23 00:44:22 +0000 |
| commit | 45461571e77e7dd9c476dd4e40e24fdcfc63918b (patch) | |
| tree | cdb5b1221beb74441dad7535454645304c16c4a0 /lldb/tools/debugserver/source/RNBSocket.h | |
| parent | 130df4b0a42524854388520d9aa2cc210c1f0e7f (diff) | |
| download | bcm5719-llvm-45461571e77e7dd9c476dd4e40e24fdcfc63918b.tar.gz bcm5719-llvm-45461571e77e7dd9c476dd4e40e24fdcfc63918b.zip | |
Change debugserver to open the socket it listens
to in INADDR_LOOPBACK mode by default ("localhost only")
instead of INADDR_ANY ("accept connections from any system").
Add a new command line argument to debugserver, --open-connection
or -H which will enable the previous behavior. It would be used
if you were doing two-system debugging, with lldb running on one
system and debugserver running on the other. But it is a less
common workflow and should not be the default.
<rdar://problem/12583284>
llvm-svn: 177790
Diffstat (limited to 'lldb/tools/debugserver/source/RNBSocket.h')
| -rw-r--r-- | lldb/tools/debugserver/source/RNBSocket.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/tools/debugserver/source/RNBSocket.h b/lldb/tools/debugserver/source/RNBSocket.h index be2199d5316..2417d574f2c 100644 --- a/lldb/tools/debugserver/source/RNBSocket.h +++ b/lldb/tools/debugserver/source/RNBSocket.h @@ -43,7 +43,7 @@ public: Disconnect (false); } - rnb_err_t Listen (in_port_t port, PortBoundCallback callback, const void *callback_baton); + rnb_err_t Listen (in_port_t port, PortBoundCallback callback, const void *callback_baton, bool localhost_only); rnb_err_t Connect (const char *host, uint16_t port); rnb_err_t useFD(int fd); |

