[Lldb-commits] [lldb] [LLDB][SBSaveCore] Sbsavecore subregions bug (PR #138206)

David Peixotto via lldb-commits lldb-commits at lists.llvm.org
Thu May 1 15:35:33 PDT 2025


================
@@ -6698,9 +6717,16 @@ static void GetUserSpecifiedCoreFileSaveRanges(Process &process,
     return;
 
   for (const auto &range : regions) {
-    auto entry = option_ranges.FindEntryThatContains(range.GetRange());
-    if (entry)
-      AddRegion(range, true, ranges);
+    auto *entry = option_ranges.FindEntryThatIntersects(range.GetRange());
+    if (entry) {
+      if (entry->GetRangeBase() != range.GetRange().GetRangeBase() ||
----------------
dmpots wrote:

Can we use

```
entry->GetRange() != range.GetRange()
```

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


More information about the lldb-commits mailing list