LLDB mainline
DynamicLoaderDarwinKernel::KextImageInfo Class Reference

#include <DynamicLoaderDarwinKernel.h>

Public Types

typedef std::vector< KextImageInfocollection
typedef collection::iterator iterator
typedef collection::const_iterator const_iterator

Public Member Functions

 KextImageInfo ()
void Clear ()
bool LoadImageAtFileAddress (lldb_private::Process *process)
bool LoadImageUsingMemoryModule (lldb_private::Process *process, lldb_private::Progress *progress=nullptr)
bool IsLoaded ()
void SetLoadAddress (lldb::addr_t load_addr)
lldb::addr_t GetLoadAddress () const
lldb_private::UUID GetUUID () const
void SetUUID (const lldb_private::UUID &uuid)
void SetName (const char *)
std::string GetName () const
void SetModule (lldb::ModuleSP module)
lldb::ModuleSP GetModule ()
bool ReadMemoryModule (lldb_private::Process *process)
bool IsKernel () const
void SetIsKernel (bool is_kernel)
uint64_t GetSize () const
void SetSize (uint64_t size)
uint32_t GetProcessStopId () const
void SetProcessStopId (uint32_t stop_id)
bool operator== (const KextImageInfo &rhs) const
uint32_t GetAddressByteSize ()
lldb::ByteOrder GetByteOrder ()
lldb_private::ArchSpec GetArchitecture () const
void PutToLog (lldb_private::Log *log) const

Private Attributes

std::string m_name
lldb::ModuleSP m_module_sp
lldb::ModuleSP m_memory_module_sp
uint32_t m_load_process_stop_id
lldb_private::UUID m_uuid
lldb::addr_t m_load_address = LLDB_INVALID_ADDRESS
uint64_t m_size = 0
bool m_kernel_image

Detailed Description

Definition at line 125 of file DynamicLoaderDarwinKernel.h.

Member Typedef Documentation

◆ collection

◆ const_iterator

Definition at line 194 of file DynamicLoaderDarwinKernel.h.

◆ iterator

Definition at line 193 of file DynamicLoaderDarwinKernel.h.

Constructor & Destructor Documentation

◆ KextImageInfo()

DynamicLoaderDarwinKernel::KextImageInfo::KextImageInfo ( )
inline

Definition at line 127 of file DynamicLoaderDarwinKernel.h.

References m_memory_module_sp, m_module_sp, m_name, and m_uuid.

Referenced by operator==().

Member Function Documentation

◆ Clear()

void DynamicLoaderDarwinKernel::KextImageInfo::Clear ( )
inline

◆ GetAddressByteSize()

uint32_t DynamicLoaderDarwinKernel::KextImageInfo::GetAddressByteSize ( )

Definition at line 1005 of file DynamicLoaderDarwinKernel.cpp.

References m_memory_module_sp, and m_module_sp.

◆ GetArchitecture()

lldb_private::ArchSpec DynamicLoaderDarwinKernel::KextImageInfo::GetArchitecture ( ) const

Definition at line 1022 of file DynamicLoaderDarwinKernel.cpp.

References m_memory_module_sp, and m_module_sp.

◆ GetByteOrder()

lldb::ByteOrder DynamicLoaderDarwinKernel::KextImageInfo::GetByteOrder ( )

◆ GetLoadAddress()

addr_t DynamicLoaderDarwinKernel::KextImageInfo::GetLoadAddress ( ) const

◆ GetModule()

ModuleSP DynamicLoaderDarwinKernel::KextImageInfo::GetModule ( )

Definition at line 585 of file DynamicLoaderDarwinKernel.cpp.

References m_module_sp.

Referenced by DynamicLoaderDarwinKernel::ParseKextSummaries().

◆ GetName()

std::string DynamicLoaderDarwinKernel::KextImageInfo::GetName ( ) const

Definition at line 628 of file DynamicLoaderDarwinKernel.cpp.

References m_name.

Referenced by operator==().

◆ GetProcessStopId()

uint32_t DynamicLoaderDarwinKernel::KextImageInfo::GetProcessStopId ( ) const

◆ GetSize()

uint64_t DynamicLoaderDarwinKernel::KextImageInfo::GetSize ( ) const

Definition at line 598 of file DynamicLoaderDarwinKernel.cpp.

References m_size.

◆ GetUUID()

UUID DynamicLoaderDarwinKernel::KextImageInfo::GetUUID ( ) const

Definition at line 636 of file DynamicLoaderDarwinKernel.cpp.

References m_uuid.

Referenced by LoadImageUsingMemoryModule(), and operator==().

◆ IsKernel()

bool DynamicLoaderDarwinKernel::KextImageInfo::IsKernel ( ) const

◆ IsLoaded()

bool DynamicLoaderDarwinKernel::KextImageInfo::IsLoaded ( )
inline

◆ LoadImageAtFileAddress()

bool DynamicLoaderDarwinKernel::KextImageInfo::LoadImageAtFileAddress ( lldb_private::Process * process)

◆ LoadImageUsingMemoryModule()

bool DynamicLoaderDarwinKernel::KextImageInfo::LoadImageUsingMemoryModule ( lldb_private::Process * process,
lldb_private::Progress * progress = nullptr )

Definition at line 721 of file DynamicLoaderDarwinKernel.cpp.

References lldb_private::ModuleList::Append(), lldb_private::ModuleList::AppendIfNeeded(), lldb_private::Status::AsCString(), lldb_private::PluginManager::DownloadObjectAndSymbolFile(), lldb_private::DynamicLoader, lldb_private::Status::Fail(), lldb_private::ModuleList::FindModule(), lldb_private::SectionList::FindSectionByName(), lldb_private::ModuleSpec::GetArchitecture(), lldb_private::Target::GetArchitecture(), lldb_private::Debugger::GetAsyncErrorStream(), lldb_private::Debugger::GetAsyncOutputStream(), lldb_private::ObjectFile::GetBaseAddress(), lldb_private::Target::GetDebugger(), lldb_private::TargetProperties::GetExecutableSearchPaths(), lldb_private::Address::GetFileAddress(), lldb_private::Section::GetFileAddress(), lldb_private::ModuleSpec::GetFileSpec(), lldb_private::Target::GetImages(), GetLoadAddress(), lldb_private::GetLog(), GetName(), lldb_private::Target::GetOrCreateModule(), lldb_private::Target::GetPlatform(), lldb_private::SectionList::GetSectionAtIndex(), lldb_private::ObjectFile::GetSectionList(), lldb_private::SectionList::GetSize(), lldb_private::Process::GetStopID(), lldb_private::StreamString::GetString(), lldb_private::Process::GetTarget(), GetUUID(), lldb_private::ModuleSpec::GetUUID(), lldb_private::Progress::Increment(), lldb_private::FileSystem::Instance(), is_kernel(), IsKernel(), IsLoaded(), LLDB_INVALID_ADDRESS, LLDB_LOGF, m_load_address, m_load_process_stop_id, m_memory_module_sp, m_module_sp, m_name, m_uuid, lldb_private::ModuleList::Modules(), lldb_private::Target::ModulesDidLoad(), lldb_private::Stream::PutHex64(), ReadMemoryModule(), lldb_private::ModuleList::Remove(), and lldb_private::Target::SetSectionLoadAddress().

Referenced by DynamicLoaderDarwinKernel::ParseKextSummaries().

◆ operator==()

bool DynamicLoaderDarwinKernel::KextImageInfo::operator== ( const KextImageInfo & rhs) const

◆ PutToLog()

void DynamicLoaderDarwinKernel::KextImageInfo::PutToLog ( lldb_private::Log * log) const

◆ ReadMemoryModule()

◆ SetIsKernel()

void DynamicLoaderDarwinKernel::KextImageInfo::SetIsKernel ( bool is_kernel)

Definition at line 717 of file DynamicLoaderDarwinKernel.cpp.

References is_kernel(), and m_kernel_image.

◆ SetLoadAddress()

void DynamicLoaderDarwinKernel::KextImageInfo::SetLoadAddress ( lldb::addr_t load_addr)

Definition at line 589 of file DynamicLoaderDarwinKernel.cpp.

References m_load_address.

◆ SetModule()

void DynamicLoaderDarwinKernel::KextImageInfo::SetModule ( lldb::ModuleSP module)

Definition at line 580 of file DynamicLoaderDarwinKernel.cpp.

References is_kernel(), m_kernel_image, and m_module_sp.

◆ SetName()

void DynamicLoaderDarwinKernel::KextImageInfo::SetName ( const char * name)

Definition at line 624 of file DynamicLoaderDarwinKernel.cpp.

References m_name.

◆ SetProcessStopId()

void DynamicLoaderDarwinKernel::KextImageInfo::SetProcessStopId ( uint32_t stop_id)

Definition at line 610 of file DynamicLoaderDarwinKernel.cpp.

References m_load_process_stop_id.

◆ SetSize()

void DynamicLoaderDarwinKernel::KextImageInfo::SetSize ( uint64_t size)

Definition at line 602 of file DynamicLoaderDarwinKernel.cpp.

References m_size.

◆ SetUUID()

void DynamicLoaderDarwinKernel::KextImageInfo::SetUUID ( const lldb_private::UUID & uuid)

Definition at line 632 of file DynamicLoaderDarwinKernel.cpp.

References m_uuid.

Member Data Documentation

◆ m_kernel_image

bool DynamicLoaderDarwinKernel::KextImageInfo::m_kernel_image
private
Initial value:
=
false

Definition at line 207 of file DynamicLoaderDarwinKernel.h.

Referenced by IsKernel(), ReadMemoryModule(), SetIsKernel(), and SetModule().

◆ m_load_address

lldb::addr_t DynamicLoaderDarwinKernel::KextImageInfo::m_load_address = LLDB_INVALID_ADDRESS
private

◆ m_load_process_stop_id

uint32_t DynamicLoaderDarwinKernel::KextImageInfo::m_load_process_stop_id
private

◆ m_memory_module_sp

lldb::ModuleSP DynamicLoaderDarwinKernel::KextImageInfo::m_memory_module_sp
private

◆ m_module_sp

lldb::ModuleSP DynamicLoaderDarwinKernel::KextImageInfo::m_module_sp
private

◆ m_name

std::string DynamicLoaderDarwinKernel::KextImageInfo::m_name
private

◆ m_size

uint64_t DynamicLoaderDarwinKernel::KextImageInfo::m_size = 0
private

Definition at line 206 of file DynamicLoaderDarwinKernel.h.

Referenced by Clear(), GetSize(), PutToLog(), and SetSize().

◆ m_uuid

lldb_private::UUID DynamicLoaderDarwinKernel::KextImageInfo::m_uuid
private

The documentation for this class was generated from the following files: