10#ifndef LLDB_TARGET_MEMORYREGIONINFO_H
11#define LLDB_TARGET_MEMORYREGIONINFO_H
18#include "llvm/Support/FormatProviders.h"
83 uint32_t permissions = 0;
85 permissions |= lldb::ePermissionsReadable;
87 permissions |= lldb::ePermissionsWritable;
89 permissions |= lldb::ePermissionsExecutable;
96 m_read = (permissions & lldb::ePermissionsReadable) ?
eYes :
eNo;
169 const MemoryRegionInfo &Info);
187 raw_ostream &OS, StringRef Options);
A uniqued constant string class.
void SetFlash(OptionalBool val)
OptionalBool GetWritable() const
void SetMapped(OptionalBool val)
OptionalBool GetMapped() const
int GetPageSize() const
Get the target system's VM page size in bytes.
MemoryRegionInfo(RangeType range, OptionalBool read, OptionalBool write, OptionalBool execute, OptionalBool shared, OptionalBool mapped, ConstString name, OptionalBool flash, lldb::offset_t blocksize, OptionalBool memory_tagged, OptionalBool stack_memory)
lldb::offset_t m_blocksize
void SetBlocksize(lldb::offset_t blocksize)
bool operator!=(const MemoryRegionInfo &rhs) const
ConstString GetName() const
void SetMemoryTagged(OptionalBool val)
void SetReadable(OptionalBool val)
void SetExecutable(OptionalBool val)
std::optional< std::vector< lldb::addr_t > > m_dirty_pages
OptionalBool m_is_stack_memory
uint32_t GetLLDBPermissions() const
void SetIsStackMemory(OptionalBool val)
OptionalBool GetMemoryTagged() const
void SetPageSize(int pagesize)
void SetName(const char *name)
bool operator==(const MemoryRegionInfo &rhs) const
Range< lldb::addr_t, lldb::addr_t > RangeType
void SetWritable(OptionalBool val)
lldb::offset_t GetBlocksize() const
OptionalBool IsStackMemory() const
const RangeType & GetRange() const
const std::optional< std::vector< lldb::addr_t > > & GetDirtyPageList() const
Get a vector of target VM pages that are dirty – that have been modified – within this memory region.
void SetDirtyPageList(std::vector< lldb::addr_t > pagelist)
OptionalBool GetReadable() const
OptionalBool GetExecutable() const
OptionalBool m_memory_tagged
void SetLLDBPermissions(uint32_t permissions)
OptionalBool GetShared() const
MemoryRegionInfo()=default
OptionalBool GetFlash() const
void SetShared(OptionalBool val)
A class that represents a running process on the host machine.
Stream & operator<<(Stream &s, const Mangled &obj)
bool operator<(const Address &lhs, const Address &rhs)
BaseType GetRangeBase() const