================ @@ -429,62 +429,64 @@ MinidumpParser::GetExceptionStreams() { std::optional<minidump::Range> MinidumpParser::FindMemoryRange(lldb::addr_t addr) { - Log *log = GetLog(LLDBLog::Modules); + if (m_memory_ranges.IsEmpty()) + PopulateMemoryRanges(); + + MemoryRangeVector::Entry *entry = m_memory_ranges.FindEntryThatContains(addr); + if (!entry) + return std::nullopt; + + return entry->data; +} +void MinidumpParser::PopulateMemoryRanges() { + Log *log = GetLog(LLDBLog::Modules); auto ExpectedMemory = GetMinidumpFile().getMemoryList(); ---------------- mbucko wrote:
const https://github.com/llvm/llvm-project/pull/136040 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits