|
LLDB mainline
|
#include <SymbolFileNativePDB.h>
Classes | |
| struct | InlineSite |
| struct | LineTableEntryComparator |
| struct | UdtDeclaration |
Public Member Functions | |
| SymbolFileNativePDB (lldb::ObjectFileSP objfile_sp) | |
| ~SymbolFileNativePDB () override | |
| uint32_t | CalculateAbilities () override |
| void | InitializeObject () override |
| Initialize the SymbolFile object. | |
| uint64_t | GetDebugInfoSize (bool load_all_debug_info=false) override |
| Metrics gathering functions. | |
| void | ParseDeclsForContext (lldb_private::CompilerDeclContext decl_ctx) override |
| lldb::LanguageType | ParseLanguage (lldb_private::CompileUnit &comp_unit) override |
| size_t | ParseFunctions (lldb_private::CompileUnit &comp_unit) override |
| bool | ParseLineTable (lldb_private::CompileUnit &comp_unit) override |
| bool | ParseDebugMacros (lldb_private::CompileUnit &comp_unit) override |
| bool | ParseSupportFiles (lldb_private::CompileUnit &comp_unit, SupportFileList &support_files) override |
| size_t | ParseTypes (lldb_private::CompileUnit &comp_unit) override |
| bool | ParseImportedModules (const SymbolContext &sc, std::vector< lldb_private::SourceModule > &imported_modules) override |
| size_t | ParseBlocksRecursive (Function &func) override |
| void | FindGlobalVariables (ConstString name, const CompilerDeclContext &parent_decl_ctx, uint32_t max_matches, VariableList &variables) override |
| size_t | ParseVariablesForContext (const SymbolContext &sc) override |
| void | AddSymbols (Symtab &symtab) override |
| CompilerDecl | GetDeclForUID (lldb::user_id_t uid) override |
| CompilerDeclContext | GetDeclContextForUID (lldb::user_id_t uid) override |
| CompilerDeclContext | GetDeclContextContainingUID (lldb::user_id_t uid) override |
| Type * | ResolveTypeUID (lldb::user_id_t type_uid) override |
| std::optional< ArrayInfo > | GetDynamicArrayInfoForUID (lldb::user_id_t type_uid, const lldb_private::ExecutionContext *exe_ctx) override |
If type_uid points to an array type, return its characteristics. | |
| bool | CompleteType (CompilerType &compiler_type) override |
| uint32_t | ResolveSymbolContext (const Address &so_addr, lldb::SymbolContextItem resolve_scope, SymbolContext &sc) override |
| uint32_t | ResolveSymbolContext (const SourceLocationSpec &src_location_spec, lldb::SymbolContextItem resolve_scope, SymbolContextList &sc_list) override |
| void | GetTypes (SymbolContextScope *sc_scope, lldb::TypeClass type_mask, TypeList &type_list) override |
| void | FindFunctions (const Module::LookupInfo &lookup_info, const CompilerDeclContext &parent_decl_ctx, bool include_inlines, SymbolContextList &sc_list) override |
| void | FindFunctions (const RegularExpression ®ex, bool include_inlines, SymbolContextList &sc_list) override |
| std::optional< PdbCompilandSymId > | FindSymbolScope (PdbCompilandSymId id) |
| std::string | GetFunctionCallLabel (PdbCompilandSymId id) |
| Build the asm label for the declaration of a function so that calls to it are routed through ResolveFunctionCallLabel. | |
| std::string | GetMethodCallLabel (llvm::codeview::TypeIndex method_type, llvm::StringRef qualified_name) |
| Build the asm label for a method that was declared in the field list of its class. | |
| llvm::Expected< SymbolContext > | ResolveFunctionCallLabel (FunctionCallLabel &label) override |
Resolves the function corresponding to the specified LLDB function call label. | |
| void | FindTypes (const lldb_private::TypeQuery &match, lldb_private::TypeResults &results) override |
| Find types using a type-matching object that contains all search parameters. | |
| llvm::Expected< lldb::TypeSystemSP > | GetTypeSystemForLanguage (lldb::LanguageType language) override |
| CompilerDeclContext | FindNamespace (ConstString name, const CompilerDeclContext &parent_decl_ctx, bool only_root_namespaces) override |
| Finds a namespace of name name and whose parent context is parent_decl_ctx. | |
| llvm::StringRef | GetPluginName () override |
| llvm::pdb::PDBFile & | GetPDBFile () |
| const llvm::pdb::PDBFile & | GetPDBFile () const |
| PdbIndex & | GetIndex () |
| void | DumpClangAST (Stream &s, llvm::StringRef filter, bool show_color) override |
| std::optional< llvm::codeview::TypeIndex > | GetParentType (llvm::codeview::TypeIndex ti) |
| Public Member Functions inherited from lldb_private::SymbolFileCommon | |
| SymbolFileCommon (lldb::ObjectFileSP objfile_sp) | |
| ~SymbolFileCommon () override=default | |
| uint32_t | GetAbilities () override |
| Get a mask of what this symbol file supports for the object file that it was constructed with. | |
| Symtab * | GetSymtab (bool can_create=true) override |
| ObjectFile * | GetObjectFile () override |
| const ObjectFile * | GetObjectFile () const override |
| ObjectFile * | GetMainObjectFile () override |
| void | SectionFileAddressesChanged () override |
| Notify the SymbolFile that the file addresses in the Sections for this module have been changed. | |
| uint32_t | GetNumCompileUnits () override |
| lldb::CompUnitSP | GetCompileUnitAtIndex (uint32_t idx) override |
| void | Dump (Stream &s) override |
| bool | GetDebugInfoIndexWasLoadedFromCache () const override |
| Accessors for the bool that indicates if the debug info index was loaded from, or saved to the module index cache. | |
| void | SetDebugInfoIndexWasLoadedFromCache () override |
| bool | GetDebugInfoIndexWasSavedToCache () const override |
| void | SetDebugInfoIndexWasSavedToCache () override |
| bool | GetDebugInfoHadFrameVariableErrors () const override |
| Accessors for the bool that indicates if there was debug info, but errors stopped variables from being able to be displayed correctly. | |
| void | SetDebugInfoHadFrameVariableErrors () override |
| lldb::TypeSP | MakeType (lldb::user_id_t uid, ConstString name, std::optional< uint64_t > byte_size, SymbolContextScope *context, lldb::user_id_t encoding_uid, Type::EncodingDataType encoding_uid_type, const Declaration &decl, const CompilerType &compiler_qual_type, Type::ResolveState compiler_type_resolve_state, uint32_t opaque_payload=0) override |
| This function is used to create types that belong to a SymbolFile. | |
| lldb::TypeSP | CopyType (const lldb::TypeSP &other_type) override |
| Public Member Functions inherited from lldb_private::SymbolFile | |
| SymbolFile ()=default | |
| ~SymbolFile () override=default | |
| virtual SymbolFile * | GetBackingSymbolFile () |
| SymbolFileOnDemand class overrides this to return the underlying backing SymbolFile implementation that loads on-demand. | |
| virtual std::recursive_mutex & | GetModuleMutex () const |
| Symbols file subclasses should override this to return the Module that owns the TypeSystem that this symbol file modifies type information in. | |
| virtual bool | GetLoadDebugInfoEnabled () |
| Whether debug info will be loaded or not. | |
| virtual void | SetLoadDebugInfoEnabled () |
| Specify debug info should be loaded. | |
| virtual XcodeSDKAndSysroot | ParseXcodeSDK (CompileUnit &comp_unit) |
| Return the Xcode SDK comp_unit was compiled against. | |
| virtual llvm::SmallSet< lldb::LanguageType, 4 > | ParseAllLanguages (CompileUnit &comp_unit) |
| This function exists because SymbolFileDWARFDebugMap may extra compile units which aren't exposed as "real" compile units. | |
| virtual bool | ForEachExternalModule (lldb_private::CompileUnit &comp_unit, llvm::DenseSet< lldb_private::SymbolFile * > &visited_symbol_files, llvm::function_ref< bool(Module &)> lambda) |
Apply a lambda to each external lldb::Module referenced by this comp_unit. | |
| virtual bool | ParseIsOptimized (CompileUnit &comp_unit) |
| virtual std::vector< CompilerContext > | GetCompilerContextForUID (lldb::user_id_t uid) |
| Status | GetFrameVariableError (StackFrame &frame) |
| Get an error that describes why variables might be missing for a given symbol context. | |
| virtual Status | CalculateFrameVariableError (StackFrame &frame) |
| Subclasses will override this function to for GetFrameVariableError(). | |
| virtual void | FindGlobalVariables (const RegularExpression ®ex, uint32_t max_matches, VariableList &variables) |
| virtual void | FindFunctions (llvm::ArrayRef< Module::LookupInfo > lookup_infos, const CompilerDeclContext &parent_decl_ctx, bool include_inlines, SymbolContextList &sc_list) |
| virtual void | GetMangledNamesForFunction (const std::string &scope_qualified_name, std::vector< ConstString > &mangled_names) |
| virtual void | PreloadSymbols () |
| virtual std::vector< std::unique_ptr< CallEdge > > | ParseCallEdgesInFunction (UserID func_id) |
| virtual lldb::UnwindPlanSP | GetUnwindPlan (const Address &address, const RegisterInfoResolver &resolver) |
| virtual llvm::Expected< lldb::addr_t > | GetParameterStackSize (const Symbol &symbol) |
| Return the number of stack bytes taken up by the parameters to this function. | |
| virtual StatsDuration::Duration | GetDebugInfoParseTime () |
| Return the time taken to parse the debug information. | |
| virtual StatsDuration::Duration | GetDebugInfoIndexTime () |
| Return the time it took to index the debug information in the object file. | |
| virtual void | ResetStatistics () |
| Reset the statistics for the symbol file. | |
| virtual ModuleList | GetDebugInfoModules () |
| Get the additional modules that this symbol file uses to parse debug info. | |
| virtual bool | GetSeparateDebugInfo (StructuredData::Dictionary &d, bool errors_only, bool load_all_debug_info=false) |
| Return true if separate debug info files are supported and this function succeeded, false otherwise. | |
| virtual DWOStats | GetDwoStats () |
| Retrieves statistics about DWO files associated with this symbol file. | |
| virtual lldb_private::ModuleSpecList | GetSeparateDebugInfoFiles () |
| Return a map of separate debug info files that are loaded. | |
| std::unordered_map< lldb::CompUnitSP, Args > | GetCompileOptions () |
| Returns a map of compilation unit to the compile option arguments associated with that compilation unit. | |
| std::string | GetObjectName () const |
| virtual lldb::TypeSP | GetTypeEnclosingVariableUID (lldb::user_id_t uid) |
| Get the semantically innermost non-function type that encloses the provided variable. | |
| Public Member Functions inherited from lldb_private::PluginInterface | |
| PluginInterface ()=default | |
| virtual | ~PluginInterface ()=default |
| PluginInterface (const PluginInterface &)=delete | |
| PluginInterface & | operator= (const PluginInterface &)=delete |
Static Public Member Functions | |
| static void | Initialize () |
| static void | Terminate () |
| static void | DebuggerInitialize (Debugger &debugger) |
| static llvm::StringRef | GetPluginNameStatic () |
| static llvm::StringRef | GetPluginDescriptionStatic () |
| static SymbolFile * | CreateInstance (lldb::ObjectFileSP objfile_sp) |
| static bool | classof (const SymbolFileCommon *obj) |
| Static Public Member Functions inherited from lldb_private::SymbolFile | |
| static SymbolFile * | FindPlugin (lldb::ObjectFileSP objfile_sp) |
| static bool | classof (const SymbolFile *obj) |
Private Types | |
| using | RangeSourceLineVector |
Private Member Functions | |
| void | BuildParentMap () |
| uint32_t | CalculateNumCompileUnits () override |
| lldb::CompUnitSP | ParseCompileUnitAtIndex (uint32_t index) override |
| void | FindTypesByName (llvm::StringRef name, uint32_t max_matches, TypeMap &types) |
| lldb::TypeSP | CreateModifierType (PdbTypeSymId type_id, const llvm::codeview::ModifierRecord &mr, CompilerType ct) |
| lldb::TypeSP | CreatePointerType (PdbTypeSymId type_id, const llvm::codeview::PointerRecord &pr, CompilerType ct) |
| lldb::TypeSP | CreateSimpleType (llvm::codeview::TypeIndex ti, CompilerType ct) |
| lldb::TypeSP | CreateTagType (PdbTypeSymId type_id, const llvm::codeview::ClassRecord &cr, CompilerType ct) |
| lldb::TypeSP | CreateTagType (PdbTypeSymId type_id, const llvm::codeview::EnumRecord &er, CompilerType ct) |
| lldb::TypeSP | CreateTagType (PdbTypeSymId type_id, const llvm::codeview::UnionRecord &ur, CompilerType ct) |
| lldb::TypeSP | CreateArrayType (PdbTypeSymId type_id, const llvm::codeview::ArrayRecord &ar, CompilerType ct) |
| lldb::TypeSP | CreateFunctionType (PdbTypeSymId type_id, const llvm::codeview::MemberFunctionRecord &pr, CompilerType ct) |
| lldb::TypeSP | CreateProcedureType (PdbTypeSymId type_id, const llvm::codeview::ProcedureRecord &pr, CompilerType ct) |
| lldb::TypeSP | CreateClassStructUnion (PdbTypeSymId type_id, const llvm::codeview::TagRecord &record, size_t size, CompilerType ct) |
| lldb::FunctionSP | GetOrCreateFunction (PdbCompilandSymId func_id, CompileUnit &comp_unit) |
| lldb::CompUnitSP | GetOrCreateCompileUnit (const CompilandIndexItem &cci) |
| lldb::TypeSP | GetOrCreateType (PdbTypeSymId type_id) |
| lldb::TypeSP | GetOrCreateType (llvm::codeview::TypeIndex ti) |
| lldb::VariableSP | GetOrCreateGlobalVariable (PdbGlobalSymId var_id) |
| Block * | GetOrCreateBlock (PdbCompilandSymId block_id) |
| lldb::VariableSP | GetOrCreateLocalStaticVariable (PdbCompilandSymId scope_id, PdbCompilandSymId var_id) |
| lldb::VariableSP | GetOrCreateLocalVariable (PdbCompilandSymId scope_id, PdbCompilandSymId var_id, bool is_param, bool is_constant=false) |
| lldb::TypeSP | GetOrCreateTypedef (PdbGlobalSymId id) |
| lldb::FunctionSP | CreateFunction (PdbCompilandSymId func_id, CompileUnit &comp_unit) |
| Block * | CreateBlock (PdbCompilandSymId block_id) |
| lldb::VariableSP | CreateLocalVariable (PdbCompilandSymId scope_id, PdbCompilandSymId var_id, bool is_param, bool is_constant=false) |
| lldb::TypeSP | CreateTypedef (PdbGlobalSymId id) |
| lldb::CompUnitSP | CreateCompileUnit (const CompilandIndexItem &cci) |
| lldb::TypeSP | CreateType (PdbTypeSymId type_id, CompilerType ct) |
| lldb::TypeSP | CreateAndCacheType (PdbTypeSymId type_id) |
| lldb::VariableSP | CreateGlobalVariable (PdbGlobalSymId var_id) |
| lldb::VariableSP | CreateConstantSymbol (PdbGlobalSymId var_id, const llvm::codeview::CVSymbol &cvs) |
| size_t | ParseVariablesForCompileUnit (CompileUnit &comp_unit, VariableList &variables) |
| size_t | ParseVariablesForBlock (PdbCompilandSymId block_id) |
| void | CreateSimpleArgumentListTypes (llvm::codeview::TypeIndex arglist_ti) |
| llvm::Expected< uint32_t > | GetFileIndex (const CompilandIndexItem &cii, uint32_t file_id) |
| size_t | ParseSymbolArrayInScope (PdbCompilandSymId parent, llvm::function_ref< bool(llvm::codeview::SymbolKind, PdbCompilandSymId)> fn) |
| void | ParseInlineSite (PdbCompilandSymId inline_site_id, Address func_addr) |
| std::vector< CompilerContext > | GetContextForType (llvm::codeview::TypeIndex ti) |
| std::vector< CompilerContext > | GetContextForTypedef (PdbGlobalSymId id) |
| bool | IsTypedefUdt (const llvm::codeview::UDTSym &udt) |
Returns true if udt is a typedef rather than the S_UDT that is emitted for every tag type. | |
| void | CacheGlobalBaseNames () |
| Caches the basenames of symbols found in the globals stream. | |
| void | CacheUdtDeclarations () |
| llvm::Expected< Declaration > | ResolveUdtDeclaration (PdbTypeSymId type_id) |
| std::optional< llvm::StringRef > | FindMangledSymbol (SegmentOffset so, llvm::codeview::TypeIndex function_type=llvm::codeview::TypeIndex()) |
| Find a symbol name at a specific address (so). | |
| llvm::StringRef | StripMangledFunctionName (llvm::StringRef mangled, PdbTypeSymId func_ty) |
| std::string | MakeFunctionCallLabel (PdbSymUid uid, llvm::StringRef lookup_name) |
| void | AppendFunctionForProcRef (PdbGlobalSymId global, SymbolContextList &sc_list) |
Append the function referenced by the S_PROCREF/S_LPROCREF global. | |
| std::optional< PdbCompilandSymId > | FindMethodDefinition (llvm::StringRef qualified_name, llvm::codeview::TypeIndex method_type) |
Find the S_GPROC32/S_LPROC32 record named qualified_name whose type is method_type. | |
Static Private Attributes | |
| static char | ID |
| LLVM RTTI support. | |
Friends | |
| class | UdtRecordCompleter |
| bool | isA (const void *ClassID) const override |
| LLVM RTTI support. | |
| static bool | classof (const SymbolFile *obj) |
Additional Inherited Members | |
| Public Types inherited from lldb_private::SymbolFile | |
| enum | Abilities { Symbols = (1u << 0) , CompileUnits = (1u << 1) , LineTables = (1u << 2) , Functions = (1u << 3) , Blocks = (1u << 4) , GlobalVariables = (1u << 5) , LocalVariables = (1u << 6) , VariableTypes = (1u << 7) , kAllAbilities } |
| Protected Member Functions inherited from lldb_private::SymbolFileCommon | |
| virtual TypeList & | GetTypeList () |
| void | SetCompileUnitAtIndex (uint32_t idx, const lldb::CompUnitSP &cu_sp) |
| Protected Member Functions inherited from lldb_private::SymbolFile | |
| void | AssertModuleLock () |
| virtual void | GetCompileOptions (std::unordered_map< lldb::CompUnitSP, lldb_private::Args > &args) |
| Protected Attributes inherited from lldb_private::SymbolFileCommon | |
| lldb::ObjectFileSP | m_objfile_sp |
| std::optional< std::vector< lldb::CompUnitSP > > | m_compile_units |
| TypeList | m_type_list |
| uint32_t | m_abilities = 0 |
| bool | m_calculated_abilities = false |
| bool | m_index_was_loaded_from_cache = false |
| bool | m_index_was_saved_to_cache = false |
| bool | m_debug_info_had_variable_errors = false |
| Set to true if any variable feteching errors have been found when calling GetFrameVariableError(). | |
Definition at line 43 of file SymbolFileNativePDB.h.
Definition at line 195 of file SymbolFileNativePDB.h.
| SymbolFileNativePDB::SymbolFileNativePDB | ( | lldb::ObjectFileSP | objfile_sp | ) |
Definition at line 383 of file SymbolFileNativePDB.cpp.
References lldb_private::SymbolFileCommon::SymbolFileCommon().
Referenced by CreateInstance().
|
overridedefault |
References lldb_private::npdb::Type.
|
overridevirtual |
Reimplemented from lldb_private::SymbolFile.
Definition at line 1294 of file SymbolFileNativePDB.cpp.
References lldb_private::Symtab::AddSymbol(), lldb::eSymbolTypeAdditional, lldb::eSymbolTypeCode, lldb::eSymbolTypeData, lldb_private::Symbol::GetAddressRef(), lldb_private::Address::GetFileAddress(), lldb_private::GetLog(), lldb_private::Symtab::GetNumSymbols(), LLDB_LOG, LLDB_LOG_ERROR, m_index, lldb_private::SymbolFileCommon::m_objfile_sp, lldb_private::Symbol::SetByteSize(), lldb_private::Symbol::SetType(), lldb_private::Symtab::SymbolAtIndex(), lldb_private::Symbols, and lldb_private::Symbol::ValueIsAddress().
|
private |
Append the function referenced by the S_PROCREF/S_LPROCREF global.
Definition at line 2338 of file SymbolFileNativePDB.cpp.
References lldb_private::SymbolContextList::Append(), lldb_private::SymbolContext::comp_unit, lldb_private::SymbolContext::function, lldb_private::GetLog(), GetOrCreateCompileUnit(), GetOrCreateFunction(), lldb_private::npdb::IsValidRecord(), LLDB_LOG, LLDB_LOG_ERROR, m_index, and lldb_private::Symbols.
Referenced by FindFunctions(), and FindFunctions().
|
private |
Definition at line 3051 of file SymbolFileNativePDB.cpp.
References lldb_private::npdb::CVTagRecord::asTag(), lldb_private::npdb::CVTagRecord::create(), MSVCUndecoratedNameParser::DropScope(), error(), GetNestedTagDefinition(), lldb_private::npdb::IsTagRecord(), IsTypedefUdt(), m_index, m_parent_map_built, m_parent_types, m_type_base_names, m_typedef_base_names, lldb_private::npdb::CVTagRecord::name(), and lldb_private::npdb::PdbIndex::tpi().
Referenced by FindTypes(), and GetParentType().
|
private |
Caches the basenames of symbols found in the globals stream.
This includes functions and global variables
Definition at line 2070 of file SymbolFileNativePDB.cpp.
References MSVCUndecoratedNameParser::DropScope(), lldb_private::GetLog(), lldb_private::Mangled::IsMangledName(), LLDB_LOG_ERROR, lldb_private::npdb::CompilandIndexItem::m_debug_stream, m_func_base_names, m_func_full_names, m_func_method_names, m_global_variable_base_names, m_index, and lldb_private::Symbols.
Referenced by FindFunctions(), FindFunctions(), and FindGlobalVariables().
|
private |
Definition at line 3506 of file SymbolFileNativePDB.cpp.
References lldb_private::GetLog(), LLDB_LOG_ERROR, m_index, m_udt_declarations, and lldb_private::Symbols.
Referenced by ResolveUdtDeclaration().
|
overridevirtual |
Implements lldb_private::SymbolFile.
Definition at line 388 of file SymbolFileNativePDB.cpp.
References lldb_private::SymbolFile::Blocks, lldb_private::npdb::PdbIndex::create(), lldb_private::GetLog(), lldb_private::SymbolFile::kAllAbilities, LLDB_LOG, loadMatchingPDBFile(), lldb_private::SymbolFile::LocalVariables, m_allocator, m_file_up, m_index, lldb_private::SymbolFileCommon::m_objfile_sp, and lldb_private::Symbols.
|
overrideprivatevirtual |
Implements lldb_private::SymbolFileCommon.
Definition at line 450 of file SymbolFileNativePDB.cpp.
References m_index.
|
inlinestatic |
Definition at line 55 of file SymbolFileNativePDB.h.
References ID, lldb_private::SymbolFile::isA(), and lldb_private::SymbolFile::SymbolFile().
|
overridevirtual |
Implements lldb_private::SymbolFile.
Definition at line 2998 of file SymbolFileNativePDB.cpp.
References lldb_private::npdb::PdbAstBuilder::CompleteType(), lldb_private::SymbolFile::GetModuleMutex(), and lldb_private::CompilerType::GetTypeSystem().
|
private |
Definition at line 979 of file SymbolFileNativePDB.cpp.
References CreateType(), lldb::eLanguageTypeC_plus_plus, lldb_private::npdb::PdbAstBuilder::GetOrCreateType(), GetTypeSystemForLanguage(), lldb_private::npdb::PdbTypeSymId::index, lldb_private::npdb::IsForwardRefUdt(), m_index, m_types, and lldb_private::npdb::toOpaqueUid().
Referenced by GetOrCreateType(), and ResolveTypeUID().
|
private |
Definition at line 816 of file SymbolFileNativePDB.cpp.
References lldb_private::Type::eEncodingIsUID, lldb_private::Type::Full, GetOrCreateType(), LLDB_INVALID_UID, lldb_private::SymbolFileCommon::MakeType(), and lldb_private::npdb::toOpaqueUid().
Referenced by CreateType().
|
private |
Definition at line 465 of file SymbolFileNativePDB.cpp.
References lldb_private::Block::CalculateSymbolContextFunction(), lldb_private::Block::CreateChild(), lldb_private::npdb::PdbAstBuilder::EnsureBlock(), lldb_private::npdb::PdbAstBuilder::EnsureInlinedFunction(), lldb_private::Function::GetAddress(), lldb_private::Address::GetFileAddress(), lldb_private::GetLog(), lldb_private::ModuleChild::GetModule(), lldb_private::SymbolFileCommon::GetObjectFile(), GetOrCreateBlock(), GetOrCreateCompileUnit(), GetOrCreateFunction(), GetTypeSystemForLanguage(), LLDB_LOG, LLDB_LOG_ERROR, m_blocks, lldb_private::npdb::CompilandIndexItem::m_debug_stream, m_index, m_inline_sites, lldb_private::npdb::PdbCompilandSymId::modi, lldb_private::npdb::PdbCompilandSymId::offset, lldb_private::Symbols, and lldb_private::npdb::toOpaqueUid().
Referenced by GetOrCreateBlock().
|
private |
Definition at line 763 of file SymbolFileNativePDB.cpp.
References lldb_private::Type::eEncodingIsUID, lldb_private::Type::Forward, lldb_private::GetLog(), GetUnqualifiedTypeName(), LLDB_INVALID_UID, LLDB_LOG_ERROR, lldb_private::SymbolFileCommon::MakeType(), ResolveUdtDeclaration(), lldb_private::Symbols, and lldb_private::npdb::toOpaqueUid().
|
private |
Definition at line 633 of file SymbolFileNativePDB.cpp.
References lldb::eLanguageTypeUnknown, lldb_private::eLazyBoolNo, lldb_private::eLazyBoolYes, lldb_private::GetLog(), LLDB_LOG_ERROR, lldb_private::npdb::CompilandIndexItem::m_compile_opts, lldb_private::npdb::CompilandIndexItem::m_id, m_index, lldb_private::SymbolFileCommon::m_objfile_sp, lldb_private::npdb::PdbCompilandId::modi, lldb_private::SymbolFileCommon::SetCompileUnitAtIndex(), lldb_private::Symbols, lldb_private::npdb::toOpaqueUid(), and TranslateLanguage().
Referenced by GetOrCreateCompileUnit().
|
private |
Definition at line 1153 of file SymbolFileNativePDB.cpp.
References lldb::eLanguageTypeC_plus_plus, lldb::eValueTypeVariableGlobal, lldb_private::GetLog(), lldb_private::ModuleChild::GetModule(), lldb_private::SymbolFileCommon::GetObjectFile(), GetTypeSystemForLanguage(), LLDB_LOG_ERROR, m_index, lldb_private::npdb::MakeConstantLocationExpression(), lldb_private::Symbols, and lldb_private::npdb::toOpaqueUid().
Referenced by CreateGlobalVariable().
|
private |
Definition at line 569 of file SymbolFileNativePDB.cpp.
References lldb_private::CompileUnit::AddFunction(), FindMangledSymbol(), lldb_private::CompileUnit::GetLanguage(), lldb_private::GetLog(), lldb_private::ModuleChild::GetModule(), GetOrCreateType(), lldb_private::npdb::GetSegmentOffsetAndLength(), GetTypeSystemForLanguage(), lldb_private::Address::IsValid(), LLDB_INVALID_ADDRESS, LLDB_LOG, LLDB_LOG_ERROR, lldb_private::npdb::CompilandIndexItem::m_debug_stream, m_index, lldb_private::npdb::PdbCompilandSymId::modi, lldb_private::npdb::PdbCompilandSymId::offset, lldb_private::npdb::SegmentOffset::offset, lldb_private::npdb::SegmentOffset::segment, lldb_private::npdb::SegmentOffsetLength::so, lldb_private::Symbols, and lldb_private::npdb::toOpaqueUid().
Referenced by GetOrCreateFunction().
|
private |
Definition at line 830 of file SymbolFileNativePDB.cpp.
References CreateSimpleArgumentListTypes(), lldb_private::Type::eEncodingIsUID, lldb_private::Type::Full, GetOrCreateType(), LLDB_INVALID_UID, lldb_private::SymbolFileCommon::MakeType(), and lldb_private::npdb::toOpaqueUid().
Referenced by CreateType().
|
private |
Definition at line 1048 of file SymbolFileNativePDB.cpp.
References CreateConstantSymbol(), lldb::eValueTypeInvalid, lldb::eValueTypeVariableGlobal, lldb::eValueTypeVariableStatic, lldb::eValueTypeVariableThreadLocal, FindMangledSymbol(), lldb_private::GetLog(), lldb_private::ModuleChild::GetModule(), lldb_private::SymbolFileCommon::GetNumCompileUnits(), lldb_private::SymbolFileCommon::GetObjectFile(), GetOrCreateCompileUnit(), GetTypeSystemForLanguage(), lldb_private::Mangled::IsMangledName(), LLDB_INVALID_ADDRESS, LLDB_LOG_ERROR, m_index, lldb_private::npdb::MakeGlobalLocationExpression(), lldb_private::npdb::MakeGlobalThreadLocalLocationExpression(), lldb_private::npdb::PdbGlobalSymId::offset, lldb_private::Symbols, and lldb_private::npdb::toOpaqueUid().
Referenced by GetOrCreateGlobalVariable().
|
static |
Definition at line 376 of file SymbolFileNativePDB.cpp.
References lldb_private::SymbolFile::SymbolFile(), SymbolFileNativePDB(), and SymbolFilePDB::UseNativePDB().
Referenced by Initialize(), and Terminate().
|
private |
Definition at line 2535 of file SymbolFileNativePDB.cpp.
References lldb_private::Block::CalculateSymbolContextFunction(), lldb::eValueTypeVariableArgument, lldb::eValueTypeVariableLocal, lldb_private::Function::GetAddress(), lldb_private::Address::GetFileAddress(), lldb_private::GetLog(), lldb_private::ModuleChild::GetModule(), lldb_private::SymbolFileCommon::GetObjectFile(), GetOrCreateBlock(), GetOrCreateCompileUnit(), GetOrCreateType(), lldb_private::Block::GetParent(), lldb_private::Block::GetStartAddress(), GetTypeSystemForLanguage(), lldb_private::npdb::GetVariableLocationInfo(), lldb_private::npdb::VariableInfo::is_param, lldb_private::DWARFExpressionList::IsValid(), LLDB_LOG_ERROR, lldb_private::npdb::VariableInfo::location, lldb_private::npdb::CompilandIndexItem::m_debug_stream, m_index, m_local_variables, lldb_private::npdb::MakeConstantLocationExpression(), lldb_private::npdb::PdbCompilandSymId::modi, lldb_private::npdb::VariableInfo::name, lldb_private::npdb::PdbCompilandSymId::offset, lldb_private::DWARFExpressionList::SetFuncFileAddress(), lldb_private::Symbols, lldb_private::npdb::toOpaqueUid(), and lldb_private::npdb::VariableInfo::type.
Referenced by GetOrCreateLocalVariable().
|
private |
Definition at line 660 of file SymbolFileNativePDB.cpp.
References lldb_private::Type::eEncodingIsUID, lldb_private::Type::Full, GetOrCreateType(), GetSimpleTypeName(), LLDB_INVALID_UID, m_index, lldb_private::SymbolFileCommon::MakeType(), and lldb_private::npdb::toOpaqueUid().
Referenced by CreateType().
|
private |
Definition at line 688 of file SymbolFileNativePDB.cpp.
References lldb_private::Type::eEncodingIsUID, lldb_private::Type::Full, GetOrCreateType(), LLDB_INVALID_UID, lldb_private::SymbolFileCommon::MakeType(), and lldb_private::npdb::toOpaqueUid().
Referenced by CreateType().
|
private |
Definition at line 843 of file SymbolFileNativePDB.cpp.
References CreateSimpleArgumentListTypes(), lldb_private::Type::eEncodingIsUID, lldb_private::Type::Full, GetOrCreateType(), LLDB_INVALID_UID, lldb_private::SymbolFileCommon::MakeType(), and lldb_private::npdb::toOpaqueUid().
Referenced by CreateType().
|
private |
Definition at line 856 of file SymbolFileNativePDB.cpp.
References lldb_private::GetLog(), GetOrCreateType(), LLDB_LOG_ERROR, m_index, and lldb_private::Symbols.
Referenced by CreateFunctionType(), and CreateProcedureType().
|
private |
Definition at line 706 of file SymbolFileNativePDB.cpp.
References lldb_private::Type::eEncodingIsUID, lldb_private::Type::Full, GetOrCreateType(), GetSimpleTypeName(), lldb_private::npdb::GetTypeSizeForSimpleKind(), LLDB_INVALID_UID, lldb_private::SymbolFileCommon::MakeType(), and lldb_private::npdb::toOpaqueUid().
Referenced by CreateType().
|
private |
Referenced by CreateType().
|
private |
|
private |
|
private |
Definition at line 878 of file SymbolFileNativePDB.cpp.
References CreateArrayType(), CreateFunctionType(), CreateModifierType(), CreatePointerType(), CreateProcedureType(), CreateSimpleType(), CreateTagType(), lldb_private::GetLog(), lldb_private::npdb::PdbTypeSymId::index, lldb_private::npdb::PdbTypeSymId::is_ipi, IsClassRecord(), LLDB_LOG_ERROR, m_index, and lldb_private::Symbols.
Referenced by CreateAndCacheType().
|
private |
Definition at line 2719 of file SymbolFileNativePDB.cpp.
References lldb_private::Type::eEncodingIsTypedefUID, lldb::eLanguageTypeC_plus_plus, lldb_private::Type::Forward, lldb_private::GetLog(), GetOrCreateType(), lldb_private::npdb::PdbAstBuilder::GetOrCreateTypedefType(), GetTypeSystemForLanguage(), LLDB_LOG, LLDB_LOG_ERROR, m_index, lldb_private::SymbolFileCommon::MakeType(), lldb_private::Symbols, and lldb_private::npdb::toOpaqueUid().
Referenced by GetOrCreateTypedef().
|
static |
Definition at line 370 of file SymbolFileNativePDB.cpp.
Referenced by Initialize().
|
overridevirtual |
Reimplemented from lldb_private::SymbolFile.
Definition at line 2052 of file SymbolFileNativePDB.cpp.
References lldb_private::npdb::PdbAstBuilder::Dump(), lldb::eLanguageTypeC_plus_plus, lldb_private::GetLog(), GetTypeSystemForLanguage(), LLDB_LOG_ERROR, and lldb_private::Symbols.
|
overridevirtual |
Reimplemented from lldb_private::SymbolFile.
Definition at line 2277 of file SymbolFileNativePDB.cpp.
References AppendFunctionForProcRef(), CacheGlobalBaseNames(), GetDeclContextContainingUID(), lldb_private::Module::LookupInfo::GetLookupName(), lldb_private::SymbolFile::GetModuleMutex(), lldb_private::Module::LookupInfo::GetName(), lldb_private::Module::LookupInfo::GetNameTypeMask(), lldb_private::CompilerDeclContext::IsValid(), m_func_base_names, m_func_full_names, m_func_method_names, and lldb_private::npdb::toOpaqueUid().
|
overridevirtual |
Reimplemented from lldb_private::SymbolFile.
Definition at line 2320 of file SymbolFileNativePDB.cpp.
References AppendFunctionForProcRef(), CacheGlobalBaseNames(), lldb_private::SymbolFile::GetModuleMutex(), m_func_base_names, and m_func_full_names.
|
overridevirtual |
Reimplemented from lldb_private::SymbolFile.
Definition at line 2232 of file SymbolFileNativePDB.cpp.
References lldb_private::VariableList::AddVariable(), CacheGlobalBaseNames(), lldb_private::CPlusPlusLanguage::ExtractContextAndIdentifier(), GetDeclContextContainingUID(), lldb_private::SymbolFile::GetModuleMutex(), GetOrCreateGlobalVariable(), lldb_private::ConstString::GetStringRef(), lldb_private::CompilerDeclContext::IsValid(), m_global_variable_base_names, and lldb_private::npdb::toOpaqueUid().
|
private |
Find a symbol name at a specific address (so).
| [in] | so | The segment and offset where the symbol is located. |
| [in] | function_type | If the symbol is expected to be a function, this has to be the type of the function. It's used to strip the name of __cdecl functions on x86. |
Definition at line 3309 of file SymbolFileNativePDB.cpp.
References m_index, lldb_private::npdb::SegmentOffset::offset, lldb_private::npdb::SegmentOffset::segment, and StripMangledFunctionName().
Referenced by CreateFunction(), CreateGlobalVariable(), and GetFunctionCallLabel().
|
private |
Find the S_GPROC32/S_LPROC32 record named qualified_name whose type is method_type.
Definition at line 3420 of file SymbolFileNativePDB.cpp.
References lldb_private::GetLog(), LLDB_LOG_ERROR, lldb_private::npdb::CompilandIndexItem::m_debug_stream, m_index, and lldb_private::Symbols.
Referenced by GetMethodCallLabel().
|
overridevirtual |
Finds a namespace of name name and whose parent context is parent_decl_ctx.
If
then this function will consider all namespaces that match the name. If only_root_namespaces is true, only consider in the search those DIEs that represent top-level namespaces.
Reimplemented from lldb_private::SymbolFile.
Definition at line 3015 of file SymbolFileNativePDB.cpp.
References lldb::eLanguageTypeC_plus_plus, lldb_private::npdb::PdbAstBuilder::FindNamespaceDecl(), lldb_private::SymbolFile::GetModuleMutex(), lldb_private::ConstString::GetStringRef(), and GetTypeSystemForLanguage().
| std::optional< PdbCompilandSymId > SymbolFileNativePDB::FindSymbolScope | ( | PdbCompilandSymId | id | ) |
Definition at line 3197 of file SymbolFileNativePDB.cpp.
References lldb_private::GetLog(), LLDB_LOG, lldb_private::npdb::CompilandIndexItem::m_debug_stream, m_index, and lldb_private::Symbols.
|
overridevirtual |
Find types using a type-matching object that contains all search parameters.
| [in] | query | A type matching object that contains all of the details of the type search. |
| [in] | results | Any matching types will be populated into the results object using TypeMap::InsertUnique(...). |
Reimplemented from lldb_private::SymbolFile.
Definition at line 2374 of file SymbolFileNativePDB.cpp.
References lldb_private::TypeResults::AlreadySearched(), BuildParentMap(), lldb_private::TypeQuery::ContextMatches(), lldb_private::TypeResults::Done(), GetContextForType(), GetContextForTypedef(), lldb_private::SymbolFile::GetModuleMutex(), GetOrCreateType(), GetOrCreateTypedef(), lldb_private::TypeQuery::GetTypeBasename(), lldb_private::TypeResults::InsertUnique(), m_type_base_names, and m_typedef_base_names.
|
private |
Definition at line 2451 of file SymbolFileNativePDB.cpp.
References GetOrCreateType(), lldb_private::TypeMap::Insert(), and m_index.
|
private |
Definition at line 3260 of file SymbolFileNativePDB.cpp.
References lldb_private::ClassOrStruct, lldb_private::npdb::CVTagRecord::contextKind(), lldb_private::npdb::CVTagRecord::create(), lldb_private::Enum, GetParentType(), lldb_private::Type::GetTypeScopeAndBasename(), lldb_private::npdb::IsTagRecord(), m_index, lldb_private::npdb::CVTagRecord::name(), lldb_private::Namespace, and lldb_private::Union.
Referenced by FindTypes().
|
private |
Definition at line 2426 of file SymbolFileNativePDB.cpp.
References lldb_private::Type::GetTypeScopeAndBasename(), m_index, lldb_private::Namespace, and lldb_private::Typedef.
Referenced by FindTypes().
|
overridevirtual |
Metrics gathering functions.
Return the size in bytes of all loaded debug information or total possible debug info in the symbol file.
If the debug information is contained in sections of an ObjectFile, then this call should add the size of all sections that contain debug information. Symbols the symbol tables are not considered debug information for this call to make it easy and quick for this number to be calculated. If the symbol file is all debug information, the size of the entire file should be returned. The default implementation of this function will iterate over all sections in a module and add up their debug info only section byte sizes.
| load_all_debug_info | If true, force loading any symbol files if they are not yet loaded and add to the total size. Default to false. |
Reimplemented from lldb_private::SymbolFileCommon.
Definition at line 3046 of file SymbolFileNativePDB.cpp.
References m_index.
|
overridevirtual |
Reimplemented from lldb_private::SymbolFile.
Definition at line 2953 of file SymbolFileNativePDB.cpp.
References lldb::eLanguageTypeC_plus_plus, lldb_private::npdb::PdbAstBuilder::GetParentDeclContext(), and GetTypeSystemForLanguage().
Referenced by FindFunctions(), and FindGlobalVariables().
|
overridevirtual |
Reimplemented from lldb_private::SymbolFile.
Definition at line 2939 of file SymbolFileNativePDB.cpp.
References lldb::eLanguageTypeC_plus_plus, lldb_private::npdb::PdbAstBuilder::GetOrCreateDeclContextForUid(), and GetTypeSystemForLanguage().
|
overridevirtual |
Reimplemented from lldb_private::SymbolFile.
Definition at line 2925 of file SymbolFileNativePDB.cpp.
References lldb::eLanguageTypeC_plus_plus, lldb_private::npdb::PdbAstBuilder::GetOrCreateDeclForUid(), and GetTypeSystemForLanguage().
|
overridevirtual |
If type_uid points to an array type, return its characteristics.
To support variable-length array types, this function takes an optional ExecutionContext. If exe_ctx is non-null, the dynamic characteristics for that context are returned.
Implements lldb_private::SymbolFile.
Definition at line 2993 of file SymbolFileNativePDB.cpp.
|
private |
Definition at line 1724 of file SymbolFileNativePDB.cpp.
References lldb_private::npdb::CompilandIndexItem::m_file_list, and lldb_private::npdb::CompilandIndexItem::m_strings.
Referenced by ParseInlineSite(), and ParseLineTable().
| std::string SymbolFileNativePDB::GetFunctionCallLabel | ( | PdbCompilandSymId | id | ) |
Build the asm label for the declaration of a function so that calls to it are routed through ResolveFunctionCallLabel.
| id | A symbol ID of a S_LPROC32/S_GPROC32 record |
id is not a function. Definition at line 3385 of file SymbolFileNativePDB.cpp.
References FindMangledSymbol(), lldb_private::GetLog(), LLDB_LOG_ERROR, lldb_private::npdb::CompilandIndexItem::m_debug_stream, m_index, MakeFunctionCallLabel(), and lldb_private::Symbols.
Referenced by GetMethodCallLabel().
|
inline |
Definition at line 178 of file SymbolFileNativePDB.h.
References m_index.
Referenced by lldb_private::npdb::PdbAstBuilderClang::CompleteTagDecl().
| std::string SymbolFileNativePDB::GetMethodCallLabel | ( | llvm::codeview::TypeIndex | method_type, |
| llvm::StringRef | qualified_name ) |
Build the asm label for a method that was declared in the field list of its class.
| method_type | The type of the method in the field list. |
| qualified_name | The name of the method including its class. |
Definition at line 3411 of file SymbolFileNativePDB.cpp.
References FindMethodDefinition(), and GetFunctionCallLabel().
|
private |
Definition at line 1246 of file SymbolFileNativePDB.cpp.
References CreateBlock(), m_blocks, and lldb_private::npdb::toOpaqueUid().
Referenced by CreateBlock(), CreateLocalVariable(), GetOrCreateLocalStaticVariable(), ParseBlocksRecursive(), and ParseVariablesForBlock().
|
private |
Definition at line 1233 of file SymbolFileNativePDB.cpp.
References CreateCompileUnit(), lldb_private::GetLog(), LLDB_LOG, m_compilands, lldb_private::npdb::CompilandIndexItem::m_id, lldb_private::npdb::PdbCompilandId::modi, lldb_private::Symbols, and lldb_private::npdb::toOpaqueUid().
Referenced by AppendFunctionForProcRef(), CreateBlock(), CreateGlobalVariable(), CreateLocalVariable(), GetOrCreateLocalStaticVariable(), ParseCompileUnitAtIndex(), ParseInlineSite(), and ResolveFunctionCallLabel().
|
private |
Definition at line 1223 of file SymbolFileNativePDB.cpp.
References CreateFunction(), m_functions, and lldb_private::npdb::toOpaqueUid().
Referenced by AppendFunctionForProcRef(), CreateBlock(), ParseFunctions(), and ResolveFunctionCallLabel().
|
private |
Definition at line 1207 of file SymbolFileNativePDB.cpp.
References CreateGlobalVariable(), m_global_vars, and lldb_private::npdb::toOpaqueUid().
Referenced by FindGlobalVariables(), and ParseVariablesForCompileUnit().
|
private |
Definition at line 2641 of file SymbolFileNativePDB.cpp.
References lldb::eValueTypeVariableStatic, lldb::eValueTypeVariableThreadLocal, lldb_private::GetLog(), lldb_private::ModuleChild::GetModule(), lldb_private::SymbolFileCommon::GetObjectFile(), GetOrCreateBlock(), GetOrCreateCompileUnit(), GetOrCreateType(), GetTypeSystemForLanguage(), LLDB_LOG_ERROR, m_index, m_local_variables, lldb_private::npdb::MakeGlobalLocationExpression(), lldb_private::npdb::MakeGlobalThreadLocalLocationExpression(), lldb_private::npdb::PdbCompilandSymId::modi, lldb_private::Symbols, and lldb_private::npdb::toOpaqueUid().
Referenced by ParseVariablesForBlock().
|
private |
Definition at line 2630 of file SymbolFileNativePDB.cpp.
References CreateLocalVariable(), m_local_variables, and lldb_private::npdb::toOpaqueUid().
Referenced by ParseVariablesForBlock().
|
private |
|
private |
Definition at line 1034 of file SymbolFileNativePDB.cpp.
References CreateAndCacheType(), lldb_private::SymbolFileCommon::GetTypeList(), lldb_private::TypeList::Insert(), m_types, and lldb_private::npdb::toOpaqueUid().
Referenced by CreateArrayType(), CreateFunction(), CreateFunctionType(), CreateLocalVariable(), CreateModifierType(), CreatePointerType(), CreateProcedureType(), CreateSimpleArgumentListTypes(), CreateSimpleType(), CreateTypedef(), FindTypes(), FindTypesByName(), GetOrCreateLocalStaticVariable(), and ParseTypes().
|
private |
Definition at line 2757 of file SymbolFileNativePDB.cpp.
References CreateTypedef(), m_types, and lldb_private::npdb::toOpaqueUid().
Referenced by FindTypes(), and ParseTypes().
| std::optional< llvm::codeview::TypeIndex > SymbolFileNativePDB::GetParentType | ( | llvm::codeview::TypeIndex | ti | ) |
Definition at line 3251 of file SymbolFileNativePDB.cpp.
References BuildParentMap(), and m_parent_types.
Referenced by GetContextForType().
|
inline |
Definition at line 175 of file SymbolFileNativePDB.h.
References m_index.
|
inline |
Definition at line 176 of file SymbolFileNativePDB.h.
References m_index.
|
static |
Definition at line 372 of file SymbolFileNativePDB.cpp.
Referenced by Initialize().
|
inlineoverridevirtual |
Implements lldb_private::PluginInterface.
Definition at line 173 of file SymbolFileNativePDB.h.
References GetPluginNameStatic().
|
inlinestatic |
Definition at line 65 of file SymbolFileNativePDB.h.
Referenced by GetPluginName(), and Initialize().
|
overridevirtual |
Implements lldb_private::SymbolFile.
Definition at line 3010 of file SymbolFileNativePDB.cpp.
|
overridevirtual |
Reimplemented from lldb_private::SymbolFileCommon.
Definition at line 3037 of file SymbolFileNativePDB.cpp.
References lldb_private::SymbolFileCommon::m_objfile_sp.
Referenced by CreateAndCacheType(), CreateBlock(), CreateConstantSymbol(), CreateFunction(), CreateGlobalVariable(), CreateLocalVariable(), CreateTypedef(), DumpClangAST(), FindNamespace(), GetDeclContextContainingUID(), GetDeclContextForUID(), GetDeclForUID(), and GetOrCreateLocalStaticVariable().
|
static |
Definition at line 360 of file SymbolFileNativePDB.cpp.
References CreateInstance(), DebuggerInitialize(), GetPluginDescriptionStatic(), GetPluginNameStatic(), and lldb_private::PluginManager::RegisterPlugin().
Referenced by SymbolFilePDB::Initialize().
|
overridevirtual |
Initialize the SymbolFile object.
The SymbolFile object with the best set of abilities (detected in "uint32_t SymbolFile::GetAbilities()) will have this function called if it is chosen to parse an object file. More complete initialization can happen in this function which will get called prior to any other functions in the SymbolFile protocol.
Reimplemented from lldb_private::SymbolFile.
Definition at line 431 of file SymbolFileNativePDB.cpp.
References lldb::eLanguageTypeC_plus_plus, lldb_private::GetLog(), LLDB_LOG_ERROR, m_index, m_obj_load_address, lldb_private::SymbolFileCommon::m_objfile_sp, and lldb_private::Symbols.
|
inlineoverridevirtual |
LLVM RTTI support.
Reimplemented from lldb_private::SymbolFileCommon.
Definition at line 52 of file SymbolFileNativePDB.h.
References ID, and lldb_private::SymbolFileCommon::isA().
|
private |
Returns true if udt is a typedef rather than the S_UDT that is emitted for every tag type.
Definition at line 2768 of file SymbolFileNativePDB.cpp.
References lldb_private::npdb::CVTagRecord::create(), lldb_private::npdb::IsTagRecord(), m_index, and lldb_private::npdb::CVTagRecord::name().
Referenced by BuildParentMap(), and ParseTypes().
|
private |
Definition at line 3368 of file SymbolFileNativePDB.cpp.
References lldb_private::SymbolFileCommon::m_objfile_sp, lldb_private::npdb::PdbSymUid::toOpaqueId(), and lldb_private::FunctionCallLabel::toString().
Referenced by GetFunctionCallLabel().
|
overridevirtual |
Implements lldb_private::SymbolFile.
Definition at line 2010 of file SymbolFileNativePDB.cpp.
References lldb_private::npdb::PdbSymUid::asCompilandSym(), lldb_private::Function::GetBlock(), lldb_private::UserID::GetID(), lldb_private::SymbolFile::GetModuleMutex(), GetOrCreateBlock(), m_inline_sites, ParseSymbolArrayInScope(), lldb_private::Block::SetBlockInfoHasBeenParsed(), and lldb_private::npdb::toOpaqueUid().
|
overrideprivatevirtual |
Implements lldb_private::SymbolFileCommon.
Definition at line 1265 of file SymbolFileNativePDB.cpp.
References lldb_private::SymbolFileCommon::GetNumCompileUnits(), GetOrCreateCompileUnit(), and m_index.
Referenced by ResolveSymbolContext().
|
overridevirtual |
Implements lldb_private::SymbolFile.
Definition at line 1718 of file SymbolFileNativePDB.cpp.
|
overridevirtual |
Reimplemented from lldb_private::SymbolFile.
Definition at line 1254 of file SymbolFileNativePDB.cpp.
References lldb_private::TypeSystem::GetNativePDBParser(), lldb_private::CompilerDeclContext::GetTypeSystem(), and lldb_private::npdb::PdbAstBuilder::ParseDeclsForContext().
|
overridevirtual |
Implements lldb_private::SymbolFile.
Definition at line 1403 of file SymbolFileNativePDB.cpp.
References lldb_private::npdb::PdbSymUid::asCompiland(), lldb_private::npdb::Compiland, lldb_private::UserID::GetID(), lldb_private::SymbolFile::GetModuleMutex(), lldb_private::CompileUnit::GetNumFunctions(), GetOrCreateFunction(), lldb_private::npdb::PdbSymUid::kind(), lldb_private::npdb::CompilandIndexItem::m_debug_stream, m_index, and lldb_private::npdb::PdbCompilandId::modi.
|
overridevirtual |
Implements lldb_private::SymbolFile.
Definition at line 1775 of file SymbolFileNativePDB.cpp.
|
private |
Definition at line 1781 of file SymbolFileNativePDB.cpp.
References lldb_private::RangeDataVector< B, S, T, N, Compare >::FindEntryThatContains(), lldb_private::Address::GetFileAddress(), GetFileIndex(), lldb_private::SupportFileList::GetFileSpecAtIndex(), lldb_private::GetLog(), GetOrCreateCompileUnit(), LLDB_LOG_ERROR, lldb_private::npdb::CompilandIndexItem::m_debug_stream, lldb_private::npdb::CompilandIndexItem::m_global_line_table, m_index, lldb_private::npdb::CompilandIndexItem::m_inline_map, m_inline_sites, lldb_private::npdb::PdbCompilandSymId::offset, ParseInlineSite(), lldb_private::Symbols, and lldb_private::npdb::toOpaqueUid().
Referenced by ParseInlineSite(), and ParseLineTable().
|
overridevirtual |
Implements lldb_private::SymbolFile.
Definition at line 1277 of file SymbolFileNativePDB.cpp.
References lldb_private::npdb::PdbSymUid::asCompiland(), lldb_private::npdb::Compiland, lldb::eLanguageTypeUnknown, lldb_private::UserID::GetID(), lldb_private::SymbolFile::GetModuleMutex(), lldb_private::npdb::PdbSymUid::kind(), lldb_private::npdb::CompilandIndexItem::m_compile_opts, m_index, lldb_private::npdb::PdbCompilandId::modi, and TranslateLanguage().
|
overridevirtual |
Implements lldb_private::SymbolFile.
Definition at line 1548 of file SymbolFileNativePDB.cpp.
References lldb_private::RangeDataVector< B, S, T, N, Compare >::Append(), lldb_private::LineTable::AppendLineEntryToSequence(), lldb_private::npdb::PdbSymUid::asCompiland(), lldb_private::RangeDataVector< B, S, T, N, Compare >::Clear(), lldb_private::npdb::Compiland, lldb_private::RangeData< B, S, T >::data, GetFileIndex(), lldb_private::UserID::GetID(), lldb_private::GetLog(), lldb_private::ModuleChild::GetModule(), lldb_private::SymbolFile::GetModuleMutex(), lldb_private::Range< B, S >::GetRangeBase(), lldb_private::npdb::GetSegmentOffsetAndLength(), IsFunctionEpilogue(), IsFunctionPrologue(), lldb_private::npdb::PdbSymUid::kind(), LLDB_INVALID_ADDRESS, LLDB_LOG, LLDB_LOG_ERROR, lldb_private::npdb::CompilandIndexItem::m_debug_stream, lldb_private::npdb::CompilandIndexItem::m_global_line_table, m_index, m_inline_sites, lldb_private::npdb::PdbCompilandId::modi, lldb_private::npdb::SegmentOffset::offset, ParseInlineSite(), ParseSymbolArrayInScope(), lldb_private::npdb::SegmentOffset::segment, lldb_private::CompileUnit::SetLineTable(), lldb_private::Range< B, S >::SetRangeBase(), lldb_private::Range< B, S >::SetRangeEnd(), lldb_private::npdb::SegmentOffsetLength::so, lldb_private::RangeDataVector< B, S, T, N, Compare >::Sort(), lldb_private::Symbols, and lldb_private::npdb::toOpaqueUid().
|
overridevirtual |
Implements lldb_private::SymbolFile.
Definition at line 1750 of file SymbolFileNativePDB.cpp.
References lldb_private::SupportFileList::Append(), lldb_private::npdb::PdbSymUid::asCompiland(), lldb_private::npdb::Compiland, lldb_private::UserID::GetID(), lldb_private::GetLog(), lldb_private::SymbolFile::GetModuleMutex(), lldb_private::npdb::PdbSymUid::kind(), LLDB_LOG, lldb_private::npdb::CompilandIndexItem::m_file_list, m_index, lldb_private::npdb::PdbCompilandId::modi, and lldb_private::Symbols.
|
private |
Definition at line 2035 of file SymbolFileNativePDB.cpp.
References lldb_private::npdb::CompilandIndexItem::m_debug_stream, m_index, lldb_private::npdb::PdbCompilandSymId::modi, and lldb_private::npdb::PdbCompilandSymId::offset.
Referenced by ParseBlocksRecursive(), and ParseLineTable().
|
overridevirtual |
Implements lldb_private::SymbolFile.
Definition at line 2468 of file SymbolFileNativePDB.cpp.
References lldb_private::GetLog(), lldb_private::SymbolFile::GetModuleMutex(), GetOrCreateType(), GetOrCreateTypedef(), lldb_private::TypeList::GetSize(), lldb_private::SymbolFileCommon::GetTypeList(), IsTypedefUdt(), LLDB_LOG_ERROR, m_done_full_type_scan, m_index, and lldb_private::Symbols.
|
private |
Definition at line 2776 of file SymbolFileNativePDB.cpp.
References lldb_private::Block::GetBlockVariableList(), lldb_private::GetLog(), GetOrCreateBlock(), GetOrCreateLocalStaticVariable(), GetOrCreateLocalVariable(), LLDB_LOG, LLDB_LOG_ERROR, lldb_private::npdb::CompilandIndexItem::m_debug_stream, m_index, lldb_private::npdb::PdbCompilandSymId::modi, lldb_private::npdb::PdbCompilandSymId::offset, ParseVariablesForBlock(), lldb_private::Block::SetDidParseVariables(), lldb_private::Block::SetVariableList(), and lldb_private::Symbols.
Referenced by ParseVariablesForBlock(), and ParseVariablesForContext().
|
private |
Definition at line 2509 of file SymbolFileNativePDB.cpp.
References lldb_private::VariableList::AddVariable(), GetOrCreateGlobalVariable(), lldb_private::VariableList::GetSize(), and m_index.
Referenced by ParseVariablesForContext().
|
overridevirtual |
Implements lldb_private::SymbolFile.
Definition at line 2894 of file SymbolFileNativePDB.cpp.
References lldb_private::npdb::PdbSymUid::asCompilandSym(), lldb_private::SymbolContext::block, lldb_private::SymbolContext::comp_unit, lldb_private::SymbolContext::function, lldb_private::UserID::GetID(), lldb_private::GetLog(), lldb_private::SymbolFile::GetModuleMutex(), lldb_private::CompileUnit::GetVariableList(), LLDB_LOG, ParseVariablesForBlock(), ParseVariablesForCompileUnit(), lldb_private::CompileUnit::SetVariableList(), and lldb_private::Symbols.
|
overridevirtual |
Resolves the function corresponding to the specified LLDB function call label.
| [in,out] | label | The FunctionCallLabel to be resolved. |
label couldn't be resolved. Returns the resolved function (as a SymbolContext) otherwise. Reimplemented from lldb_private::SymbolFile.
Definition at line 3462 of file SymbolFileNativePDB.cpp.
References lldb_private::npdb::PdbSymUid::asCompilandSym(), lldb_private::npdb::CompilandSym, lldb_private::FunctionCallLabel::discriminator, lldb_private::SymbolFile::GetModuleMutex(), GetOrCreateCompileUnit(), GetOrCreateFunction(), lldb_private::npdb::PdbSymUid::kind(), m_index, lldb_private::npdb::PdbCompilandSymId::modi, and lldb_private::FunctionCallLabel::symbol_id.
|
overridevirtual |
Implements lldb_private::SymbolFile.
|
overridevirtual |
Reimplemented from lldb_private::SymbolFile.
Definition at line 1525 of file SymbolFileNativePDB.cpp.
References lldb_private::SourceLocationSpec::GetFileSpec(), lldb_private::SymbolFile::GetModuleMutex(), lldb_private::SymbolFileCommon::GetNumCompileUnits(), lldb_private::CompileUnit::GetPrimaryFile(), lldb_private::SymbolContextList::GetSize(), lldb_private::FileSpec::Match(), ParseCompileUnitAtIndex(), and lldb_private::CompileUnit::ResolveSymbolContext().
|
overridevirtual |
Implements lldb_private::SymbolFile.
Definition at line 2966 of file SymbolFileNativePDB.cpp.
References lldb_private::npdb::PdbSymUid::asTypeSym(), CreateAndCacheType(), lldb_private::SymbolFile::GetModuleMutex(), lldb_private::npdb::PdbTypeSymId::index, lldb_private::npdb::PdbSymUid::kind(), m_types, and lldb_private::npdb::Type.
|
private |
Definition at line 3545 of file SymbolFileNativePDB.cpp.
References CacheUdtDeclarations(), lldb_private::npdb::PdbTypeSymId::index, m_cached_udt_declarations, m_index, and m_udt_declarations.
Referenced by CreateClassStructUnion().
|
private |
Definition at line 3327 of file SymbolFileNativePDB.cpp.
References error(), lldb_private::GetLog(), lldb_private::npdb::PdbTypeSymId::index, LLDB_LOG, m_index, and lldb_private::Symbols.
Referenced by FindMangledSymbol().
|
static |
Definition at line 366 of file SymbolFileNativePDB.cpp.
References CreateInstance(), and lldb_private::PluginManager::UnregisterPlugin().
Referenced by SymbolFilePDB::Terminate().
|
friend |
Definition at line 44 of file SymbolFileNativePDB.h.
References UdtRecordCompleter.
Referenced by UdtRecordCompleter.
|
private |
Definition at line 335 of file SymbolFileNativePDB.h.
|
staticprivate |
LLVM RTTI support.
Definition at line 47 of file SymbolFileNativePDB.h.
|
private |
Definition at line 329 of file SymbolFileNativePDB.h.
Referenced by CalculateAbilities().
|
private |
Definition at line 342 of file SymbolFileNativePDB.h.
Referenced by CreateBlock(), and GetOrCreateBlock().
|
private |
Definition at line 362 of file SymbolFileNativePDB.h.
Referenced by ResolveUdtDeclaration().
|
private |
Definition at line 344 of file SymbolFileNativePDB.h.
Referenced by GetOrCreateCompileUnit().
|
private |
Definition at line 332 of file SymbolFileNativePDB.h.
Referenced by ParseTypes().
|
private |
Definition at line 337 of file SymbolFileNativePDB.h.
Referenced by CalculateAbilities().
|
private |
basename -> Global ID(s)
Definition at line 371 of file SymbolFileNativePDB.h.
Referenced by CacheGlobalBaseNames(), FindFunctions(), and FindFunctions().
|
private |
mangled name/full function name -> Global ID(s)
Definition at line 369 of file SymbolFileNativePDB.h.
Referenced by CacheGlobalBaseNames(), FindFunctions(), and FindFunctions().
|
private |
method basename -> Global ID(s)
Definition at line 373 of file SymbolFileNativePDB.h.
Referenced by CacheGlobalBaseNames(), and FindFunctions().
|
private |
Definition at line 343 of file SymbolFileNativePDB.h.
Referenced by GetOrCreateFunction().
|
private |
global variable basename -> Global ID(s)
Definition at line 376 of file SymbolFileNativePDB.h.
Referenced by CacheGlobalBaseNames(), and FindGlobalVariables().
|
private |
Definition at line 340 of file SymbolFileNativePDB.h.
Referenced by GetOrCreateGlobalVariable().
|
private |
Definition at line 338 of file SymbolFileNativePDB.h.
Referenced by AddSymbols(), AppendFunctionForProcRef(), BuildParentMap(), CacheGlobalBaseNames(), CacheUdtDeclarations(), CalculateAbilities(), CalculateNumCompileUnits(), CreateAndCacheType(), CreateBlock(), CreateCompileUnit(), CreateConstantSymbol(), CreateFunction(), CreateGlobalVariable(), CreateLocalVariable(), CreateModifierType(), CreateSimpleArgumentListTypes(), CreateType(), CreateTypedef(), FindMangledSymbol(), FindMethodDefinition(), FindSymbolScope(), FindTypesByName(), GetContextForType(), GetContextForTypedef(), GetDebugInfoSize(), GetFunctionCallLabel(), GetIndex(), GetOrCreateLocalStaticVariable(), GetPDBFile(), GetPDBFile(), InitializeObject(), IsTypedefUdt(), ParseCompileUnitAtIndex(), ParseFunctions(), ParseInlineSite(), ParseLanguage(), ParseLineTable(), ParseSupportFiles(), ParseSymbolArrayInScope(), ParseTypes(), ParseVariablesForBlock(), ParseVariablesForCompileUnit(), ResolveFunctionCallLabel(), ResolveUdtDeclaration(), and StripMangledFunctionName().
|
private |
Definition at line 346 of file SymbolFileNativePDB.h.
Referenced by CreateBlock(), ParseBlocksRecursive(), ParseInlineSite(), and ParseLineTable().
|
private |
Definition at line 341 of file SymbolFileNativePDB.h.
Referenced by CreateLocalVariable(), GetOrCreateLocalStaticVariable(), and GetOrCreateLocalVariable().
|
private |
Definition at line 331 of file SymbolFileNativePDB.h.
Referenced by InitializeObject().
|
private |
Definition at line 350 of file SymbolFileNativePDB.h.
Referenced by BuildParentMap().
|
private |
Definition at line 348 of file SymbolFileNativePDB.h.
Referenced by BuildParentMap(), and GetParentType().
|
private |
Definition at line 364 of file SymbolFileNativePDB.h.
Referenced by BuildParentMap(), and FindTypes().
|
private |
typedef basename -> Global ID(s) of its S_UDT
Definition at line 366 of file SymbolFileNativePDB.h.
Referenced by BuildParentMap(), and FindTypes().
|
private |
Definition at line 345 of file SymbolFileNativePDB.h.
Referenced by CreateAndCacheType(), GetOrCreateType(), GetOrCreateTypedef(), and ResolveTypeUID().
|
private |
Definition at line 361 of file SymbolFileNativePDB.h.
Referenced by CacheUdtDeclarations(), and ResolveUdtDeclaration().