Lines Matching defs:SymbolFileDWARF

1 //===-- SymbolFileDWARF.cpp -----------------------------------------------===//
9 #include "SymbolFileDWARF.h"
104 LLDB_PLUGIN_DEFINE(SymbolFileDWARF)
106 char SymbolFileDWARF::ID;
121 return SymbolFileDWARF::GetPluginNameStatic();
158 "SymbolFileDWARF::ParseLineTable failed to parse: {0}");
163 "SymbolFileDWARF::ParseLineTable failed to parse: {0}");
183 "SymbolFileDWARF::ParseSupportFiles failed to parse "
189 "SymbolFileDWARF::ParseSupportFiles failed to parse line "
301 void SymbolFileDWARF::Initialize() {
309 void SymbolFileDWARF::DebuggerInitialize(Debugger &debugger) {
319 void SymbolFileDWARF::Terminate() {
325 llvm::StringRef SymbolFileDWARF::GetPluginDescriptionStatic() {
329 SymbolFile *SymbolFileDWARF::CreateInstance(ObjectFileSP objfile_sp) {
330 return new SymbolFileDWARF(std::move(objfile_sp),
334 TypeList &SymbolFileDWARF::GetTypeList() {
340 void SymbolFileDWARF::GetTypes(const DWARFDIE &die, dw_offset_t min_die_offset,
410 void SymbolFileDWARF::GetTypes(SymbolContextScope *sc_scope,
450 SymbolFileDWARF::GetParentSymbolContextDIE(const DWARFDIE &child_die) {
469 SymbolFileDWARF::SymbolFileDWARF(ObjectFileSP objfile_sp,
476 SymbolFileDWARF::~SymbolFileDWARF() = default;
484 SymbolFileDWARF::GetDIEToType() {
491 SymbolFileDWARF::GetForwardDeclCompilerTypeToDIE() {
497 UniqueDWARFASTTypeMap &SymbolFileDWARF::GetUniqueDWARFASTTypeMap() {
506 SymbolFileDWARF::GetTypeSystemForLanguage(LanguageType language) {
518 void SymbolFileDWARF::InitializeObject() {
564 void SymbolFileDWARF::InitializeFirstCodeAddress() {
571 void SymbolFileDWARF::InitializeFirstCodeAddressRecursive(
583 bool SymbolFileDWARF::SupportedVersion(uint16_t version) {
602 uint32_t SymbolFileDWARF::CalculateAbilities() {
671 "SymbolFileDWARF can't load this DWARF. It's larger then {0:x+16}",
686 void SymbolFileDWARF::LoadSectionData(lldb::SectionType sect_type,
701 llvm::DWARFDebugAbbrev *SymbolFileDWARF::DebugAbbrev() {
724 DWARFDebugInfo &SymbolFileDWARF::DebugInfo() {
733 DWARFCompileUnit *SymbolFileDWARF::GetDWARFCompileUnit(CompileUnit *comp_unit) {
772 lldb::CompUnitSP SymbolFileDWARF::ParseCompileUnit(DWARFCompileUnit &dwarf_cu) {
834 LanguageType cu_language = SymbolFileDWARF::LanguageTypeFromDWARF(
853 void SymbolFileDWARF::BuildCuTranslationTable() {
870 std::optional<uint32_t> SymbolFileDWARF::GetDWARFUnitIndex(uint32_t cu_idx) {
879 uint32_t SymbolFileDWARF::CalculateNumCompileUnits() {
885 CompUnitSP SymbolFileDWARF::ParseCompileUnitAtIndex(uint32_t cu_idx) {
895 Function *SymbolFileDWARF::ParseFunction(CompileUnit &comp_unit,
936 SymbolFileDWARF::ConstructFunctionDemangledName(const DWARFDIE &die) {
961 lldb::addr_t SymbolFileDWARF::FixupAddress(lldb::addr_t file_addr) {
968 bool SymbolFileDWARF::FixupAddress(Address &addr) {
976 lldb::LanguageType SymbolFileDWARF::ParseLanguage(CompileUnit &comp_unit) {
985 XcodeSDK SymbolFileDWARF::ParseXcodeSDK(CompileUnit &comp_unit) {
1013 size_t SymbolFileDWARF::ParseFunctions(CompileUnit &comp_unit) {
1036 bool SymbolFileDWARF::ForEachExternalModule(
1064 bool SymbolFileDWARF::ParseSupportFiles(CompileUnit &comp_unit,
1077 bool SymbolFileDWARF::ParseSupportFiles(DWARFUnit &dwarf_cu,
1097 FileSpec SymbolFileDWARF::GetFile(DWARFUnit &unit, size_t file_idx) {
1111 SymbolFileDWARF::GetTypeUnitSupportFiles(DWARFTypeUnit &tu) {
1134 "SymbolFileDWARF::GetTypeUnitSupportFiles failed to parse "
1148 bool SymbolFileDWARF::ParseIsOptimized(CompileUnit &comp_unit) {
1156 bool SymbolFileDWARF::ParseImportedModules(
1211 bool SymbolFileDWARF::ParseLineTable(CompileUnit &comp_unit) {
1274 SymbolFileDWARF::ParseDebugMacros(lldb::offset_t *offset) {
1296 bool SymbolFileDWARF::ParseDebugMacros(CompileUnit &comp_unit) {
1320 size_t SymbolFileDWARF::ParseBlocksRecursive(CompileUnit &comp_unit,
1392 bool SymbolFileDWARF::ClassOrStructIsVirtual(const DWARFDIE &parent_die) {
1414 void SymbolFileDWARF::ParseDeclsForContext(CompilerDeclContext decl_ctx) {
1422 SymbolFileDWARF::GetDIE(lldb::user_id_t uid) { return GetDIE(DIERef(uid)); }
1424 CompilerDecl SymbolFileDWARF::GetDeclForUID(lldb::user_id_t type_uid) {
1429 // SymbolFileDWARF::GetDIE(). See comments inside the
1430 // SymbolFileDWARF::GetDIE() for details.
1437 SymbolFileDWARF::GetDeclContextForUID(lldb::user_id_t type_uid) {
1442 // SymbolFileDWARF::GetDIE(). See comments inside the
1443 // SymbolFileDWARF::GetDIE() for details.
1450 SymbolFileDWARF::GetDeclContextContainingUID(lldb::user_id_t type_uid) {
1453 // SymbolFileDWARF::GetDIE(). See comments inside the
1454 // SymbolFileDWARF::GetDIE() for details.
1461 SymbolFileDWARF::GetCompilerContextForUID(lldb::user_id_t type_uid) {
1464 // SymbolFileDWARF::GetDIE(). See comments inside the
1465 // SymbolFileDWARF::GetDIE() for details.
1471 Type *SymbolFileDWARF::ResolveTypeUID(lldb::user_id_t type_uid) {
1474 // SymbolFileDWARF::GetDIE(). See comments inside the
1475 // SymbolFileDWARF::GetDIE() for details.
1482 std::optional<SymbolFile::ArrayInfo> SymbolFileDWARF::GetDynamicArrayInfoForUID(
1491 Type *SymbolFileDWARF::ResolveTypeUID(const DIERef &die_ref) {
1495 Type *SymbolFileDWARF::ResolveTypeUID(const DWARFDIE &die,
1502 "SymbolFileDWARF::ResolveTypeUID (die = {0:x16}) {1} ({2}) '{3}'",
1520 "SymbolFileDWARF::ResolveTypeUID (die = {0:x16}) {1} ({2}) "
1537 // SymbolFileDWARF objects to detect if this DWARF file is the one that can
1539 bool SymbolFileDWARF::HasForwardDeclForCompilerType(
1556 bool SymbolFileDWARF::CompleteType(CompilerType &compiler_type) {
1621 Type *SymbolFileDWARF::ResolveType(const DWARFDIE &die,
1643 SymbolFileDWARF::GetCompUnitForDWARFCompUnit(DWARFCompileUnit &dwarf_cu) {
1660 void SymbolFileDWARF::GetObjCMethods(
1665 bool SymbolFileDWARF::GetFunction(const DWARFDIE &die, SymbolContext &sc) {
1686 lldb::ModuleSP SymbolFileDWARF::GetExternalModule(ConstString name) {
1694 SymbolFileDWARF *SymbolFileDWARF::GetDIERefSymbolFile(const DIERef &die_ref) {
1698 // SymbolFileDWARF classes, one for each .o file. We can often end up with
1700 // "lldb::user_id_t" that specifies a DIE from another SymbolFileDWARF
1705 // If the file index matches, then we have the right SymbolFileDWARF already.
1728 SymbolFileDWARF::GetDIE(const DIERef &die_ref) {
1735 SymbolFileDWARF *symbol_file = GetDIERefSymbolFile(die_ref);
1752 std::optional<uint64_t> SymbolFileDWARF::GetDWOId() {
1762 DWARFUnit *SymbolFileDWARF::GetSkeletonUnit(DWARFUnit *dwo_unit) {
1767 SymbolFileDWARF::GetDwoSymbolFileForCompileUnit(
1944 void SymbolFileDWARF::UpdateExternalModuleListIfNeeded() {
2030 llvm::dyn_cast_or_null<SymbolFileDWARF>(module_sp->GetSymbolFile());
2048 SymbolFileDWARF::GlobalVariableMap &SymbolFileDWARF::GetGlobalAranges() {
2097 void SymbolFileDWARF::ResolveFunctionAndBlock(lldb::addr_t file_vm_addr,
2124 uint32_t SymbolFileDWARF::ResolveSymbolContext(const Address &so_addr,
2128 LLDB_SCOPED_TIMERF("SymbolFileDWARF::"
2231 uint32_t SymbolFileDWARF::ResolveSymbolContext(
2256 void SymbolFileDWARF::PreloadSymbols() {
2268 std::recursive_mutex &SymbolFileDWARF::GetModuleMutex() const {
2275 bool SymbolFileDWARF::DeclContextMatchesThisSymbolFile(
2306 void SymbolFileDWARF::FindGlobalVariables(
2315 "SymbolFileDWARF::FindGlobalVariables (name=\"{0}\", "
2387 "SymbolFileDWARF::FindGlobalVariables (name=\"{0}\", "
2394 void SymbolFileDWARF::FindGlobalVariables(const RegularExpression &regex,
2403 "SymbolFileDWARF::FindGlobalVariables (regex=\"{0}\", "
2428 bool SymbolFileDWARF::ResolveFunction(const DWARFDIE &orig_die,
2479 bool SymbolFileDWARF::DIEInDeclContext(const CompilerDeclContext &decl_ctx,
2504 void SymbolFileDWARF::FindFunctions(const Module::LookupInfo &lookup_info,
2521 "SymbolFileDWARF::FindFunctions (name=\"{0}\", name_type_mask={1:x}, "
2571 "SymbolFileDWARF::FindFunctions (name=\"{0}\", "
2577 void SymbolFileDWARF::FindFunctions(const RegularExpression &regex,
2581 LLDB_SCOPED_TIMERF("SymbolFileDWARF::FindFunctions (regex = '%s')",
2588 log, "SymbolFileDWARF::FindFunctions (regex=\"{0}\", sc_list)",
2600 void SymbolFileDWARF::GetMangledNamesForFunction(
2652 uint64_t SymbolFileDWARF::GetDebugInfoSize(bool load_all_debug_info) {
2674 void SymbolFileDWARF::FindTypes(const TypeQuery &query, TypeResults &results) {
2685 log, "SymbolFileDWARF::FindTypes(type_basename=\"{0}\")",
2718 log, "SymbolFileDWARF::FindTypes(type_basename=\"{0}\") => {1}",
2754 "SymbolFileDWARF::FindTypes(type_basename=\"{0}\") => {1} "
2782 SymbolFileDWARF::FindNamespace(ConstString name,
2790 log, "SymbolFileDWARF::FindNamespace (sc, name=\"{0}\")",
2814 "SymbolFileDWARF::FindNamespace (sc, name=\"{0}\") => "
2825 TypeSP SymbolFileDWARF::GetTypeForDIE(const DWARFDIE &die,
2859 SymbolFileDWARF::GetDeclContextDIEContainingDIE(const DWARFDIE &orig_die) {
2910 Symbol *SymbolFileDWARF::GetObjCClassSymbol(ConstString objc_class_name) {
2925 TypeSP SymbolFileDWARF::FindCompleteObjCDefinitionTypeForDIE(
2967 SymbolFileDWARF::FindDefinitionDIE(const DWARFDIE &die) {
2984 "SymbolFileDWARF::FindDefinitionDIE(tag={0} "
3058 "SymbolFileDWARF::FindDefinitionDIE(tag={0} ({1}), "
3070 "SymbolFileDWARF::FindDefinitionTypeDIE(tag={0} ({1}), name='{2}') "
3082 TypeSP SymbolFileDWARF::ParseType(const SymbolContext &sc, const DWARFDIE &die,
3117 size_t SymbolFileDWARF::ParseTypes(const SymbolContext &sc,
3155 size_t SymbolFileDWARF::ParseBlocksRecursive(Function &func) {
3190 size_t SymbolFileDWARF::ParseTypes(CompileUnit &comp_unit) {
3206 size_t SymbolFileDWARF::ParseVariablesForContext(const SymbolContext &sc) {
3258 VariableSP SymbolFileDWARF::ParseVariableDIECached(const SymbolContext &sc,
3364 VariableSP SymbolFileDWARF::ParseVariableDIE(const SymbolContext &sc,
3639 SymbolFileDWARF::FindBlockContainingSpecification(
3649 SymbolFileDWARF::FindBlockContainingSpecification(
3682 void SymbolFileDWARF::ParseAndAppendGlobalVariable(
3738 SymbolFileDWARF::MergeBlockAbstractParameters(const DWARFDIE &block_die,
3813 size_t SymbolFileDWARF::ParseVariablesInFunctionContext(
3831 size_t SymbolFileDWARF::ParseVariablesInFunctionContextRecursive(
3898 size_t SymbolFileDWARF::PopulateBlockVariableList(
3959 SymbolFileDWARF::CollectCallEdges(ModuleSP module, DWARFDIE function_die) {
4116 SymbolFileDWARF::ParseCallEdgesInFunction(lldb_private::UserID func_id) {
4128 void SymbolFileDWARF::Dump(lldb_private::Stream &s) {
4133 void SymbolFileDWARF::DumpClangAST(Stream &s) {
4144 bool SymbolFileDWARF::GetSeparateDebugInfo(StructuredData::Dictionary &d,
4210 SymbolFileDWARFDebugMap *SymbolFileDWARF::GetDebugMapSymfile() {
4221 const std::shared_ptr<SymbolFileDWARFDwo> &SymbolFileDWARF::GetDwpSymbolFile() {
4294 SymbolFileDWARF::GetTypeSystem(DWARFUnit &unit) {
4298 DWARFASTParser *SymbolFileDWARF::GetDWARFParser(DWARFUnit &unit) {
4310 CompilerDecl SymbolFileDWARF::GetDecl(const DWARFDIE &die) {
4316 CompilerDeclContext SymbolFileDWARF::GetDeclContext(const DWARFDIE &die) {
4323 SymbolFileDWARF::GetContainingDeclContext(const DWARFDIE &die) {
4329 LanguageType SymbolFileDWARF::LanguageTypeFromDWARF(uint64_t val) {
4340 LanguageType SymbolFileDWARF::GetLanguage(DWARFUnit &unit) {
4344 LanguageType SymbolFileDWARF::GetLanguageFamily(DWARFUnit &unit) {
4351 StatsDuration::Duration SymbolFileDWARF::GetDebugInfoIndexTime() {
4357 void SymbolFileDWARF::ResetStatistics() {
4363 Status SymbolFileDWARF::CalculateFrameVariableError(StackFrame &frame) {
4396 void SymbolFileDWARF::GetCompileOptions(