Index: lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp =================================================================== --- lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp +++ lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp @@ -828,6 +828,11 @@ SymbolFileDWARF *dwarf = die.GetDWARF(); const dw_tag_t tag = die.Tag(); + if (tag == DW_TAG_subprogram && !attrs.name) { + LLDB_LOGF(log, "Parsing a Subprogram that has no name"); + assert(false && "Subprograms require a name"); + } + bool is_variadic = false; bool is_static = false; bool has_template_params = false;