Go to the documentation of this file.
10 #ifndef LLDB_TARGET_MEMORYREGIONINFO_H
11 #define LLDB_TARGET_MEMORYREGIONINFO_H
17 #include "llvm/ADT/Optional.h"
18 #include "llvm/Support/FormatProviders.h"
79 permissions |= lldb::ePermissionsReadable;
81 permissions |= lldb::ePermissionsWritable;
83 permissions |= lldb::ePermissionsExecutable;
90 m_read = (permissions & lldb::ePermissionsReadable) ?
eYes :
eNo;
160 llvm::raw_ostream &
operator<<(llvm::raw_ostream &OS,
161 const MemoryRegionInfo &Info);
166 using std::vector<lldb_private::MemoryRegionInfo>::vector;
179 raw_ostream &OS, StringRef Options);
183 #endif // LLDB_TARGET_MEMORYREGIONINFO_H
BaseType GetRangeBase() const
llvm::Optional< std::vector< lldb::addr_t > > m_dirty_pages
void SetBlocksize(lldb::offset_t blocksize)
void SetName(const char *name)
lldb::offset_t m_blocksize
uint32_t GetLLDBPermissions() const
OptionalBool m_memory_tagged
void SetMemoryTagged(OptionalBool val)
void SetReadable(OptionalBool val)
OptionalBool GetMemoryTagged() const
bool operator!=(const MemoryRegionInfo &rhs) const
bool operator==(const MemoryRegionInfo &rhs) const
OptionalBool GetWritable() const
OptionalBool m_is_stack_memory
Range< lldb::addr_t, lldb::addr_t > RangeType
OptionalBool GetExecutable() const
void SetDirtyPageList(std::vector< lldb::addr_t > pagelist)
void SetExecutable(OptionalBool val)
ConstString GetName() const
void SetPageSize(int pagesize)
void SetFlash(OptionalBool val)
void SetLLDBPermissions(uint32_t permissions)
void SetWritable(OptionalBool val)
OptionalBool GetFlash() const
lldb::offset_t GetBlocksize() const
Stream & operator<<(Stream &s, const SourceLocationSpec &loc)
Dump a SourceLocationSpec object to a stream.
MemoryRegionInfo(RangeType range, OptionalBool read, OptionalBool write, OptionalBool execute, OptionalBool mapped, ConstString name, OptionalBool flash, lldb::offset_t blocksize, OptionalBool memory_tagged, OptionalBool stack_memory)
void SetMapped(OptionalBool val)
const RangeType & GetRange() const
bool operator<(const Address &lhs, const Address &rhs)
OptionalBool IsStackMemory() const
A class that represents a running process on the host machine.
MemoryRegionInfo()=default
const llvm::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.
OptionalBool GetMapped() const
void SetIsStackMemory(OptionalBool val)
OptionalBool GetReadable() const
int GetPageSize() const
Get the target system's VM page size in bytes.