LLDB mainline
|
#include <DynamicLoaderFreeBSDKernel.h>
Public Types | |
using | collection_type = std::vector< KModImageInfo > |
Public Member Functions | |
KModImageInfo () | |
void | Clear () |
void | SetLoadAddress (lldb::addr_t load_address) |
lldb::addr_t | GetLoadAddress () const |
void | SetUUID (const lldb_private::UUID uuid) |
lldb_private::UUID | GetUUID () const |
void | SetName (const char *name) |
std::string | GetName () const |
void | SetPath (const char *path) |
std::string | GetPath () const |
void | SetModule (lldb::ModuleSP module) |
lldb::ModuleSP | GetModule () |
void | SetIsKernel (bool is_kernel) |
bool | IsKernel () const |
void | SetStopID (uint32_t stop_id) |
uint32_t | GetStopID () |
bool | IsLoaded () const |
bool | ReadMemoryModule (lldb_private::Process *process) |
bool | LoadImageUsingMemoryModule (lldb_private::Process *process) |
bool | LoadImageUsingFileAddress (lldb_private::Process *process) |
Private Attributes | |
lldb::ModuleSP | m_module_sp |
lldb::ModuleSP | m_memory_module_sp |
lldb::addr_t | m_load_address = LLDB_INVALID_ADDRESS |
lldb_private::UUID | m_uuid |
bool | m_is_kernel = false |
std::string | m_name |
std::string | m_path |
uint32_t | m_stop_id = UINT32_MAX |
Definition at line 59 of file DynamicLoaderFreeBSDKernel.h.
using DynamicLoaderFreeBSDKernel::KModImageInfo::collection_type = std::vector<KModImageInfo> |
Definition at line 112 of file DynamicLoaderFreeBSDKernel.h.
|
inline |
Definition at line 61 of file DynamicLoaderFreeBSDKernel.h.
|
inline |
Definition at line 64 of file DynamicLoaderFreeBSDKernel.h.
References lldb_private::UUID::Clear(), LLDB_INVALID_ADDRESS, m_load_address, m_memory_module_sp, m_module_sp, m_name, m_path, m_stop_id, m_uuid, and UINT32_MAX.
Referenced by DynamicLoaderFreeBSDKernel::Clear(), and DynamicLoaderFreeBSDKernel::LoadKernelModules().
|
inline |
Definition at line 78 of file DynamicLoaderFreeBSDKernel.h.
References m_load_address.
Referenced by DynamicLoaderFreeBSDKernel::LoadKernelModules().
|
inline |
Definition at line 94 of file DynamicLoaderFreeBSDKernel.h.
References m_module_sp.
Referenced by DynamicLoaderFreeBSDKernel::LoadKernelModules(), and DynamicLoaderFreeBSDKernel::ReadAllKmods().
|
inline |
Definition at line 86 of file DynamicLoaderFreeBSDKernel.h.
References m_name.
Referenced by DynamicLoaderFreeBSDKernel::ReadAllKmods().
|
inline |
Definition at line 90 of file DynamicLoaderFreeBSDKernel.h.
References m_path.
|
inline |
Definition at line 102 of file DynamicLoaderFreeBSDKernel.h.
References m_stop_id.
|
inline |
Definition at line 82 of file DynamicLoaderFreeBSDKernel.h.
References m_uuid.
|
inline |
Definition at line 98 of file DynamicLoaderFreeBSDKernel.h.
References m_is_kernel.
|
inline |
Definition at line 104 of file DynamicLoaderFreeBSDKernel.h.
References m_stop_id, and UINT32_MAX.
Referenced by DynamicLoaderFreeBSDKernel::LoadKernelModules().
bool DynamicLoaderFreeBSDKernel::KModImageInfo::LoadImageUsingFileAddress | ( | lldb_private::Process * | process | ) |
Definition at line 488 of file DynamicLoaderFreeBSDKernel.cpp.
References lldb_private::Process::GetStopID(), and lldb_private::Process::GetTarget().
Referenced by DynamicLoaderFreeBSDKernel::LoadKernelModules().
bool DynamicLoaderFreeBSDKernel::KModImageInfo::LoadImageUsingMemoryModule | ( | lldb_private::Process * | process | ) |
Definition at line 320 of file DynamicLoaderFreeBSDKernel.cpp.
References lldb_private::ModuleList::AppendIfNeeded(), lldb_private::PluginManager::DownloadObjectAndSymbolFile(), error(), lldb_private::ModuleList::FindModule(), lldb_private::SectionList::FindSectionByName(), lldb_private::Stream::Flush(), lldb_private::Target::GetArchitecture(), lldb_private::ObjectFile::GetBaseAddress(), lldb_private::Target::GetDebugger(), lldb_private::Address::GetFileAddress(), lldb_private::Section::GetFileAddress(), lldb_private::ModuleSpec::GetFileSpec(), lldb_private::Target::GetImages(), lldb_private::GetLog(), lldb_private::Target::GetOrCreateModule(), lldb_private::Debugger::GetOutputStream(), lldb_private::SectionList::GetSectionAtIndex(), lldb_private::ObjectFile::GetSectionList(), lldb_private::SectionList::GetSize(), lldb_private::Process::GetStopID(), lldb_private::Process::GetTarget(), lldb_private::FileSystem::Instance(), is_kmod(), is_reloc(), LLDB_INVALID_ADDRESS, LLDB_LOGF, lldb_private::Stream::Printf(), and lldb_private::Target::SetSectionLoadAddress().
Referenced by DynamicLoaderFreeBSDKernel::LoadKernelModules().
bool DynamicLoaderFreeBSDKernel::KModImageInfo::ReadMemoryModule | ( | lldb_private::Process * | process | ) |
Definition at line 264 of file DynamicLoaderFreeBSDKernel.cpp.
References error(), lldb_private::GetLog(), lldb_private::Process::GetTarget(), is_kernel(), lldb_private::UUID::IsValid(), LLDB_INVALID_ADDRESS, LLDB_LOGF, m_is_kernel, m_load_address, m_memory_module_sp, m_name, m_uuid, DynamicLoaderFreeBSDKernel::ReadELFHeader(), lldb_private::Process::ReadMemory(), lldb_private::Process::ReadModuleFromMemory(), and lldb_private::Target::SetArchitecture().
|
inline |
Definition at line 96 of file DynamicLoaderFreeBSDKernel.h.
References is_kernel(), and m_is_kernel.
Referenced by DynamicLoaderFreeBSDKernel::LoadKernelModules().
|
inline |
Definition at line 74 of file DynamicLoaderFreeBSDKernel.h.
References m_load_address.
Referenced by DynamicLoaderFreeBSDKernel::LoadKernelModules(), and DynamicLoaderFreeBSDKernel::ReadAllKmods().
|
inline |
Definition at line 92 of file DynamicLoaderFreeBSDKernel.h.
References m_module_sp.
Referenced by DynamicLoaderFreeBSDKernel::LoadKernelModules().
|
inline |
Definition at line 84 of file DynamicLoaderFreeBSDKernel.h.
References m_name.
Referenced by DynamicLoaderFreeBSDKernel::LoadKernelModules(), and DynamicLoaderFreeBSDKernel::ReadAllKmods().
|
inline |
Definition at line 88 of file DynamicLoaderFreeBSDKernel.h.
References m_path.
Referenced by DynamicLoaderFreeBSDKernel::ReadAllKmods().
|
inline |
Definition at line 100 of file DynamicLoaderFreeBSDKernel.h.
References m_stop_id.
|
inline |
Definition at line 80 of file DynamicLoaderFreeBSDKernel.h.
References m_uuid.
|
private |
Definition at line 119 of file DynamicLoaderFreeBSDKernel.h.
Referenced by IsKernel(), ReadMemoryModule(), and SetIsKernel().
|
private |
Definition at line 117 of file DynamicLoaderFreeBSDKernel.h.
Referenced by Clear(), GetLoadAddress(), ReadMemoryModule(), and SetLoadAddress().
|
private |
Definition at line 116 of file DynamicLoaderFreeBSDKernel.h.
Referenced by Clear(), and ReadMemoryModule().
|
private |
Definition at line 115 of file DynamicLoaderFreeBSDKernel.h.
Referenced by Clear(), GetModule(), and SetModule().
|
private |
Definition at line 120 of file DynamicLoaderFreeBSDKernel.h.
Referenced by Clear(), GetName(), ReadMemoryModule(), and SetName().
|
private |
Definition at line 121 of file DynamicLoaderFreeBSDKernel.h.
|
private |
Definition at line 122 of file DynamicLoaderFreeBSDKernel.h.
Referenced by Clear(), GetStopID(), IsLoaded(), and SetStopID().
|
private |
Definition at line 118 of file DynamicLoaderFreeBSDKernel.h.
Referenced by Clear(), GetUUID(), ReadMemoryModule(), and SetUUID().