LLDB mainline
|
#include <SBMemoryRegionInfo.h>
Public Member Functions | |
SBMemoryRegionInfo () | |
SBMemoryRegionInfo (const lldb::SBMemoryRegionInfo &rhs) | |
SBMemoryRegionInfo (const char *name, lldb::addr_t begin, lldb::addr_t end, uint32_t permissions, bool mapped, bool stack_memory=false) | |
~SBMemoryRegionInfo () | |
const lldb::SBMemoryRegionInfo & | operator= (const lldb::SBMemoryRegionInfo &rhs) |
void | Clear () |
lldb::addr_t | GetRegionBase () |
Get the base address of this memory range. | |
lldb::addr_t | GetRegionEnd () |
Get the end address of this memory range. | |
bool | IsReadable () |
Check if this memory address is marked readable to the process. | |
bool | IsWritable () |
Check if this memory address is marked writable to the process. | |
bool | IsExecutable () |
Check if this memory address is marked executable to the process. | |
bool | IsMapped () |
Check if this memory address is mapped into the process address space. | |
const char * | GetName () |
Returns the name of the memory region mapped at the given address. | |
bool | HasDirtyMemoryPageList () |
Returns whether this memory region has a list of memory pages that have been modified – that are dirty. | |
uint32_t | GetNumDirtyPages () |
Returns the number of modified pages – dirty pages – in this memory region. | |
addr_t | GetDirtyPageAddressAtIndex (uint32_t idx) |
Returns the address of a memory page that has been modified in this region. | |
int | GetPageSize () |
Returns the size of a memory page in this region. | |
bool | operator== (const lldb::SBMemoryRegionInfo &rhs) const |
bool | operator!= (const lldb::SBMemoryRegionInfo &rhs) const |
bool | GetDescription (lldb::SBStream &description) |
Private Member Functions | |
lldb_private::MemoryRegionInfo & | ref () |
const lldb_private::MemoryRegionInfo & | ref () const |
SBMemoryRegionInfo (const lldb_private::MemoryRegionInfo *lldb_object_ptr) | |
Private Attributes | |
lldb::MemoryRegionInfoUP | m_opaque_up |
Friends | |
class | SBProcess |
class | SBMemoryRegionInfoList |
class | SBSaveCoreOptions |
class | lldb_private::ScriptInterpreter |
Definition at line 17 of file SBMemoryRegionInfo.h.
SBMemoryRegionInfo::SBMemoryRegionInfo | ( | ) |
Definition at line 22 of file SBMemoryRegionInfo.cpp.
References LLDB_INSTRUMENT_VA.
SBMemoryRegionInfo::SBMemoryRegionInfo | ( | const lldb::SBMemoryRegionInfo & | rhs | ) |
Definition at line 47 of file SBMemoryRegionInfo.cpp.
References lldb_private::clone(), LLDB_INSTRUMENT_VA, and m_opaque_up.
SBMemoryRegionInfo::SBMemoryRegionInfo | ( | const char * | name, |
lldb::addr_t | begin, | ||
lldb::addr_t | end, | ||
uint32_t | permissions, | ||
bool | mapped, | ||
bool | stack_memory = false |
||
) |
Definition at line 26 of file SBMemoryRegionInfo.cpp.
References lldb_private::MemoryRegionInfo::eNo, lldb_private::MemoryRegionInfo::eYes, LLDB_INSTRUMENT_VA, and m_opaque_up.
|
default |
References lldb::operator==().
|
private |
Definition at line 41 of file SBMemoryRegionInfo.cpp.
References ref().
void SBMemoryRegionInfo::Clear | ( | ) |
Definition at line 63 of file SBMemoryRegionInfo.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_up.
bool SBMemoryRegionInfo::GetDescription | ( | lldb::SBStream & | description | ) |
Definition at line 163 of file SBMemoryRegionInfo.cpp.
References LLDB_INSTRUMENT_VA, m_opaque_up, lldb_private::Stream::Printf(), and lldb::SBStream::ref().
addr_t SBMemoryRegionInfo::GetDirtyPageAddressAtIndex | ( | uint32_t | idx | ) |
Returns the address of a memory page that has been modified in this region.
Definition at line 145 of file SBMemoryRegionInfo.cpp.
References LLDB_INSTRUMENT_VA, LLDB_INVALID_ADDRESS, and m_opaque_up.
const char * SBMemoryRegionInfo::GetName | ( | ) |
Returns the name of the memory region mapped at the given address.
Definition at line 121 of file SBMemoryRegionInfo.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_up.
uint32_t SBMemoryRegionInfo::GetNumDirtyPages | ( | ) |
Returns the number of modified pages – dirty pages – in this memory region.
Definition at line 133 of file SBMemoryRegionInfo.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_up.
int SBMemoryRegionInfo::GetPageSize | ( | ) |
Returns the size of a memory page in this region.
Definition at line 157 of file SBMemoryRegionInfo.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_up.
lldb::addr_t SBMemoryRegionInfo::GetRegionBase | ( | ) |
Get the base address of this memory range.
Definition at line 85 of file SBMemoryRegionInfo.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_up.
lldb::addr_t SBMemoryRegionInfo::GetRegionEnd | ( | ) |
Get the end address of this memory range.
Definition at line 91 of file SBMemoryRegionInfo.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_up.
bool SBMemoryRegionInfo::HasDirtyMemoryPageList | ( | ) |
Returns whether this memory region has a list of memory pages that have been modified – that are dirty.
Definition at line 127 of file SBMemoryRegionInfo.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_up.
bool SBMemoryRegionInfo::IsExecutable | ( | ) |
Check if this memory address is marked executable to the process.
Definition at line 109 of file SBMemoryRegionInfo.cpp.
References lldb_private::MemoryRegionInfo::eYes, LLDB_INSTRUMENT_VA, and m_opaque_up.
bool SBMemoryRegionInfo::IsMapped | ( | ) |
Check if this memory address is mapped into the process address space.
Definition at line 115 of file SBMemoryRegionInfo.cpp.
References lldb_private::MemoryRegionInfo::eYes, LLDB_INSTRUMENT_VA, and m_opaque_up.
bool SBMemoryRegionInfo::IsReadable | ( | ) |
Check if this memory address is marked readable to the process.
Definition at line 97 of file SBMemoryRegionInfo.cpp.
References lldb_private::MemoryRegionInfo::eYes, LLDB_INSTRUMENT_VA, and m_opaque_up.
bool SBMemoryRegionInfo::IsWritable | ( | ) |
Check if this memory address is marked writable to the process.
Definition at line 103 of file SBMemoryRegionInfo.cpp.
References lldb_private::MemoryRegionInfo::eYes, LLDB_INSTRUMENT_VA, and m_opaque_up.
bool SBMemoryRegionInfo::operator!= | ( | const lldb::SBMemoryRegionInfo & | rhs | ) | const |
Definition at line 75 of file SBMemoryRegionInfo.cpp.
References LLDB_INSTRUMENT_VA, and ref().
const SBMemoryRegionInfo & SBMemoryRegionInfo::operator= | ( | const lldb::SBMemoryRegionInfo & | rhs | ) |
Definition at line 52 of file SBMemoryRegionInfo.cpp.
References lldb_private::clone(), LLDB_INSTRUMENT_VA, and m_opaque_up.
bool SBMemoryRegionInfo::operator== | ( | const lldb::SBMemoryRegionInfo & | rhs | ) | const |
Definition at line 69 of file SBMemoryRegionInfo.cpp.
References LLDB_INSTRUMENT_VA, and ref().
|
private |
Definition at line 81 of file SBMemoryRegionInfo.cpp.
References m_opaque_up.
Referenced by lldb::SBSaveCoreOptions::AddMemoryRegionToSave(), lldb::SBMemoryRegionInfoList::Append(), lldb::SBMemoryRegionInfoList::GetMemoryRegionAtIndex(), lldb::SBMemoryRegionInfoList::GetMemoryRegionContainingAddress(), lldb::SBProcess::GetMemoryRegionInfo(), operator!=(), operator==(), and SBMemoryRegionInfo().
|
private |
Definition at line 83 of file SBMemoryRegionInfo.cpp.
References m_opaque_up.
|
friend |
Definition at line 124 of file SBMemoryRegionInfo.h.
|
friend |
Definition at line 122 of file SBMemoryRegionInfo.h.
|
friend |
Definition at line 121 of file SBMemoryRegionInfo.h.
|
friend |
Definition at line 123 of file SBMemoryRegionInfo.h.
|
private |
Definition at line 133 of file SBMemoryRegionInfo.h.
Referenced by Clear(), GetDescription(), GetDirtyPageAddressAtIndex(), GetName(), GetNumDirtyPages(), lldb_private::ScriptInterpreter::GetOpaqueTypeFromSBMemoryRegionInfo(), GetPageSize(), GetRegionBase(), GetRegionEnd(), HasDirtyMemoryPageList(), IsExecutable(), IsMapped(), IsReadable(), IsWritable(), operator=(), ref(), and SBMemoryRegionInfo().