Print port number that lldb-server binds to in platform mode
authorVince Harron <vince@nethacker.com>
Tue, 26 May 2015 03:08:05 +0000 (03:08 +0000)
committerVince Harron <vince@nethacker.com>
Tue, 26 May 2015 03:08:05 +0000 (03:08 +0000)
commit218353d84782995135f67eab2284837f12433d41
tree21b4a19256bbbb141f03a8bd0a7c64855f6b5f8a
parent64acc7fcc79d789daf0559f5d254aa7dbfa3708e
Print port number that lldb-server binds to in platform mode

If binding to port 0 is selected, the actual port is printed.

This improves the reliability of platform startup by ensuring that
a free port can be found.

TEST PLAN
./lldb-server platform --listen *:0

Listening for a connection from <port-number>...

Will appear on stdout (with other stuff potentially)

llvm-svn: 238173
lldb/include/lldb/Symbol/Type.h
lldb/source/Symbol/Type.cpp
lldb/tools/lldb-server/lldb-platform.cpp