LLDB mainline
|
#include <DynamicLoaderDarwinKernel.h>
Classes | |
class | KextImageInfo |
struct | OSKextLoadedKextSummaryHeader |
Public Member Functions | |
DynamicLoaderDarwinKernel (lldb_private::Process *process, lldb::addr_t kernel_addr) | |
~DynamicLoaderDarwinKernel () override | |
void | DidAttach () override |
Called after attaching a process. | |
void | DidLaunch () override |
Called after attaching a process. | |
lldb::ThreadPlanSP | GetStepThroughTrampolinePlan (lldb_private::Thread &thread, bool stop_others) override |
Provides a plan to step through the dynamic loader trampoline for the current state of thread. | |
lldb_private::Status | CanLoadImage () override |
Ask if it is ok to try and load or unload an shared library (image). | |
llvm::StringRef | GetPluginName () override |
![]() | |
DynamicLoader (Process *process) | |
Construct with a process. | |
virtual void | DidAttach ()=0 |
Called after attaching a process. | |
virtual void | DidLaunch ()=0 |
Called after launching a process. | |
virtual bool | ProcessDidExec () |
Helper function that can be used to detect when a process has called exec and is now a new and different process. | |
bool | GetStopWhenImagesChange () const |
Get whether the process should stop when images change. | |
void | SetStopWhenImagesChange (bool stop) |
Set whether the process should stop when images change. | |
virtual lldb::ThreadPlanSP | GetStepThroughTrampolinePlan (Thread &thread, bool stop_others)=0 |
Provides a plan to step through the dynamic loader trampoline for the current state of thread. | |
virtual void | FindEquivalentSymbols (Symbol *original_symbol, ModuleList &module_list, SymbolContextList &equivalent_symbols) |
Some dynamic loaders provide features where there are a group of symbols "equivalent to" a given symbol one of which will be chosen when the symbol is bound. | |
virtual Status | CanLoadImage ()=0 |
Ask if it is ok to try and load or unload an shared library (image). | |
virtual bool | AlwaysRelyOnEHUnwindInfo (SymbolContext &sym_ctx) |
Ask if the eh_frame information for the given SymbolContext should be relied on even when it's the first frame in a stack unwind. | |
virtual lldb::addr_t | GetThreadLocalData (const lldb::ModuleSP module, const lldb::ThreadSP thread, lldb::addr_t tls_file_addr) |
Retrieves the per-module TLS block for a given thread. | |
virtual lldb::ModuleSP | LoadModuleAtAddress (const lldb_private::FileSpec &file, lldb::addr_t link_map_addr, lldb::addr_t base_addr, bool base_addr_is_offset) |
Locates or creates a module given by file and updates/loads the resulting module at the virtual base address base_addr . | |
virtual bool | GetSharedCacheInformation (lldb::addr_t &base_address, UUID &uuid, LazyBool &using_shared_cache, LazyBool &private_shared_cache) |
Get information about the shared cache for a process, if possible. | |
virtual bool | IsFullyInitialized () |
Return whether the dynamic loader is fully initialized and it's safe to call its APIs. | |
![]() | |
PluginInterface ()=default | |
virtual | ~PluginInterface ()=default |
virtual llvm::StringRef | GetPluginName ()=0 |
PluginInterface (const PluginInterface &)=delete | |
PluginInterface & | operator= (const PluginInterface &)=delete |
Static Public Member Functions | |
static void | Initialize () |
static void | Terminate () |
static llvm::StringRef | GetPluginNameStatic () |
static llvm::StringRef | GetPluginDescriptionStatic () |
static lldb_private::DynamicLoader * | CreateInstance (lldb_private::Process *process, bool force) |
static void | DebuggerInitialize (lldb_private::Debugger &debugger) |
static lldb::addr_t | SearchForDarwinKernel (lldb_private::Process *process) |
![]() | |
static DynamicLoader * | FindPlugin (Process *process, llvm::StringRef plugin_name) |
Find a dynamic loader plugin for a given process. | |
static lldb::ModuleSP | LoadBinaryWithUUIDAndAddress (Process *process, llvm::StringRef name, UUID uuid, lldb::addr_t value, bool value_is_offset, bool force_symbol_search, bool notify, bool set_address_in_target, bool allow_memory_image_last_resort) |
Find/load a binary into lldb given a UUID and the address where it is loaded in memory, or a slide to be applied to the file address. | |
Protected Types | |
enum | { KERNEL_MODULE_MAX_NAME = 64u , KERNEL_MODULE_ENTRY_SIZE_VERSION_1 = 64u + 16u + 8u + 8u + 8u + 4u + 4u } |
Protected Member Functions | |
void | PrivateInitialize (lldb_private::Process *process) |
void | PrivateProcessStateChanged (lldb_private::Process *process, lldb::StateType state) |
void | UpdateIfNeeded () |
void | LoadKernelModuleIfNeeded () |
void | Clear (bool clear_process) |
void | PutToLog (lldb_private::Log *log) const |
bool | BreakpointHit (lldb_private::StoppointCallbackContext *context, lldb::user_id_t break_id, lldb::user_id_t break_loc_id) |
uint32_t | GetAddrByteSize () |
void | RegisterNotificationCallbacks () |
void | UnregisterNotificationCallbacks () |
void | SetNotificationBreakpointIfNeeded () |
bool | ReadAllKextSummaries () |
bool | ReadKextSummaryHeader () |
bool | ParseKextSummaries (const lldb_private::Address &kext_summary_addr, uint32_t count) |
void | UpdateImageInfosHeaderAndLoadCommands (KextImageInfo::collection &image_infos, uint32_t infos_count, bool update_executable) |
uint32_t | ReadKextSummaries (const lldb_private::Address &kext_summary_addr, uint32_t image_infos_count, KextImageInfo::collection &image_infos) |
![]() | |
lldb::ModuleSP | FindModuleViaTarget (const FileSpec &file) |
lldb::ModuleSP | GetTargetExecutable () |
Checks to see if the target module has changed, updates the target accordingly and returns the target executable module. | |
virtual void | UpdateLoadedSections (lldb::ModuleSP module, lldb::addr_t link_map_addr, lldb::addr_t base_addr, bool base_addr_is_offset) |
Updates the load address of every allocatable section in module . | |
void | UpdateLoadedSectionsCommon (lldb::ModuleSP module, lldb::addr_t base_addr, bool base_addr_is_offset) |
virtual void | UnloadSections (const lldb::ModuleSP module) |
Removes the loaded sections from the target in module . | |
void | UnloadSectionsCommon (const lldb::ModuleSP module) |
const lldb_private::SectionList * | GetSectionListFromModule (const lldb::ModuleSP module) const |
int64_t | ReadUnsignedIntWithSizeInBytes (lldb::addr_t addr, int size_in_bytes) |
lldb::addr_t | ReadPointer (lldb::addr_t addr) |
void | LoadOperatingSystemPlugin (bool flush) |
Static Protected Member Functions | |
static bool | BreakpointHitCallback (void *baton, lldb_private::StoppointCallbackContext *context, lldb::user_id_t break_id, lldb::user_id_t break_loc_id) |
static lldb::ByteOrder | GetByteOrderFromMagic (uint32_t magic) |
static lldb::addr_t | SearchForKernelAtSameLoadAddr (lldb_private::Process *process) |
static lldb::addr_t | SearchForKernelWithDebugHints (lldb_private::Process *process) |
static lldb::addr_t | SearchForKernelNearPC (lldb_private::Process *process) |
static lldb::addr_t | SearchForKernelViaExhaustiveSearch (lldb_private::Process *process) |
static bool | ReadMachHeader (lldb::addr_t addr, lldb_private::Process *process, llvm::MachO::mach_header &mh, bool *read_error=nullptr) |
static lldb_private::UUID | CheckForKernelImageAtAddress (lldb::addr_t addr, lldb_private::Process *process, bool *read_error=nullptr) |
Protected Attributes | |
lldb::addr_t | m_kernel_load_address |
KextImageInfo | m_kernel |
lldb_private::Address | m_kext_summary_header_ptr_addr |
lldb_private::Address | m_kext_summary_header_addr |
OSKextLoadedKextSummaryHeader | m_kext_summary_header |
KextImageInfo::collection | m_known_kexts |
std::recursive_mutex | m_mutex |
lldb::user_id_t | m_break_id |
![]() | |
Process * | m_process |
The process that this dynamic loader plug-in is tracking. | |
Private Member Functions | |
DynamicLoaderDarwinKernel (const DynamicLoaderDarwinKernel &)=delete | |
const DynamicLoaderDarwinKernel & | operator= (const DynamicLoaderDarwinKernel &)=delete |
Definition at line 24 of file DynamicLoaderDarwinKernel.h.
|
protected |
Enumerator | |
---|---|
KERNEL_MODULE_MAX_NAME | |
KERNEL_MODULE_ENTRY_SIZE_VERSION_1 |
Definition at line 88 of file DynamicLoaderDarwinKernel.h.
DynamicLoaderDarwinKernel::DynamicLoaderDarwinKernel | ( | lldb_private::Process * | process, |
lldb::addr_t | kernel_addr | ||
) |
Definition at line 505 of file DynamicLoaderDarwinKernel.cpp.
References lldb_private::PlatformList::Create(), error(), lldb_private::Target::GetDebugger(), lldb_private::Debugger::GetPlatformList(), lldb_private::PlatformDarwinKernel::GetPluginNameStatic(), lldb_private::Process::GetTarget(), lldb_private::Process::SetCanRunCode(), and lldb_private::Target::SetPlatform().
|
override |
Definition at line 521 of file DynamicLoaderDarwinKernel.cpp.
References Clear().
|
privatedelete |
|
protected |
Definition at line 1137 of file DynamicLoaderDarwinKernel.cpp.
References lldb_private::GetLog(), lldb_private::DynamicLoader::GetStopWhenImagesChange(), LLDB_LOGF, PutToLog(), and ReadAllKextSummaries().
Referenced by BreakpointHitCallback().
|
staticprotected |
Definition at line 1130 of file DynamicLoaderDarwinKernel.cpp.
References BreakpointHit().
Referenced by SetNotificationBreakpointIfNeeded().
|
overridevirtual |
Ask if it is ok to try and load or unload an shared library (image).
The dynamic loader often knows when it would be ok to try and load or unload a shared library. This function call allows the dynamic loader plug-ins to check any current dyld state to make sure it is an ok time to load a shared library.
Implements lldb_private::DynamicLoader.
Definition at line 1597 of file DynamicLoaderDarwinKernel.cpp.
References error().
|
staticprotected |
Definition at line 434 of file DynamicLoaderDarwinKernel.cpp.
References lldb_private::eArchTypeMachO, lldb_private::Target::GetArchitecture(), lldb_private::GetLog(), lldb_private::Process::GetTarget(), lldb_private::ArchSpec::GetTriple(), is_kernel(), lldb_private::ArchSpec::IsCompatibleMatch(), LLDB_INVALID_ADDRESS, LLDB_LOGF, ReadMachHeader(), lldb_private::Process::ReadModuleFromMemory(), and lldb_private::Target::SetArchitecture().
Referenced by CreateInstance(), SearchForKernelAtSameLoadAddr(), SearchForKernelNearPC(), SearchForKernelViaExhaustiveSearch(), and SearchForKernelWithDebugHints().
|
protected |
Definition at line 546 of file DynamicLoaderDarwinKernel.cpp.
References lldb_private::Address::Clear(), DynamicLoaderDarwinKernel::KextImageInfo::Clear(), lldb_private::Process::ClearBreakpointSiteByID(), lldb_private::Process::IsAlive(), LLDB_BREAK_ID_IS_VALID, LLDB_INVALID_BREAK_ID, m_break_id, m_kernel, m_kext_summary_header_addr, m_kext_summary_header_ptr_addr, m_known_kexts, m_mutex, and lldb_private::DynamicLoader::m_process.
Referenced by PrivateInitialize(), PrivateProcessStateChanged(), and ~DynamicLoaderDarwinKernel().
|
static |
Definition at line 151 of file DynamicLoaderDarwinKernel.cpp.
References CheckForKernelImageAtAddress(), lldb_private::Target::GetArchitecture(), lldb_private::Target::GetExecutableModulePointer(), lldb_private::Process::GetTarget(), lldb_private::ArchSpec::GetTriple(), is_kernel(), and SearchForDarwinKernel().
Referenced by Initialize(), and Terminate().
|
static |
Definition at line 1614 of file DynamicLoaderDarwinKernel.cpp.
References lldb_private::PluginManager::CreateSettingForDynamicLoaderPlugin(), GetGlobalProperties(), lldb_private::PluginManager::GetSettingForDynamicLoaderPlugin(), and DynamicLoaderDarwinKernelProperties::GetSettingName().
Referenced by Initialize().
|
overridevirtual |
Called after attaching a process.
We've attached to a remote connection, or read a corefile.
Allow DynamicLoader plug-ins to execute some code after attaching to a process.
Now load the kernel binary and potentially the kexts, add them to the Target.
Implements lldb_private::DynamicLoader.
Definition at line 531 of file DynamicLoaderDarwinKernel.cpp.
References lldb_private::DynamicLoader::m_process, PrivateInitialize(), and UpdateIfNeeded().
|
overridevirtual |
Called after attaching a process.
Allow DynamicLoader plug-ins to execute some code after attaching to a process.
Implements lldb_private::DynamicLoader.
Definition at line 540 of file DynamicLoaderDarwinKernel.cpp.
References lldb_private::DynamicLoader::m_process, PrivateInitialize(), and UpdateIfNeeded().
|
inlineprotected |
Definition at line 84 of file DynamicLoaderDarwinKernel.h.
References DynamicLoaderDarwinKernel::KextImageInfo::GetAddressByteSize(), and m_kernel.
|
staticprotected |
Definition at line 1632 of file DynamicLoaderDarwinKernel.cpp.
References lldb::eByteOrderBig, lldb::eByteOrderInvalid, lldb::eByteOrderLittle, and lldb_private::endian::InlHostByteOrder().
|
static |
Definition at line 1626 of file DynamicLoaderDarwinKernel.cpp.
Referenced by Initialize().
|
inlineoverridevirtual |
Implements lldb_private::PluginInterface.
Definition at line 61 of file DynamicLoaderDarwinKernel.h.
References GetPluginNameStatic().
|
inlinestatic |
Definition at line 36 of file DynamicLoaderDarwinKernel.h.
Referenced by ProcessKDP::DoConnectRemote(), GetPluginName(), Initialize(), ProcessMachCore::LoadBinariesAndSetDYLD(), and ProcessMachCore::LoadBinariesViaMetadata().
|
overridevirtual |
Provides a plan to step through the dynamic loader trampoline for the current state of thread.
[in] | stop_others | Whether the plan should be set to stop other threads. |
Implements lldb_private::DynamicLoader.
Definition at line 1589 of file DynamicLoaderDarwinKernel.cpp.
References lldb_private::GetLog(), and LLDB_LOGF.
|
static |
Definition at line 1604 of file DynamicLoaderDarwinKernel.cpp.
References CreateInstance(), DebuggerInitialize(), GetPluginDescriptionStatic(), GetPluginNameStatic(), and lldb_private::PluginManager::RegisterPlugin().
|
protected |
Definition at line 1012 of file DynamicLoaderDarwinKernel.cpp.
References lldb_private::ConstString::AsCString(), DynamicLoaderDarwinKernel::KextImageInfo::Clear(), error(), lldb::eSymbolTypeData, lldb_private::Symbol::GetAddress(), lldb_private::ObjectFile::GetBaseAddress(), lldb_private::Process::GetCodeAddressMask(), lldb_private::Process::GetDataAddressMask(), lldb_private::Target::GetExecutableModule(), lldb_private::Address::GetFileAddress(), DynamicLoaderDarwinKernel::KextImageInfo::GetLoadAddress(), lldb_private::Address::GetLoadAddress(), DynamicLoaderDarwinKernel::KextImageInfo::GetModule(), lldb_private::Process::GetStopID(), lldb_private::Process::GetTarget(), is_kernel(), DynamicLoaderDarwinKernel::KextImageInfo::IsLoaded(), lldb_private::Address::IsValid(), LLDB_INVALID_ADDRESS, DynamicLoaderDarwinKernel::KextImageInfo::LoadImageAtFileAddress(), DynamicLoaderDarwinKernel::KextImageInfo::LoadImageUsingMemoryModule(), lldb_private::DynamicLoader::LoadOperatingSystemPlugin(), m_kernel, m_kernel_load_address, m_kext_summary_header_ptr_addr, lldb_private::DynamicLoader::m_process, ReadAllKextSummaries(), lldb_private::Target::ReadUnsignedIntegerFromMemory(), lldb_private::Process::SetCodeAddressMask(), lldb_private::Process::SetDataAddressMask(), DynamicLoaderDarwinKernel::KextImageInfo::SetIsKernel(), DynamicLoaderDarwinKernel::KextImageInfo::SetLoadAddress(), DynamicLoaderDarwinKernel::KextImageInfo::SetModule(), DynamicLoaderDarwinKernel::KextImageInfo::SetName(), and DynamicLoaderDarwinKernel::KextImageInfo::SetProcessStopId().
Referenced by UpdateIfNeeded().
|
privatedelete |
|
protected |
Definition at line 1233 of file DynamicLoaderDarwinKernel.cpp.
References lldb_private::ModuleList::AppendIfNeeded(), DynamicLoaderDarwinKernel::KextImageInfo::Clear(), lldb_private::Stream::Flush(), lldb_private::Target::GetDebugger(), GetGlobalProperties(), DynamicLoaderDarwinKernel::KextImageInfo::GetLoadAddress(), DynamicLoaderDarwinKernelProperties::GetLoadKexts(), lldb_private::GetLog(), DynamicLoaderDarwinKernel::KextImageInfo::GetModule(), GetName(), lldb_private::Debugger::GetOutputStream(), DynamicLoaderDarwinKernel::KextImageInfo::GetProcessStopId(), lldb_private::Process::GetStopID(), lldb_private::Process::GetTarget(), DynamicLoaderDarwinKernel::KextImageInfo::GetUUID(), DynamicLoaderDarwinKernel::KextImageInfo::IsKernel(), lldb_private::UUID::IsValid(), LLDB_INVALID_ADDRESS, LLDB_LOGF, DynamicLoaderDarwinKernel::KextImageInfo::LoadImageAtFileAddress(), DynamicLoaderDarwinKernel::KextImageInfo::LoadImageUsingMemoryModule(), m_kernel, m_known_kexts, m_mutex, lldb_private::DynamicLoader::m_process, lldb_private::Target::ModulesDidLoad(), lldb_private::Target::ModulesDidUnload(), lldb_private::Stream::Printf(), and ReadKextSummaries().
Referenced by ReadAllKextSummaries().
|
protected |
Definition at line 1529 of file DynamicLoaderDarwinKernel.cpp.
References Clear(), DEBUG_PRINTF, lldb_private::Process::GetState(), lldb_private::DynamicLoader::m_process, and lldb_private::StateAsCString().
Referenced by DidAttach(), and DidLaunch().
|
protected |
Definition at line 1561 of file DynamicLoaderDarwinKernel.cpp.
References Clear(), DEBUG_PRINTF, lldb::eStateAttaching, lldb::eStateConnected, lldb::eStateCrashed, lldb::eStateDetached, lldb::eStateExited, lldb::eStateInvalid, lldb::eStateLaunching, lldb::eStateRunning, lldb::eStateStepping, lldb::eStateStopped, lldb::eStateSuspended, lldb::eStateUnloaded, lldb_private::StateAsCString(), and UpdateIfNeeded().
|
protected |
Definition at line 1508 of file DynamicLoaderDarwinKernel.cpp.
References DynamicLoaderDarwinKernel::OSKextLoadedKextSummaryHeader::entry_count, DynamicLoaderDarwinKernel::OSKextLoadedKextSummaryHeader::entry_size, lldb_private::Address::GetFileAddress(), LLDB_LOGF, m_kext_summary_header, m_kext_summary_header_addr, m_known_kexts, m_mutex, lldb_private::Log::PutCString(), PutToLog(), and DynamicLoaderDarwinKernel::OSKextLoadedKextSummaryHeader::version.
Referenced by BreakpointHit(), and PutToLog().
|
protected |
Definition at line 1477 of file DynamicLoaderDarwinKernel.cpp.
References DynamicLoaderDarwinKernel::OSKextLoadedKextSummaryHeader::entry_count, DynamicLoaderDarwinKernel::OSKextLoadedKextSummaryHeader::GetSize(), lldb_private::Address::IsValid(), m_kext_summary_header, m_kext_summary_header_addr, m_known_kexts, m_mutex, ParseKextSummaries(), ReadKextSummaryHeader(), and lldb_private::Address::Slide().
Referenced by BreakpointHit(), and LoadKernelModuleIfNeeded().
|
protected |
Definition at line 1434 of file DynamicLoaderDarwinKernel.cpp.
References DynamicLoaderDarwinKernel::OSKextLoadedKextSummaryHeader::entry_size, error(), DynamicLoaderDarwinKernel::KextImageInfo::GetAddressByteSize(), DynamicLoaderDarwinKernel::KextImageInfo::GetByteOrder(), lldb_private::WritableDataBuffer::GetBytes(), lldb_private::DataBufferHeap::GetByteSize(), lldb_private::DataExtractor::GetData(), lldb_private::Process::GetTarget(), lldb_private::DataExtractor::GetU64(), KERNEL_MODULE_MAX_NAME, m_kernel, m_kext_summary_header, lldb_private::DynamicLoader::m_process, lldb_private::Target::ReadMemory(), and lldb_private::DataExtractor::ValidOffsetForDataOfSize().
Referenced by ParseKextSummaries().
|
protected |
Definition at line 1151 of file DynamicLoaderDarwinKernel.cpp.
References lldb_private::Address::Clear(), DynamicLoaderDarwinKernel::OSKextLoadedKextSummaryHeader::entry_count, DynamicLoaderDarwinKernel::OSKextLoadedKextSummaryHeader::entry_size, error(), DynamicLoaderDarwinKernel::KextImageInfo::GetAddressByteSize(), DynamicLoaderDarwinKernel::KextImageInfo::GetByteOrder(), lldb_private::Target::GetDebugger(), lldb_private::Address::GetFileAddress(), lldb_private::Debugger::GetOutputStream(), lldb_private::Process::GetTarget(), lldb_private::DataExtractor::GetU32(), lldb_private::Address::IsValid(), KERNEL_MODULE_ENTRY_SIZE_VERSION_1, m_kernel, m_kext_summary_header, m_kext_summary_header_addr, m_kext_summary_header_ptr_addr, m_mutex, lldb_private::DynamicLoader::m_process, lldb_private::Stream::Printf(), lldb_private::Target::ReadMemory(), lldb_private::Target::ReadPointerFromMemory(), and DynamicLoaderDarwinKernel::OSKextLoadedKextSummaryHeader::version.
Referenced by ReadAllKextSummaries().
|
staticprotected |
Definition at line 391 of file DynamicLoaderDarwinKernel.cpp.
References error(), and lldb_private::Process::ReadMemory().
Referenced by CheckForKernelImageAtAddress(), and DynamicLoaderDarwinKernel::KextImageInfo::ReadMemoryModule().
|
protected |
|
static |
Definition at line 196 of file DynamicLoaderDarwinKernel.cpp.
References lldb_private::Process::GetImageInfoAddress(), LLDB_INVALID_ADDRESS, SearchForKernelAtSameLoadAddr(), SearchForKernelNearPC(), SearchForKernelViaExhaustiveSearch(), and SearchForKernelWithDebugHints().
Referenced by CreateInstance(), and ProcessMachCore::LoadBinariesViaExhaustiveSearch().
|
staticprotected |
Definition at line 214 of file DynamicLoaderDarwinKernel.cpp.
References CheckForKernelImageAtAddress(), lldb_private::ObjectFile::GetBaseAddress(), lldb_private::Target::GetExecutableModulePointer(), lldb_private::Address::GetFileAddress(), lldb_private::Module::GetObjectFile(), lldb_private::Process::GetTarget(), lldb_private::Module::GetUUID(), is_kernel(), lldb_private::Address::IsValid(), and LLDB_INVALID_ADDRESS.
Referenced by SearchForDarwinKernel().
|
staticprotected |
Definition at line 289 of file DynamicLoaderDarwinKernel.cpp.
References CheckForKernelImageAtAddress(), eKASLRScanLowgloAddresses, eKASLRScanNone, lldb_private::ArchSpec::GetAddressByteSize(), lldb_private::Target::GetArchitecture(), GetGlobalProperties(), lldb_private::ThreadList::GetSelectedThread(), lldb_private::Process::GetTarget(), lldb_private::Process::GetThreadList(), lldb_private::UUID::IsValid(), LLDB_INVALID_ADDRESS, and pc.
Referenced by SearchForDarwinKernel().
|
staticprotected |
Definition at line 346 of file DynamicLoaderDarwinKernel.cpp.
References CheckForKernelImageAtAddress(), eKASLRScanExhaustiveScan, lldb_private::ArchSpec::GetAddressByteSize(), lldb_private::Target::GetArchitecture(), GetGlobalProperties(), lldb_private::Process::GetTarget(), LLDB_INVALID_ADDRESS, UINT32_MAX, and UINT64_MAX.
Referenced by SearchForDarwinKernel().
|
staticprotected |
Definition at line 237 of file DynamicLoaderDarwinKernel.cpp.
References CheckForKernelImageAtAddress(), eKASLRScanNone, lldb_private::Process::GetAddressByteSize(), lldb_private::Process::GetByteOrder(), GetGlobalProperties(), lldb_private::DataExtractor::GetU32(), lldb_private::DataExtractor::GetU64(), LLDB_INVALID_ADDRESS, and lldb_private::Process::ReadMemoryFromInferior().
Referenced by SearchForDarwinKernel().
|
protected |
Definition at line 1536 of file DynamicLoaderDarwinKernel.cpp.
References lldb_private::FileSpecList::Append(), BreakpointHitCallback(), lldb_private::Target::CreateBreakpoint(), DEBUG_PRINTF, lldb::eLanguageTypeUnknown, lldb_private::eLazyBoolNo, lldb_private::Stoppoint::GetID(), DynamicLoaderDarwinKernel::KextImageInfo::GetModule(), lldb_private::Process::GetState(), lldb_private::Process::GetTarget(), LLDB_INVALID_BREAK_ID, m_break_id, m_kernel, lldb_private::DynamicLoader::m_process, lldb_private::Breakpoint::SetCallback(), and lldb_private::StateAsCString().
Referenced by UpdateIfNeeded().
|
static |
Definition at line 1610 of file DynamicLoaderDarwinKernel.cpp.
References CreateInstance(), and lldb_private::PluginManager::UnregisterPlugin().
|
protected |
|
protected |
Definition at line 523 of file DynamicLoaderDarwinKernel.cpp.
References LoadKernelModuleIfNeeded(), and SetNotificationBreakpointIfNeeded().
Referenced by DidAttach(), DidLaunch(), and PrivateProcessStateChanged().
|
protected |
|
protected |
Definition at line 290 of file DynamicLoaderDarwinKernel.h.
Referenced by Clear(), and SetNotificationBreakpointIfNeeded().
|
protected |
Definition at line 283 of file DynamicLoaderDarwinKernel.h.
Referenced by Clear(), GetAddrByteSize(), LoadKernelModuleIfNeeded(), ParseKextSummaries(), ReadKextSummaries(), ReadKextSummaryHeader(), and SetNotificationBreakpointIfNeeded().
|
protected |
Definition at line 282 of file DynamicLoaderDarwinKernel.h.
Referenced by LoadKernelModuleIfNeeded().
|
protected |
Definition at line 287 of file DynamicLoaderDarwinKernel.h.
Referenced by PutToLog(), ReadAllKextSummaries(), ReadKextSummaries(), and ReadKextSummaryHeader().
|
protected |
Definition at line 286 of file DynamicLoaderDarwinKernel.h.
Referenced by Clear(), PutToLog(), ReadAllKextSummaries(), and ReadKextSummaryHeader().
|
protected |
Definition at line 285 of file DynamicLoaderDarwinKernel.h.
Referenced by Clear(), LoadKernelModuleIfNeeded(), and ReadKextSummaryHeader().
|
protected |
Definition at line 288 of file DynamicLoaderDarwinKernel.h.
Referenced by Clear(), ParseKextSummaries(), PutToLog(), and ReadAllKextSummaries().
|
mutableprotected |
Definition at line 289 of file DynamicLoaderDarwinKernel.h.
Referenced by Clear(), ParseKextSummaries(), PutToLog(), ReadAllKextSummaries(), and ReadKextSummaryHeader().