LLDB  mainline
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
lldb::SBMemoryRegionInfo Class Reference

#include <SBMemoryRegionInfo.h>

Collaboration diagram for lldb::SBMemoryRegionInfo:
Collaboration graph
[legend]

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::SBMemoryRegionInfooperator= (const lldb::SBMemoryRegionInfo &rhs)
 
void Clear ()
 
lldb::addr_t GetRegionBase ()
 Get the base address of this memory range. More...
 
lldb::addr_t GetRegionEnd ()
 Get the end address of this memory range. More...
 
bool IsReadable ()
 Check if this memory address is marked readable to the process. More...
 
bool IsWritable ()
 Check if this memory address is marked writable to the process. More...
 
bool IsExecutable ()
 Check if this memory address is marked executable to the process. More...
 
bool IsMapped ()
 Check if this memory address is mapped into the process address space. More...
 
const char * GetName ()
 Returns the name of the memory region mapped at the given address. More...
 
bool HasDirtyMemoryPageList ()
 Returns whether this memory region has a list of memory pages that have been modified – that are dirty. More...
 
uint32_t GetNumDirtyPages ()
 Returns the number of modified pages – dirty pages – in this memory region. More...
 
addr_t GetDirtyPageAddressAtIndex (uint32_t idx)
 Returns the address of a memory page that has been modified in this region. More...
 
int GetPageSize ()
 Returns the size of a memory page in this region. More...
 
bool operator== (const lldb::SBMemoryRegionInfo &rhs) const
 
bool operator!= (const lldb::SBMemoryRegionInfo &rhs) const
 
bool GetDescription (lldb::SBStream &description)
 

Private Member Functions

lldb_private::MemoryRegionInforef ()
 
const lldb_private::MemoryRegionInforef () const
 
 SBMemoryRegionInfo (const lldb_private::MemoryRegionInfo *lldb_object_ptr)
 

Private Attributes

lldb::MemoryRegionInfoUP m_opaque_up
 

Friends

class SBProcess
 
class SBMemoryRegionInfoList
 
class lldb_private::ScriptInterpreter
 

Detailed Description

Definition at line 17 of file SBMemoryRegionInfo.h.

Constructor & Destructor Documentation

◆ SBMemoryRegionInfo() [1/4]

SBMemoryRegionInfo::SBMemoryRegionInfo ( )

Definition at line 21 of file SBMemoryRegionInfo.cpp.

References LLDB_RECORD_CONSTRUCTOR_NO_ARGS.

◆ SBMemoryRegionInfo() [2/4]

SBMemoryRegionInfo::SBMemoryRegionInfo ( const lldb::SBMemoryRegionInfo rhs)

◆ SBMemoryRegionInfo() [3/4]

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 25 of file SBMemoryRegionInfo.cpp.

References LLDB_RECORD_CONSTRUCTOR, and m_opaque_up.

◆ ~SBMemoryRegionInfo()

SBMemoryRegionInfo::~SBMemoryRegionInfo ( )
default

◆ SBMemoryRegionInfo() [4/4]

SBMemoryRegionInfo::SBMemoryRegionInfo ( const lldb_private::MemoryRegionInfo lldb_object_ptr)
private

Definition at line 43 of file SBMemoryRegionInfo.cpp.

References ref().

Member Function Documentation

◆ Clear()

void SBMemoryRegionInfo::Clear ( )

Definition at line 69 of file SBMemoryRegionInfo.cpp.

References LLDB_RECORD_METHOD_NO_ARGS, and m_opaque_up.

◆ GetDescription()

bool SBMemoryRegionInfo::GetDescription ( lldb::SBStream description)

◆ GetDirtyPageAddressAtIndex()

addr_t SBMemoryRegionInfo::GetDirtyPageAddressAtIndex ( uint32_t  idx)

Returns the address of a memory page that has been modified in this region.

Returns
Returns the address for his dirty page in the list. If this memory region does not have a dirty page list, LLDB_INVALID_ADDRESS is returned.

Definition at line 155 of file SBMemoryRegionInfo.cpp.

References LLDB_INVALID_ADDRESS, LLDB_RECORD_METHOD, and m_opaque_up.

◆ GetName()

const char * SBMemoryRegionInfo::GetName ( )

Returns the name of the memory region mapped at the given address.

Returns
In case of memory mapped files it is the absolute path of the file otherwise it is a name associated with the memory region. If no name can be determined the returns nullptr.

Definition at line 131 of file SBMemoryRegionInfo.cpp.

References LLDB_RECORD_METHOD_NO_ARGS, and m_opaque_up.

◆ GetNumDirtyPages()

uint32_t SBMemoryRegionInfo::GetNumDirtyPages ( )

Returns the number of modified pages – dirty pages – in this memory region.

Returns
The number of dirty page entries will be returned. If there are no dirty pages in this memory region, 0 will be returned. 0 will also be returned if the dirty page list is not available for this memory region – you must use HasDirtyMemoryPageList() to check for that.

Definition at line 143 of file SBMemoryRegionInfo.cpp.

References LLDB_RECORD_METHOD_NO_ARGS, and m_opaque_up.

◆ GetPageSize()

int SBMemoryRegionInfo::GetPageSize ( )

Returns the size of a memory page in this region.

Returns
Returns the size of the memory pages in this region, or 0 if this information is unavailable.

Definition at line 168 of file SBMemoryRegionInfo.cpp.

References LLDB_RECORD_METHOD_NO_ARGS, and m_opaque_up.

◆ GetRegionBase()

lldb::addr_t SBMemoryRegionInfo::GetRegionBase ( )

Get the base address of this memory range.

Returns
The base address of this memory range.

Definition at line 95 of file SBMemoryRegionInfo.cpp.

References LLDB_RECORD_METHOD_NO_ARGS, and m_opaque_up.

◆ GetRegionEnd()

lldb::addr_t SBMemoryRegionInfo::GetRegionEnd ( )

Get the end address of this memory range.

Returns
The base address of this memory range.

Definition at line 101 of file SBMemoryRegionInfo.cpp.

References LLDB_RECORD_METHOD_NO_ARGS, and m_opaque_up.

◆ HasDirtyMemoryPageList()

bool SBMemoryRegionInfo::HasDirtyMemoryPageList ( )

Returns whether this memory region has a list of memory pages that have been modified – that are dirty.

Returns
True if the dirty page list is available.

Definition at line 137 of file SBMemoryRegionInfo.cpp.

References LLDB_RECORD_METHOD_NO_ARGS, and m_opaque_up.

◆ IsExecutable()

bool SBMemoryRegionInfo::IsExecutable ( )

Check if this memory address is marked executable to the process.

Returns
true if this memory address is marked executable

Definition at line 119 of file SBMemoryRegionInfo.cpp.

References LLDB_RECORD_METHOD_NO_ARGS, and m_opaque_up.

◆ IsMapped()

bool SBMemoryRegionInfo::IsMapped ( )

Check if this memory address is mapped into the process address space.

Returns
true if this memory address is in the process address space.

Definition at line 125 of file SBMemoryRegionInfo.cpp.

References LLDB_RECORD_METHOD_NO_ARGS, and m_opaque_up.

◆ IsReadable()

bool SBMemoryRegionInfo::IsReadable ( )

Check if this memory address is marked readable to the process.

Returns
true if this memory address is marked readable

Definition at line 107 of file SBMemoryRegionInfo.cpp.

References LLDB_RECORD_METHOD_NO_ARGS, and m_opaque_up.

◆ IsWritable()

bool SBMemoryRegionInfo::IsWritable ( )

Check if this memory address is marked writable to the process.

Returns
true if this memory address is marked writable

Definition at line 113 of file SBMemoryRegionInfo.cpp.

References LLDB_RECORD_METHOD_NO_ARGS, and m_opaque_up.

◆ operator!=()

bool SBMemoryRegionInfo::operator!= ( const lldb::SBMemoryRegionInfo rhs) const

Definition at line 83 of file SBMemoryRegionInfo.cpp.

References LLDB_RECORD_METHOD_CONST, and ref().

◆ operator=()

const SBMemoryRegionInfo & SBMemoryRegionInfo::operator= ( const lldb::SBMemoryRegionInfo rhs)

◆ operator==()

bool SBMemoryRegionInfo::operator== ( const lldb::SBMemoryRegionInfo rhs) const

Definition at line 75 of file SBMemoryRegionInfo.cpp.

References LLDB_RECORD_METHOD_CONST, and ref().

◆ ref() [1/2]

const MemoryRegionInfo & SBMemoryRegionInfo::ref ( )
private

◆ ref() [2/2]

const lldb_private::MemoryRegionInfo& lldb::SBMemoryRegionInfo::ref ( ) const
private

Friends And Related Function Documentation

◆ lldb_private::ScriptInterpreter

friend class lldb_private::ScriptInterpreter
friend

Definition at line 124 of file SBMemoryRegionInfo.h.

◆ SBMemoryRegionInfoList

friend class SBMemoryRegionInfoList
friend

Definition at line 122 of file SBMemoryRegionInfo.h.

◆ SBProcess

friend class SBProcess
friend

Definition at line 121 of file SBMemoryRegionInfo.h.

Member Data Documentation

◆ m_opaque_up

lldb::MemoryRegionInfoUP lldb::SBMemoryRegionInfo::m_opaque_up
private

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