[Lldb-commits] [lldb] 61c2932 - [lldb] DWARFDebugInfoEntry::Extract(): Print an error for unsupported DW_FORM_*
Jan Kratochvil via lldb-commits
lldb-commits at lists.llvm.org
Tue Mar 2 07:39:57 PST 2021
Author: Jan Kratochvil
Date: 2021-03-02T16:39:04+01:00
New Revision: 61c29321b3dffa3ae45483dd7678faedaef535a7
URL: https://github.com/llvm/llvm-project/commit/61c29321b3dffa3ae45483dd7678faedaef535a7
DIFF: https://github.com/llvm/llvm-project/commit/61c29321b3dffa3ae45483dd7678faedaef535a7.diff
LOG: [lldb] DWARFDebugInfoEntry::Extract(): Print an error for unsupported DW_FORM_*
Added:
Modified:
lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.cpp
Removed:
################################################################################
diff --git a/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.cpp b/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.cpp
index bce25297c4c7..7227ded823a2 100644
--- a/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.cpp
+++ b/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.cpp
@@ -183,6 +183,10 @@ bool DWARFDebugInfoEntry::Extract(const DWARFDataExtractor &data,
break;
default:
+ cu->GetSymbolFileDWARF().GetObjectFile()->GetModule()->ReportError(
+ "{0x%8.8x}: Unsupported DW_FORM_0x%x, please file a bug and "
+ "attach the file at the start of this error message",
+ m_offset, (unsigned)form);
*offset_ptr = m_offset;
return false;
}
More information about the lldb-commits
mailing list