LLDB mainline
|
#include <Memory.h>
Public Member Functions | |
AllocatedBlock (lldb::addr_t addr, uint32_t byte_size, uint32_t permissions, uint32_t chunk_size) | |
~AllocatedBlock () | |
lldb::addr_t | ReserveBlock (uint32_t size) |
bool | FreeBlock (lldb::addr_t addr) |
lldb::addr_t | GetBaseAddress () const |
uint32_t | GetByteSize () const |
uint32_t | GetPermissions () const |
uint32_t | GetChunkSize () const |
bool | Contains (lldb::addr_t addr) const |
Protected Member Functions | |
uint32_t | TotalChunks () const |
uint32_t | CalculateChunksNeededForSize (uint32_t size) const |
Protected Attributes | |
Range< lldb::addr_t, uint32_t > | m_range |
const uint32_t | m_permissions |
const uint32_t | m_chunk_size |
RangeVector< lldb::addr_t, uint32_t > | m_free_blocks |
RangeVector< lldb::addr_t, uint32_t > | m_reserved_blocks |
AllocatedBlock::AllocatedBlock | ( | lldb::addr_t | addr, |
uint32_t | byte_size, | ||
uint32_t | permissions, | ||
uint32_t | chunk_size | ||
) |
Definition at line 267 of file Memory.cpp.
References lldb_private::RangeVector< B, S, N >::Append(), m_free_blocks, and m_range.
|
default |
|
inlineprotected |
|
inline |
Definition at line 89 of file Memory.h.
References lldb_private::Range< B, S >::Contains(), and m_range.
bool AllocatedBlock::FreeBlock | ( | lldb::addr_t | addr | ) |
Definition at line 330 of file Memory.cpp.
References lldb_private::RangeVector< B, S, N >::FindEntryIndexThatContains(), lldb_private::RangeVector< B, S, N >::GetEntryRef(), lldb_private::GetLog(), lldb_private::RangeVector< B, S, N >::Insert(), LLDB_LOGV, m_free_blocks, m_reserved_blocks, lldb_private::Process, lldb_private::RangeVector< B, S, N >::RemoveEntryAtIndex(), and UINT32_MAX.
|
inline |
Definition at line 81 of file Memory.h.
References lldb_private::Range< B, S >::GetRangeBase(), and m_range.
|
inline |
Definition at line 83 of file Memory.h.
References lldb_private::Range< B, S >::GetByteSize(), and m_range.
Referenced by TotalChunks().
|
inline |
|
inline |
Definition at line 85 of file Memory.h.
References m_permissions.
lldb::addr_t AllocatedBlock::ReserveBlock | ( | uint32_t | size | ) |
Definition at line 279 of file Memory.cpp.
References CalculateChunksNeededForSize(), lldb_private::Range< B, S >::GetByteSize(), lldb_private::RangeVector< B, S, N >::GetEntryRef(), lldb_private::GetLog(), lldb_private::Range< B, S >::GetRangeEnd(), lldb_private::RangeVector< B, S, N >::GetSize(), lldb_private::RangeVector< B, S, N >::Insert(), LLDB_INVALID_ADDRESS, LLDB_LOGV, m_chunk_size, m_free_blocks, m_reserved_blocks, lldb_private::Process, lldb_private::RangeVector< B, S, N >::RemoveEntryAtIndex(), and lldb_private::Range< B, S >::SetByteSize().
|
inlineprotected |
Definition at line 94 of file Memory.h.
References GetByteSize(), and GetChunkSize().
|
protected |
Definition at line 104 of file Memory.h.
Referenced by CalculateChunksNeededForSize(), GetChunkSize(), and ReserveBlock().
|
protected |
Definition at line 106 of file Memory.h.
Referenced by AllocatedBlock(), FreeBlock(), and ReserveBlock().
|
protected |
Definition at line 102 of file Memory.h.
Referenced by GetPermissions().
|
protected |
Definition at line 100 of file Memory.h.
Referenced by AllocatedBlock(), Contains(), GetBaseAddress(), and GetByteSize().
|
protected |
Definition at line 108 of file Memory.h.
Referenced by FreeBlock(), and ReserveBlock().