Allow DynamicLoaderDarwinKernel to activate without binary
authorJason Molenda <jason@molenda.com>
Mon, 10 Oct 2022 17:15:43 +0000 (10:15 -0700)
committerJason Molenda <jason@molenda.com>
Mon, 10 Oct 2022 17:19:09 +0000 (10:19 -0700)
commitb8a8c2d47a38ba08012fe9cbb28169a1e0f7be2a
tree2b33bdbaebfeaf2f2e7f5d941fc838c0e5ff810c
parent4b6bd1c9d56909b3f25b8dc3ea5b49e0b32d107a
Allow DynamicLoaderDarwinKernel to activate without binary

In https://reviews.llvm.org/D133534 I made a little cleanup
to DynamicLoaderDarwinKernel::CreateInstance and unintentionally
changed the logic.  Previously it would not create an instance
if there was a binary given to lldb and it was not a kernel.
With my change, the absence of any binary would also cause it
to not create.  So connecting to a kernel without any binaries
would fail.

rdar://100985097
lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp