//===-- CoreFileMemoryRanges.cpp --------------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// #include "lldb/Target/CoreFileMemoryRanges.h" usingnamespacelldb; usingnamespacelldb_private; Entry; static bool Overlaps(const Entry *region_one, const Entry *region_two) { … } static bool IntersectHelper(const Entry *region_one, const Entry *region_two) { … } static bool OnlyIntersects(const Entry *region_one, const Entry *region_two) { … } static bool PermissionsMatch(const Entry *region_one, const Entry *region_two) { … } // This assumes any overlapping ranges will share the same permissions // and that adjacent ranges could have different permissions. Status CoreFileMemoryRanges::FinalizeCoreFileSaveRanges() { … }