[lldb] [llvm] [LLDB][Minidump] Add 64b support to LLDB's minidump file builder. (PR #95312)

Greg Clayton via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 14 17:46:16 PDT 2024


================
@@ -858,10 +953,247 @@ Status MinidumpFileBuilder::Dump(lldb::FileUP &core_file) const {
   return error;
 }
 
-size_t MinidumpFileBuilder::GetDirectoriesNum() const {
-  return m_directories.size();
+static size_t GetLargestRange(const Process::CoreFileMemoryRanges &ranges) {
+  size_t max_size = 0;
+  for (const auto &core_range : ranges) {
+    max_size = std::max(max_size, core_range.range.size());
+  }
----------------
clayborg wrote:

remove `{}` from single line for statement per llvm coding guidelines

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


More information about the llvm-commits mailing list