================ @@ -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); ---------------- DavidSpickett wrote:
If we're in release mode, this assert isn't here. Is it possible for the user to set addresable_bits to > 64 via `settings set`? If they do it's a bit of a garbage in garbage out situation, but wondering if we could add a check at that level too, or already have. https://github.com/llvm/llvm-project/pull/83095 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits