[Lldb-commits] [lldb] [LLDB] Process minidump is in memory check command (PR #149401)

via lldb-commits lldb-commits at lists.llvm.org
Thu Jul 17 15:54:03 PDT 2025


================
@@ -648,6 +648,26 @@ class RangeDataVector {
     return nullptr;
   }
 
+  const Entry *FindEntryThatContainsOrPrior(B addr) const {
+#ifdef ASSERT_RANGEMAP_ARE_SORTED
+    assert(IsSorted());
+#endif
+    if (!m_entries.empty()) {
+      typename Collection::const_iterator begin = m_entries.begin();
+      typename Collection::const_iterator pos = llvm::lower_bound(
+          m_entries, addr, [](const Entry &lhs, B rhs_base) -> bool {
+            return lhs.GetRangeEnd() <= rhs_base;
+          });
+
+      if (pos->Contains(addr))
----------------
qxy11 wrote:

Is the behavior here defined if pos is m_entries.end()?

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


More information about the lldb-commits mailing list