https://github.com/vogelsgesang created https://github.com/llvm/llvm-project/pull/116436
I had a hard time to debug a `dwo` file whose file was not found. This log message would have saved me a lot of time. >From 042426896e517cf9e424279c2b25bbf655879a47 Mon Sep 17 00:00:00 2001 From: Adrian Vogelsgesang <avogelsges...@salesforce.com> Date: Fri, 15 Nov 2024 20:13:15 +0000 Subject: [PATCH] [lldb] Add logging for missing `.dwo` files I had a hard time to debug a `dwo` file whose file was not found. This log message would have saved me a lot of time. --- lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp b/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp index 666595a6d0635f..2bb41903beb3b4 100644 --- a/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp +++ b/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp @@ -1963,6 +1963,14 @@ SymbolFileDWARF::GetDwoSymbolFileForCompileUnit( "{1:x16}", error_dwo_path.GetPath().c_str(), cu_die.GetOffset())); + if (Log *log = GetLog(LLDBLog::Symbols)) { + GetObjectFile()->GetModule()->LogMessage( + log, + "unable to locate .dwo debug file \"{0}\" for skeleton DIE " + "{1:x16}", + error_dwo_path.GetPath().c_str(), unit.GetOffset()); + } + if (m_dwo_warning_issued.test_and_set(std::memory_order_relaxed) == false) { GetObjectFile()->GetModule()->ReportWarning( "unable to locate separate debug file (dwo, dwp). Debugging will be " _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits