[Lldb-commits] [lldb] [lldb] Add SBProcess methods for get/set/use address masks (PR #83095)
Will Hawkins via lldb-commits
lldb-commits at lists.llvm.org
Tue Feb 27 10:00:37 PST 2024
================
@@ -407,6 +407,129 @@ class LLDB_API SBProcess {
/// the process isn't loaded from a core file.
lldb::SBFileSpec GetCoreFile();
+ /// Get the current address mask that can be applied to addresses
+ /// before reading from memory.
+ ///
+ /// \param[in] type
+ /// lldb may have different address masks for code and data
+ /// addresses. Either can be requested, or most commonly,
+ /// eAddressMaskTypeAny can be requested and the least specific
+ /// mask will be fetched. e.g. on a target where instructions
+ /// are word aligned, the Code mask might clear the low 2 bits.
----------------
hawkinsw wrote:
```suggestion
/// are word aligned, the code mask might clear the low 2 bits.
```
https://github.com/llvm/llvm-project/pull/83095
More information about the lldb-commits
mailing list