[Lldb-commits] [lldb] [lldb] Add SBProcess methods for get/set/use address masks (PR #83095)

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Wed Feb 28 17:50:49 PST 2024


================
@@ -1255,6 +1255,95 @@ lldb::SBFileSpec SBProcess::GetCoreFile() {
   return SBFileSpec(core_file);
 }
 
+addr_t SBProcess::GetAddressMask(AddressMaskType type,
+                                 AddressMaskRange addr_range) {
+  LLDB_INSTRUMENT_VA(this, type, addr_range);
+  addr_t default_mask = 0;
----------------
JDevlieghere wrote:

Would it be worth making this a constant (e.g. `LLDB_DEFAULT_ADDRESS_MASK`) so that callers can verify whether they were given a valid address mask? 

https://github.com/llvm/llvm-project/pull/83095


More information about the lldb-commits mailing list