LLDB mainline
|
#include <DynamicLoaderMacOSXDYLD.h>
Classes | |
struct | DYLDAllImageInfos |
Public Member Functions | |
DynamicLoaderMacOSXDYLD (lldb_private::Process *process) | |
~DynamicLoaderMacOSXDYLD () override | |
bool | ProcessDidExec () override |
Called after attaching a process. | |
lldb_private::Status | CanLoadImage () override |
Ask if it is ok to try and load or unload an shared library (image). | |
bool | GetSharedCacheInformation (lldb::addr_t &base_address, lldb_private::UUID &uuid, lldb_private::LazyBool &using_shared_cache, lldb_private::LazyBool &private_shared_cache) override |
Get information about the shared cache for a process, if possible. | |
llvm::StringRef | GetPluginName () override |
bool | IsFullyInitialized () override |
Return whether the dynamic loader is fully initialized and it's safe to call its APIs. | |
Public Member Functions inherited from lldb_private::DynamicLoaderDarwin | |
DynamicLoaderDarwin (lldb_private::Process *process) | |
~DynamicLoaderDarwin () 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. | |
void | FindEquivalentSymbols (lldb_private::Symbol *original_symbol, lldb_private::ModuleList &module_list, lldb_private::SymbolContextList &equivalent_symbols) override |
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. | |
lldb::addr_t | GetThreadLocalData (const lldb::ModuleSP module, const lldb::ThreadSP thread, lldb::addr_t tls_file_addr) override |
Retrieves the per-module TLS block for a given thread. | |
bool | AlwaysRelyOnEHUnwindInfo (lldb_private::SymbolContext &sym_ctx) override |
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 void | DoInitialImageFetch ()=0 |
virtual bool | NeedToDoInitialImageFetch ()=0 |
std::optional< lldb_private::Address > | GetStartAddress () override |
Return the start address in the dynamic loader module. | |
Public Member Functions inherited from lldb_private::DynamicLoader | |
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. | |
virtual std::optional< lldb_private::Address > | GetStartAddress () |
Return the start address in the dynamic loader module. | |
Public Member Functions inherited from lldb_private::PluginInterface | |
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 Public Member Functions inherited from lldb_private::DynamicLoader | |
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. | |
Static Protected Member Functions | |
static bool | NotifyBreakpointHit (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 Protected Member Functions inherited from lldb_private::DynamicLoaderDarwin | |
static bool | UseDYLDSPI (lldb_private::Process *process) |
Protected Attributes | |
lldb::addr_t | m_dyld_all_image_infos_addr |
DYLDAllImageInfos | m_dyld_all_image_infos |
uint32_t | m_dyld_all_image_infos_stop_id |
lldb::user_id_t | m_break_id |
std::recursive_mutex | m_mutex |
bool | m_process_image_addr_is_all_images_infos |
Protected Attributes inherited from lldb_private::DynamicLoaderDarwin | |
lldb::ModuleWP | m_dyld_module_wp |
lldb::ModuleWP | m_libpthread_module_wp |
lldb_private::Address | m_pthread_getspecific_addr |
ThreadIDToTLSMap | m_tid_to_tls_map |
ImageInfo::collection | m_dyld_image_infos |
uint32_t | m_dyld_image_infos_stop_id |
ImageInfo | m_dyld |
std::recursive_mutex | m_mutex |
Protected Attributes inherited from lldb_private::DynamicLoader | |
Process * | m_process |
The process that this dynamic loader plug-in is tracking. | |
Private Member Functions | |
DynamicLoaderMacOSXDYLD (const DynamicLoaderMacOSXDYLD &)=delete | |
const DynamicLoaderMacOSXDYLD & | operator= (const DynamicLoaderMacOSXDYLD &)=delete |
Additional Inherited Members | |
Protected Types inherited from lldb_private::DynamicLoaderDarwin | |
typedef std::map< uint64_t, lldb::addr_t > | PthreadKeyToTLSMap |
typedef std::map< lldb::user_id_t, PthreadKeyToTLSMap > | ThreadIDToTLSMap |
Definition at line 35 of file DynamicLoaderMacOSXDYLD.h.
DynamicLoaderMacOSXDYLD::DynamicLoaderMacOSXDYLD | ( | lldb_private::Process * | process | ) |
Definition at line 99 of file DynamicLoaderMacOSXDYLD.cpp.
|
override |
Definition at line 107 of file DynamicLoaderMacOSXDYLD.cpp.
References lldb_private::Process::GetTarget(), LLDB_BREAK_ID_IS_VALID, m_break_id, lldb_private::DynamicLoader::m_process, and lldb_private::Target::RemoveBreakpointByID().
|
privatedelete |
|
protected |
Definition at line 547 of file DynamicLoaderMacOSXDYLD.cpp.
References lldb_private::DynamicLoaderDarwin::AddModulesUsingImageInfos(), lldb_private::Process::GetLoadedDynamicLibrariesInfos(), lldb_private::GetLog(), lldb_private::DynamicLoaderDarwin::GetMutex(), lldb_private::Process::GetStopID(), lldb_private::DynamicLoaderDarwin::JSONImageInformationIntoImageInfo(), LLDB_LOGF, lldb_private::DynamicLoaderDarwin::m_dyld_image_infos_stop_id, m_mutex, lldb_private::DynamicLoader::m_process, ReadImageInfos(), UpdateImageInfosHeaderAndLoadCommands(), and lldb_private::DynamicLoaderDarwin::UpdateSpecialBinariesFromNewImageInfos().
Referenced by InitializeFromAllImageInfos(), and NotifyBreakpointHit().
|
protected |
Definition at line 1161 of file DynamicLoaderMacOSXDYLD.cpp.
References lldb_private::DynamicLoaderDarwin::GetMutex(), lldb_private::DynamicLoaderDarwin::ImageInfo::header, and lldb_private::DynamicLoaderDarwin::m_dyld.
|
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 1049 of file DynamicLoaderMacOSXDYLD.cpp.
References DynamicLoaderMacOSXDYLD::DYLDAllImageInfos::dylib_info_addr, error(), m_dyld_all_image_infos, and ReadAllImageInfosStructure().
|
overrideprotectedvirtual |
Implements lldb_private::DynamicLoaderDarwin.
Definition at line 176 of file DynamicLoaderMacOSXDYLD.cpp.
References lldb_private::Process::GetTarget(), LLDB_BREAK_ID_IS_VALID, m_break_id, lldb_private::DynamicLoader::m_process, and lldb_private::Target::RemoveBreakpointByID().
|
static |
Definition at line 56 of file DynamicLoaderMacOSXDYLD.cpp.
References lldb_private::ObjectFile::eStrataUser, lldb_private::ObjectFile::GetArchitecture(), lldb_private::Module::GetObjectFile(), lldb_private::ObjectFile::GetStrata(), and lldb_private::ArchSpec::GetTriple().
Referenced by Initialize(), and Terminate().
|
overrideprotectedvirtual |
Implements lldb_private::DynamicLoaderDarwin.
Definition at line 172 of file DynamicLoaderMacOSXDYLD.cpp.
References LLDB_BREAK_ID_IS_VALID, and m_break_id.
|
overrideprotectedvirtual |
Implements lldb_private::DynamicLoaderDarwin.
Definition at line 160 of file DynamicLoaderMacOSXDYLD.cpp.
References DynamicLoaderMacOSXDYLD::DYLDAllImageInfos::Clear(), lldb_private::Process::GetTarget(), LLDB_BREAK_ID_IS_VALID, LLDB_INVALID_ADDRESS, LLDB_INVALID_BREAK_ID, m_break_id, m_dyld_all_image_infos, m_dyld_all_image_infos_addr, m_mutex, lldb_private::DynamicLoader::m_process, and lldb_private::Target::RemoveBreakpointByID().
|
overrideprotectedvirtual |
Implements lldb_private::DynamicLoaderDarwin.
Definition at line 186 of file DynamicLoaderMacOSXDYLD.cpp.
References DynamicLoaderMacOSXDYLD::DYLDAllImageInfos::dyldImageLoadAddress, error(), lldb_private::ArchSpec::GetAddressByteSize(), lldb_private::Module::GetArchitecture(), lldb_private::Target::GetArchitecture(), lldb_private::ArchSpec::GetByteOrder(), lldb_private::Target::GetExecutableModulePointer(), lldb_private::Process::GetImageInfoAddress(), lldb_private::ArchSpec::GetMachine(), lldb_private::Process::GetTarget(), lldb_private::DataExtractor::GetU32(), LLDB_INVALID_ADDRESS, m_dyld_all_image_infos, m_dyld_all_image_infos_addr, lldb_private::DynamicLoader::m_process, m_process_image_addr_is_all_images_infos, ReadAllImageInfosStructure(), ReadDYLDInfoFromMemoryAndSetNotificationCallback(), and lldb_private::Process::ReadMemory().
|
staticprotected |
Definition at line 1179 of file DynamicLoaderMacOSXDYLD.cpp.
References lldb::eByteOrderBig, lldb::eByteOrderInvalid, lldb::eByteOrderLittle, and lldb_private::endian::InlHostByteOrder().
Referenced by ReadImageInfos(), and ReadMachHeader().
|
static |
Definition at line 1156 of file DynamicLoaderMacOSXDYLD.cpp.
Referenced by Initialize().
|
inlineoverridevirtual |
Implements lldb_private::PluginInterface.
Definition at line 67 of file DynamicLoaderMacOSXDYLD.h.
References GetPluginNameStatic().
|
inlinestatic |
Definition at line 46 of file DynamicLoaderMacOSXDYLD.h.
Referenced by ProcessMachCore::CleanupMemoryRegionPermissions(), GetPluginName(), Initialize(), ProcessMachCore::LoadBinariesAndSetDYLD(), and ProcessMachCore::LoadBinariesViaMetadata().
|
overridevirtual |
Get information about the shared cache for a process, if possible.
On some systems (e.g. Darwin based systems), a set of libraries that are common to most processes may be put in a single region of memory and mapped into every process, this is called the shared cache, as a performance optimization.
Many targets will not have the concept of a shared cache.
Depending on how the DynamicLoader gathers information about the shared cache, it may be able to only return basic information - like the UUID of the cache - or it may be able to return additional information about the cache.
[out] | base_address | The base address (load address) of the shared cache. LLDB_INVALID_ADDRESS if it cannot be determined. |
[out] | uuid | The UUID of the shared cache, if it can be determined. If the UUID cannot be fetched, IsValid() will be false. |
[out] | using_shared_cache | If this process is using a shared cache. If unknown, eLazyBoolCalculate is returned. |
[out] | private_shared_cache | A LazyBool indicating whether this process is using a private shared cache. If this information cannot be fetched, eLazyBoolCalculate. |
Reimplemented from lldb_private::DynamicLoader.
Definition at line 1067 of file DynamicLoaderMacOSXDYLD.cpp.
References lldb_private::UUID::Clear(), lldb_private::eLazyBoolCalculate, lldb_private::eLazyBoolYes, error(), lldb_private::Process::GetAddressByteSize(), lldb_private::Process::GetImageInfoAddress(), lldb_private::UUID::IsValid(), LLDB_INVALID_ADDRESS, lldb_private::DynamicLoader::m_process, lldb_private::Process::ReadMemory(), and lldb_private::Process::ReadUnsignedIntegerFromMemory().
|
static |
Definition at line 1145 of file DynamicLoaderMacOSXDYLD.cpp.
References CreateInstance(), GetPluginDescriptionStatic(), GetPluginNameStatic(), DynamicLoaderMacOS::Initialize(), and lldb_private::PluginManager::RegisterPlugin().
|
protected |
Definition at line 717 of file DynamicLoaderMacOSXDYLD.cpp.
References AddModulesUsingImageInfosAddress(), lldb_private::ModuleList::Append(), lldb_private::Stream::AsRawOstream(), DEBUG_PRINTF, DynamicLoaderMacOSXDYLD::DYLDAllImageInfos::dylib_info_addr, DynamicLoaderMacOSXDYLD::DYLDAllImageInfos::dylib_info_count, lldb_private::StreamString::GetData(), lldb_private::Target::GetImages(), lldb_private::GetLog(), lldb_private::DynamicLoaderDarwin::GetMutex(), lldb_private::ModuleList::GetSize(), lldb_private::Process::GetStopID(), lldb_private::Process::GetTarget(), LLDB_LOGF, m_dyld_all_image_infos, lldb_private::DynamicLoaderDarwin::m_dyld_image_infos, lldb_private::DynamicLoaderDarwin::m_dyld_image_infos_stop_id, m_mutex, lldb_private::DynamicLoader::m_process, lldb_private::ModuleList::Modules(), ReadAllImageInfosStructure(), and lldb_private::ModuleList::Remove().
Referenced by NotifyBreakpointHit(), and ReadDYLDInfoFromMemoryAndSetNotificationCallback().
|
overridevirtual |
Return whether the dynamic loader is fully initialized and it's safe to call its APIs.
On some systems (e.g. Darwin based systems), lldb will get notified by the dynamic loader before it itself finished initializing and it's not safe to call certain APIs or SPIs.
Reimplemented from lldb_private::DynamicLoader.
Definition at line 1139 of file DynamicLoaderMacOSXDYLD.cpp.
References DynamicLoaderMacOSXDYLD::DYLDAllImageInfos::libSystemInitialized, m_dyld_all_image_infos, and ReadAllImageInfosStructure().
|
overrideprotectedvirtual |
Implements lldb_private::DynamicLoaderDarwin.
Definition at line 316 of file DynamicLoaderMacOSXDYLD.cpp.
References LLDB_INVALID_ADDRESS, and m_dyld_all_image_infos_addr.
|
staticprotected |
Definition at line 324 of file DynamicLoaderMacOSXDYLD.cpp.
References AddModulesUsingImageInfosAddress(), lldb::eBasicTypeVoid, lldb::eEncodingUint, lldb_private::StoppointCallbackContext::exe_ctx_ref, lldb_private::Process::GetABI(), lldb_private::Target::GetArchitecture(), lldb_private::Target::GetDebugger(), lldb_private::ScratchTypeSystemClang::GetForTarget(), lldb_private::UserID::GetID(), lldb_private::CompilerType::GetPointerType(), lldb_private::ExecutionContext::GetProcessPtr(), lldb_private::Value::GetScalar(), lldb_private::DynamicLoader::GetStopWhenImagesChange(), lldb_private::Process::GetTarget(), lldb_private::ExecutionContext::GetThreadRef(), lldb_private::ArchSpec::GetTriple(), lldb_private::ValueList::GetValueAtIndex(), InitializeFromAllImageInfos(), lldb_private::DynamicLoader::m_process, lldb_private::ValueList::PushValue(), RemoveModulesUsingImageInfosAddress(), lldb_private::Debugger::ReportWarning(), lldb_private::Value::SetCompilerType(), lldb_private::Value::SetValueType(), lldb_private::Scalar::UInt(), and lldb_private::Scalar::ULongLong().
Referenced by SetNotificationBreakpoint().
|
privatedelete |
|
protected |
Definition at line 845 of file DynamicLoaderMacOSXDYLD.cpp.
References lldb_private::DynamicLoaderDarwin::ImageInfo::address, lldb_private::DynamicLoaderDarwin::ImageInfo::Clear(), lldb_private::DynamicLoaderDarwin::Segment::fileoff, lldb_private::DynamicLoaderDarwin::Segment::filesize, lldb_private::DataExtractor::GetData(), lldb_private::DataExtractor::GetU32(), lldb_private::DataExtractor::GetU64(), lldb_private::DynamicLoaderDarwin::ImageInfo::header, lldb_private::FileSystem::Instance(), lldb_private::DynamicLoaderDarwin::Segment::maxprot, lldb_private::DynamicLoaderDarwin::Segment::name, lldb_private::DataExtractor::PeekCStr(), lldb_private::FileSystem::Resolve(), lldb_private::DynamicLoaderDarwin::ImageInfo::segments, lldb_private::FileSpec::SetFile(), lldb_private::ConstString::SetTrimmedCStringWithLength(), lldb_private::DynamicLoaderDarwin::ImageInfo::slide, lldb_private::DynamicLoaderDarwin::ImageInfo::uuid, lldb_private::DataExtractor::ValidOffsetForDataOfSize(), lldb_private::DynamicLoaderDarwin::Segment::vmaddr, and lldb_private::DynamicLoaderDarwin::Segment::vmsize.
Referenced by ReadDYLDInfoFromMemoryAndSetNotificationCallback(), and UpdateImageInfosHeaderAndLoadCommands().
|
overridevirtual |
Called after attaching a process.
Allow DynamicLoader plug-ins to execute some code after attaching to a process.
Reimplemented from lldb_private::DynamicLoader.
Definition at line 112 of file DynamicLoaderMacOSXDYLD.cpp.
References lldb_private::DynamicLoaderDarwin::ImageInfo::address, lldb_private::Address::Clear(), lldb_private::Process::GetImageInfoAddress(), lldb_private::DynamicLoaderDarwin::GetMutex(), lldb_private::Symbol::GetName(), lldb_private::ThreadList::GetSize(), lldb_private::ThreadList::GetThreadAtIndex(), lldb_private::Process::GetThreadList(), lldb_private::DynamicLoaderDarwin::m_dyld, m_dyld_all_image_infos_addr, lldb_private::DynamicLoaderDarwin::m_libpthread_module_wp, lldb_private::DynamicLoader::m_process, m_process_image_addr_is_all_images_infos, and lldb_private::DynamicLoaderDarwin::m_pthread_getspecific_addr.
|
protected |
Definition at line 992 of file DynamicLoaderMacOSXDYLD.cpp.
References DynamicLoaderMacOSXDYLD::DYLDAllImageInfos::dylib_info_addr, DynamicLoaderMacOSXDYLD::DYLDAllImageInfos::dylib_info_count, lldb_private::DynamicLoaderDarwin::GetMutex(), LLDB_LOGF, m_dyld_all_image_infos, lldb_private::DynamicLoaderDarwin::m_dyld_image_infos, m_mutex, DynamicLoaderMacOSXDYLD::DYLDAllImageInfos::notification, lldb_private::Log::PutCString(), PutToLog(), and DynamicLoaderMacOSXDYLD::DYLDAllImageInfos::version.
Referenced by PutToLog().
|
protected |
Definition at line 426 of file DynamicLoaderMacOSXDYLD.cpp.
References DynamicLoaderMacOSXDYLD::DYLDAllImageInfos::Clear(), DynamicLoaderMacOSXDYLD::DYLDAllImageInfos::dyldImageLoadAddress, DynamicLoaderMacOSXDYLD::DYLDAllImageInfos::dylib_info_addr, DynamicLoaderMacOSXDYLD::DYLDAllImageInfos::dylib_info_count, lldb::eByteOrderBig, lldb::eByteOrderLittle, error(), lldb_private::DataExtractor::GetAddress(), lldb_private::ArchSpec::GetAddressByteSize(), lldb_private::Target::GetArchitecture(), lldb_private::ArchSpec::GetByteOrder(), lldb_private::Process::GetStopID(), lldb_private::Process::GetTarget(), lldb_private::DataExtractor::GetU32(), lldb_private::DataExtractor::GetU8(), DynamicLoaderMacOSXDYLD::DYLDAllImageInfos::libSystemInitialized, LLDB_INVALID_ADDRESS, m_dyld_all_image_infos, m_dyld_all_image_infos_addr, m_dyld_all_image_infos_stop_id, m_mutex, lldb_private::DynamicLoader::m_process, DynamicLoaderMacOSXDYLD::DYLDAllImageInfos::notification, DynamicLoaderMacOSXDYLD::DYLDAllImageInfos::processDetachedFromSharedRegion, lldb_private::Process::ReadMemory(), lldb_private::DataExtractor::SetByteOrder(), UNUSED_IF_ASSERT_DISABLED, and DynamicLoaderMacOSXDYLD::DYLDAllImageInfos::version.
Referenced by CanLoadImage(), DoInitialImageFetch(), InitializeFromAllImageInfos(), and IsFullyInitialized().
|
protected |
unique!
Definition at line 250 of file DynamicLoaderMacOSXDYLD.cpp.
References lldb_private::DynamicLoaderDarwin::ImageInfo::address, lldb_private::ModuleList::Append(), lldb_private::ModuleList::AppendIfNeeded(), lldb::eSymbolTypeData, lldb_private::DynamicLoaderDarwin::ImageInfo::file_spec, lldb_private::DynamicLoaderDarwin::GetDYLDModule(), lldb_private::Target::GetImages(), lldb_private::Address::GetLoadAddress(), lldb_private::Symbol::GetLoadAddress(), lldb_private::DynamicLoaderDarwin::GetMutex(), lldb_private::Process::GetTarget(), lldb_private::DynamicLoaderDarwin::ImageInfo::header, InitializeFromAllImageInfos(), LLDB_INVALID_ADDRESS, lldb_private::DynamicLoaderDarwin::m_dyld, m_dyld_all_image_infos_addr, lldb_private::DynamicLoader::m_process, lldb_private::Target::ModulesDidLoad(), ParseLoadCommands(), ReadMachHeader(), lldb_private::DynamicLoaderDarwin::SetDYLDModule(), and lldb_private::DynamicLoaderDarwin::UpdateDYLDImageInfoFromNewImageInfo().
Referenced by DoInitialImageFetch().
|
protected |
Definition at line 675 of file DynamicLoaderMacOSXDYLD.cpp.
References error(), lldb_private::DataExtractor::GetAddress(), lldb_private::DynamicLoaderDarwin::ImageInfo::GetAddressByteSize(), GetByteOrderFromMagic(), lldb_private::WritableDataBuffer::GetBytes(), lldb_private::DataBufferHeap::GetByteSize(), lldb_private::DynamicLoaderDarwin::GetMutex(), lldb_private::DynamicLoaderDarwin::ImageInfo::header, lldb_private::DynamicLoaderDarwin::m_dyld, lldb_private::DynamicLoader::m_process, PATH_MAX, lldb_private::Process::ReadCStringFromMemory(), lldb_private::Process::ReadMemory(), and lldb_private::DataExtractor::ValidOffset().
Referenced by AddModulesUsingImageInfosAddress(), and RemoveModulesUsingImageInfosAddress().
|
protected |
Definition at line 777 of file DynamicLoaderMacOSXDYLD.cpp.
References error(), lldb_private::DataExtractor::GetAddressByteSize(), lldb_private::DataExtractor::GetByteOrder(), GetByteOrderFromMagic(), lldb_private::WritableDataBuffer::GetBytes(), lldb_private::DataBufferHeap::GetByteSize(), lldb_private::DataExtractor::GetU32(), lldb_private::endian::InlHostByteOrder(), lldb_private::DynamicLoader::m_process, lldb_private::Process::ReadMemory(), lldb_private::DataExtractor::SetAddressByteSize(), lldb_private::DataExtractor::SetByteOrder(), and lldb_private::DataExtractor::SetData().
Referenced by ReadDYLDInfoFromMemoryAndSetNotificationCallback(), and UpdateImageInfosHeaderAndLoadCommands().
|
protected |
Definition at line 588 of file DynamicLoaderMacOSXDYLD.cpp.
References lldb_private::ModuleList::AppendIfNeeded(), lldb_private::DynamicLoaderDarwin::FindTargetModuleForImageInfo(), lldb_private::Target::GetImages(), lldb_private::GetLog(), lldb_private::DynamicLoaderDarwin::GetMutex(), lldb_private::ModuleList::GetSize(), lldb_private::Process::GetStopID(), lldb_private::Process::GetTarget(), LLDB_LOGF, lldb_private::ModuleList::LogUUIDAndPaths(), lldb_private::DynamicLoaderDarwin::m_dyld_image_infos, lldb_private::DynamicLoaderDarwin::m_dyld_image_infos_stop_id, m_mutex, lldb_private::DynamicLoader::m_process, lldb_private::Log::PutCString(), ReadImageInfos(), lldb_private::ModuleList::Remove(), and lldb_private::DynamicLoaderDarwin::UnloadModuleSections().
Referenced by NotifyBreakpointHit().
|
overrideprotectedvirtual |
Implements lldb_private::DynamicLoaderDarwin.
Definition at line 1014 of file DynamicLoaderMacOSXDYLD.cpp.
References lldb_private::Target::CreateBreakpoint(), DEBUG_PRINTF, lldb_private::DynamicLoaderDarwin::GetDYLDModule(), lldb_private::Stoppoint::GetID(), lldb_private::DynamicLoaderDarwin::GetMutex(), lldb_private::Process::GetState(), lldb_private::Process::GetTarget(), LLDB_INVALID_ADDRESS, LLDB_INVALID_BREAK_ID, m_break_id, lldb_private::DynamicLoaderDarwin::m_dyld, m_dyld_all_image_infos, lldb_private::DynamicLoader::m_process, DynamicLoaderMacOSXDYLD::DYLDAllImageInfos::notification, NotifyBreakpointHit(), lldb_private::Target::ResolveLoadAddress(), lldb_private::Breakpoint::SetBreakpointKind(), lldb_private::Breakpoint::SetCallback(), lldb_private::StateAsCString(), and lldb_private::DynamicLoaderDarwin::UpdateImageLoadAddress().
|
static |
Definition at line 1151 of file DynamicLoaderMacOSXDYLD.cpp.
References CreateInstance(), DynamicLoaderMacOS::Terminate(), and lldb_private::PluginManager::UnregisterPlugin().
|
protected |
Definition at line 934 of file DynamicLoaderMacOSXDYLD.cpp.
References lldb_private::ModuleList::AppendIfNeeded(), lldb_private::eLoadDependentsNo, lldb_private::DynamicLoaderDarwin::FindTargetModuleForImageInfo(), lldb_private::DynamicLoaderDarwin::GetDYLDModule(), lldb_private::Target::GetExecutableModulePointer(), lldb_private::Target::GetImages(), lldb_private::DynamicLoaderDarwin::GetMutex(), lldb_private::Process::GetTarget(), lldb_private::DynamicLoaderDarwin::m_dyld, lldb_private::DynamicLoader::m_process, ParseLoadCommands(), ReadMachHeader(), lldb_private::Target::SetExecutableModule(), UINT32_MAX, and lldb_private::DynamicLoaderDarwin::UpdateImageLoadAddress().
Referenced by AddModulesUsingImageInfosAddress().
|
protected |
Definition at line 162 of file DynamicLoaderMacOSXDYLD.h.
Referenced by ClearNotificationBreakpoint(), DidSetNotificationBreakpoint(), DoClear(), SetNotificationBreakpoint(), and ~DynamicLoaderMacOSXDYLD().
|
protected |
Definition at line 160 of file DynamicLoaderMacOSXDYLD.h.
Referenced by CanLoadImage(), DoClear(), DoInitialImageFetch(), InitializeFromAllImageInfos(), IsFullyInitialized(), PutToLog(), ReadAllImageInfosStructure(), and SetNotificationBreakpoint().
|
protected |
Definition at line 159 of file DynamicLoaderMacOSXDYLD.h.
Referenced by DoClear(), DoInitialImageFetch(), NeedToDoInitialImageFetch(), ProcessDidExec(), ReadAllImageInfosStructure(), and ReadDYLDInfoFromMemoryAndSetNotificationCallback().
|
protected |
Definition at line 161 of file DynamicLoaderMacOSXDYLD.h.
Referenced by ReadAllImageInfosStructure().
|
mutableprotected |
Definition at line 163 of file DynamicLoaderMacOSXDYLD.h.
Referenced by AddModulesUsingImageInfosAddress(), DoClear(), InitializeFromAllImageInfos(), PutToLog(), ReadAllImageInfosStructure(), and RemoveModulesUsingImageInfosAddress().
|
protected |
Definition at line 164 of file DynamicLoaderMacOSXDYLD.h.
Referenced by DoInitialImageFetch(), and ProcessDidExec().