#include "lldb/Expression/IRMemoryMap.h"
#include "lldb/Target/MemoryRegionInfo.h"
#include "lldb/Target/Process.h"
#include "lldb/Target/Target.h"
#include "lldb/Utility/DataBufferHeap.h"
#include "lldb/Utility/DataExtractor.h"
#include "lldb/Utility/LLDBAssert.h"
#include "lldb/Utility/LLDBLog.h"
#include "lldb/Utility/Log.h"
#include "lldb/Utility/Scalar.h"
#include "lldb/Utility/Status.h"
usingnamespacelldb_private;
IRMemoryMap::IRMemoryMap(lldb::TargetSP target_sp) : … { … }
IRMemoryMap::~IRMemoryMap() { … }
lldb::addr_t IRMemoryMap::FindSpace(size_t size) { … }
IRMemoryMap::AllocationMap::iterator
IRMemoryMap::FindAllocation(lldb::addr_t addr, size_t size) { … }
bool IRMemoryMap::IntersectsAllocation(lldb::addr_t addr, size_t size) const { … }
bool IRMemoryMap::AllocationsIntersect(lldb::addr_t addr1, size_t size1,
lldb::addr_t addr2, size_t size2) { … }
lldb::ByteOrder IRMemoryMap::GetByteOrder() { … }
uint32_t IRMemoryMap::GetAddressByteSize() { … }
ExecutionContextScope *IRMemoryMap::GetBestExecutionContextScope() const { … }
IRMemoryMap::Allocation::Allocation(lldb::addr_t process_alloc,
lldb::addr_t process_start, size_t size,
uint32_t permissions, uint8_t alignment,
AllocationPolicy policy)
: … { … }
lldb::addr_t IRMemoryMap::Malloc(size_t size, uint8_t alignment,
uint32_t permissions, AllocationPolicy policy,
bool zero_memory, Status &error) { … }
void IRMemoryMap::Leak(lldb::addr_t process_address, Status &error) { … }
void IRMemoryMap::Free(lldb::addr_t process_address, Status &error) { … }
bool IRMemoryMap::GetAllocSize(lldb::addr_t address, size_t &size) { … }
void IRMemoryMap::WriteMemory(lldb::addr_t process_address,
const uint8_t *bytes, size_t size,
Status &error) { … }
void IRMemoryMap::WriteScalarToMemory(lldb::addr_t process_address,
Scalar &scalar, size_t size,
Status &error) { … }
void IRMemoryMap::WritePointerToMemory(lldb::addr_t process_address,
lldb::addr_t address, Status &error) { … }
void IRMemoryMap::ReadMemory(uint8_t *bytes, lldb::addr_t process_address,
size_t size, Status &error) { … }
void IRMemoryMap::ReadScalarFromMemory(Scalar &scalar,
lldb::addr_t process_address,
size_t size, Status &error) { … }
void IRMemoryMap::ReadPointerFromMemory(lldb::addr_t *address,
lldb::addr_t process_address,
Status &error) { … }
void IRMemoryMap::GetMemoryData(DataExtractor &extractor,
lldb::addr_t process_address, size_t size,
Status &error) { … }