From 51db146a3b4ba04d29bdf0f0d7ed930684387401 Mon Sep 17 00:00:00 2001 From: Nathan Moinvaziri Date: Tue, 19 Dec 2023 16:39:16 -0800 Subject: [PATCH] Fixes for macOS. --- src/common/mac/dump_syms.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/common/mac/dump_syms.cc b/src/common/mac/dump_syms.cc index 6cbbf0f69..bcb62413f 100644 --- a/src/common/mac/dump_syms.cc +++ b/src/common/mac/dump_syms.cc @@ -528,7 +528,7 @@ void DumpSymbols::ReadDwarf(google_breakpad::Module* module, for (uint64_t offset = 0; offset < debug_info_length;) { // Make a handler for the root DIE that populates MODULE with the // debug info. - DwarfCUToModule::WarningReporter *reporter = NULL; + DwarfCUToModule::WarningReporter *reporter = nullptr; if (report_warnings_) { reporter = new DwarfCUToModule::WarningReporter( selected_object_name_, offset); @@ -537,8 +537,8 @@ void DumpSymbols::ReadDwarf(google_breakpad::Module* module, selected_object_name_, offset); } DwarfCUToModule root_handler(&file_context, &line_to_module, - &ranges_handler, &reporter, - symbol_data_ & INLINES); + &ranges_handler, reporter, + handle_inline); // Make a Dwarf2Handler that drives our DIEHandler. DIEDispatcher die_dispatcher(&root_handler); // Make a DWARF parser for the compilation unit at OFFSET.