Skip to content

Commit 0424268

Browse files
committed
[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.
1 parent 94eebf7 commit 0424268

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1963,6 +1963,14 @@ SymbolFileDWARF::GetDwoSymbolFileForCompileUnit(
19631963
"{1:x16}",
19641964
error_dwo_path.GetPath().c_str(), cu_die.GetOffset()));
19651965

1966+
if (Log *log = GetLog(LLDBLog::Symbols)) {
1967+
GetObjectFile()->GetModule()->LogMessage(
1968+
log,
1969+
"unable to locate .dwo debug file \"{0}\" for skeleton DIE "
1970+
"{1:x16}",
1971+
error_dwo_path.GetPath().c_str(), unit.GetOffset());
1972+
}
1973+
19661974
if (m_dwo_warning_issued.test_and_set(std::memory_order_relaxed) == false) {
19671975
GetObjectFile()->GetModule()->ReportWarning(
19681976
"unable to locate separate debug file (dwo, dwp). Debugging will be "

0 commit comments

Comments
 (0)