Go to the documentation of this file.
20 #ifndef LLDB_SOURCE_PLUGINS_DYNAMICLOADER_MACOSX_DYLD_DYNAMICLOADERMACOSXDYLD_H
21 #define LLDB_SOURCE_PLUGINS_DYNAMICLOADER_MACOSX_DYLD_DYNAMICLOADERMACOSXDYLD_H
95 ImageInfo &dylib_info,
154 bool update_executable);
172 #endif // LLDB_SOURCE_PLUGINS_DYNAMICLOADER_MACOSX_DYLD_DYNAMICLOADERMACOSXDYLD_H
lldb::user_id_t m_break_id
bool ReadImageInfos(lldb::addr_t image_infos_addr, uint32_t image_infos_count, ImageInfo::collection &image_infos)
General Outline: When we hit a breakpoint we need to package up whatever information is needed to eva...
bool ProcessDidExec() override
Called after attaching a process.
std::vector< ImageInfo > collection
bool AddModulesUsingImageInfosAddress(lldb::addr_t image_infos_addr, uint32_t image_infos_count)
void UpdateImageInfosHeaderAndLoadCommands(ImageInfo::collection &image_infos, uint32_t infos_count, bool update_executable)
DynamicLoaderMacOSXDYLD(lldb_private::Process *process)
static lldb::ByteOrder GetByteOrderFromMagic(uint32_t magic)
void PutToLog(lldb_private::Log *log) const
lldb::addr_t notification
lldb::addr_t dylib_info_addr
static bool NotifyBreakpointHit(void *baton, lldb_private::StoppointCallbackContext *context, lldb::user_id_t break_id, lldb::user_id_t break_loc_id)
const DynamicLoaderMacOSXDYLD & operator=(const DynamicLoaderMacOSXDYLD &)=delete
std::recursive_mutex m_mutex
bool InitializeFromAllImageInfos()
lldb::addr_t m_dyld_all_image_infos_addr
void DoInitialImageFetch() override
bool ReadAllImageInfosStructure()
DYLDAllImageInfos()=default
uint32_t ParseLoadCommands(const lldb_private::DataExtractor &data, ImageInfo &dylib_info, lldb_private::FileSpec *lc_id_dylinker)
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.
~DynamicLoaderMacOSXDYLD() override
uint32_t m_dyld_all_image_infos_stop_id
bool processDetachedFromSharedRegion
static llvm::StringRef GetPluginDescriptionStatic()
bool m_process_image_addr_is_all_images_infos
llvm::StringRef GetPluginName() override
DYLDAllImageInfos m_dyld_all_image_infos
bool NeedToDoInitialImageFetch() override
uint32_t dylib_info_count
static lldb_private::DynamicLoader * CreateInstance(lldb_private::Process *process, bool force)
bool libSystemInitialized
#define LLDB_INVALID_ADDRESS
void ClearNotificationBreakpoint() override
bool ReadDYLDInfoFromMemoryAndSetNotificationCallback(lldb::addr_t addr)
static llvm::StringRef GetPluginNameStatic()
lldb::addr_t dyldImageLoadAddress
bool ReadMachHeader(lldb::addr_t addr, llvm::MachO::mach_header *header, lldb_private::DataExtractor *load_command_data)
bool IsFullyInitialized() override
Return whether the dynamic loader is fully initialized and it's safe to call its APIs.
bool DidSetNotificationBreakpoint() override
bool RemoveModulesUsingImageInfosAddress(lldb::addr_t image_infos_addr, uint32_t image_infos_count)
ByteOrder
Byte ordering definitions.
bool SetNotificationBreakpoint() override
lldb_private::Status CanLoadImage() override
Ask if it is ok to try and load or unload an shared library (image).