We have some non-kexts in the binary list in the Darwin kernel in some situations. The binary has likely already been loaded; check if it has been, and don't re-load it. Also, if we do need to load it at this point, if in-memory segment vmaddrs have not been updated to the actual load addresses, calculate a fixed slide for the in-memory image and apply that slide to the ondisk binary. Differential Revision: https://reviews.llvm.org/D145547 rdar://106343477
26 lines
796 B
CMake
26 lines
796 B
CMake
lldb_tablegen(DynamicLoaderDarwinKernelProperties.inc -gen-lldb-property-defs
|
|
SOURCE DynamicLoaderDarwinKernelProperties.td
|
|
TARGET LLDBPluginDynamicLoaderDarwinKernelPropertiesGen)
|
|
|
|
lldb_tablegen(DynamicLoaderDarwinKernelPropertiesEnum.inc -gen-lldb-property-enum-defs
|
|
SOURCE DynamicLoaderDarwinKernelProperties.td
|
|
TARGET LLDBPluginDynamicLoaderDarwinKernelPropertiesEnumGen)
|
|
|
|
add_lldb_library(lldbPluginDynamicLoaderDarwinKernel PLUGIN
|
|
DynamicLoaderDarwinKernel.cpp
|
|
|
|
LINK_LIBS
|
|
lldbBreakpoint
|
|
lldbCore
|
|
lldbHost
|
|
lldbInterpreter
|
|
lldbSymbol
|
|
lldbTarget
|
|
lldbUtility
|
|
lldbPluginObjectFileMachO
|
|
)
|
|
|
|
add_dependencies(lldbPluginDynamicLoaderDarwinKernel
|
|
LLDBPluginDynamicLoaderDarwinKernelPropertiesGen
|
|
LLDBPluginDynamicLoaderDarwinKernelPropertiesEnumGen)
|