Modified GDBProcessCommunicationServer to launch via the platform.

GDBProcessCommunicationServer now optionally takes a PlatformSP that
defaults to the default platform for the host.
GDBProcessCommunicationServer::LaunchProcess () now uses the platform
to launch the process.

lldb-gdbserver now takes an optional --platform={platform_plugin_name}
or -p {platform_plugin_name} command line option. If no platform is
specified, the default platform for the host is used; otherwise, if
the platform_plugin_name matches a registered platform plugin or
matches the default platform's name (which is not necessarily
registered by name in the case of 'host'), that platform is used. If
the platform name cannot be resolved, lldb-gdbserver exits after
printing all the available platform plugin names and the default
platform plugin name.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@200266 91177308-0d34-0410-b5e6-96231b3b80d8
Fixed a crasher when handling process events that is due to a translation from the public API to the private API.



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@200267 91177308-0d34-0410-b5e6-96231b3b80d8