jankratochvil created this revision. jankratochvil added a reviewer: labath. jankratochvil added a project: LLDB. Herald added subscribers: arphaman, aprantl.
D47253 <https://reviews.llvm.org/D47253> dropped this assertion. So either add it back by this patch or otherwise I will remove currently unused `SymbolFileDWARF::GetBaseCompileUnit`. Repository: rLLDB LLDB https://reviews.llvm.org/D60254 Files: lldb/source/Plugins/SymbolFile/DWARF/ManualDWARFIndex.cpp Index: lldb/source/Plugins/SymbolFile/DWARF/ManualDWARFIndex.cpp =================================================================== --- lldb/source/Plugins/SymbolFile/DWARF/ManualDWARFIndex.cpp +++ lldb/source/Plugins/SymbolFile/DWARF/ManualDWARFIndex.cpp @@ -92,6 +92,9 @@ } void ManualDWARFIndex::IndexUnit(DWARFUnit &unit, IndexSet &set) { + assert(!unit.GetSymbolFileDWARF()->GetBaseCompileUnit() && + "DWARFUnit associated with .dwo or .dwp should not be indexed directly"); + Log *log = LogChannelDWARF::GetLogIfAll(DWARF_LOG_LOOKUPS); if (log) {
Index: lldb/source/Plugins/SymbolFile/DWARF/ManualDWARFIndex.cpp =================================================================== --- lldb/source/Plugins/SymbolFile/DWARF/ManualDWARFIndex.cpp +++ lldb/source/Plugins/SymbolFile/DWARF/ManualDWARFIndex.cpp @@ -92,6 +92,9 @@ } void ManualDWARFIndex::IndexUnit(DWARFUnit &unit, IndexSet &set) { + assert(!unit.GetSymbolFileDWARF()->GetBaseCompileUnit() && + "DWARFUnit associated with .dwo or .dwp should not be indexed directly"); + Log *log = LogChannelDWARF::GetLogIfAll(DWARF_LOG_LOOKUPS); if (log) {
_______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits