[lldb-server] Use Platform plugin corresponding to the host
authorAlex Langford <alangford@apple.com>
Wed, 22 Mar 2023 23:17:49 +0000 (16:17 -0700)
committerAlex Langford <alangford@apple.com>
Thu, 23 Mar 2023 19:59:25 +0000 (12:59 -0700)
commit0c5cee779929f840f4f286c5894a01f583ee7b4a
tree769216407e1ebe01d15bd586a8b7b3b07a8a0875
parentd10110a8a60137d430f7a75051d0794293982ef6
[lldb-server] Use Platform plugin corresponding to the host

In ee232506b870ce5282cc4da5ca493d41d361feb3 I moved UnixSignal
initialization from lldbTarget to the various platform plugins. This
inadvertently broke lldb-server because lldb-server doesn't use
Platform plugins. lldb-server still needs to be able to create a
UnixSignals object for the host platform so we can add the relevant
platform plugin to lldb-server to make sure we always have a
HostPlatform.

Differential Revision: https://reviews.llvm.org/D146668
lldb/test/API/functionalities/inferior-crashing/TestInferiorCrashing.py
lldb/tools/lldb-server/CMakeLists.txt
lldb/tools/lldb-server/SystemInitializerLLGS.cpp