[Lldb-commits] [lldb] [lldb] Add SBProcess methods for get/set/use address masks (PR #83095)
Jason Molenda via lldb-commits
lldb-commits at lists.llvm.org
Thu Feb 29 14:43:05 PST 2024
================
@@ -33,18 +33,26 @@ void AddressableBits::SetHighmemAddressableBits(
m_high_memory_addr_bits = highmem_addressing_bits;
}
+addr_t AddressableBits::AddressableBitToMask(uint32_t addressable_bits) {
+ assert(addressable_bits <= sizeof(addr_t) * 8);
----------------
jasonmolenda wrote:
I forgot that I was duplicating the addressable-bits-to-mask calculation in Process.cpp when I read the settings values. I pushed a change to use the new static method in AddressableBits which includes the assert.
https://github.com/llvm/llvm-project/pull/83095
More information about the lldb-commits
mailing list