@@ -6689,9 +6689,11 @@ static void GetCoreFileSaveRangesStackOnly(Process &process,
66896689 }
66906690}
66916691
6692- // TODO: We should refactor CoreFileMemoryRanges to use the lldb range type, and then
6693- // add an intersect method on it, or MemoryRegionInfo.
6694- static MemoryRegionInfo Intersect (const MemoryRegionInfo &lhs, const Range<lldb::addr_t , lldb::addr_t > &rhs) {
6692+ // TODO: We should refactor CoreFileMemoryRanges to use the lldb range type, and
6693+ // then add an intersect method on it, or MemoryRegionInfo.
6694+ static MemoryRegionInfo
6695+ Intersect (const MemoryRegionInfo &lhs,
6696+ const Range<lldb::addr_t , lldb::addr_t > &rhs) {
66956697 const lldb::addr_t lhs_base = lhs.GetRange ().GetRangeBase ();
66966698 const lldb::addr_t rhs_base = rhs.GetRangeBase ();
66976699 const lldb::addr_t lhs_end = lhs.GetRange ().GetRangeEnd ();
@@ -6717,8 +6719,8 @@ static void GetUserSpecifiedCoreFileSaveRanges(Process &process,
67176719 for (const auto &range : regions) {
67186720 auto *entry = option_ranges.FindEntryThatIntersects (range.GetRange ());
67196721 if (entry) {
6720- if (entry->GetRangeBase () != range.GetRange ().GetRangeBase ()
6721- || entry->GetRangeEnd () != range.GetRange ().GetRangeEnd ()) {
6722+ if (entry->GetRangeBase () != range.GetRange ().GetRangeBase () ||
6723+ entry->GetRangeEnd () != range.GetRange ().GetRangeEnd ()) {
67226724 AddRegion (Intersect (range, *entry), true , ranges);
67236725 } else {
67246726 // If they match, add the range directly.
0 commit comments