LLDB  mainline
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | Friends | List of all members
lldb_private::npdb::SymbolFileNativePDB Class Reference

#include <SymbolFileNativePDB.h>

Inheritance diagram for lldb_private::npdb::SymbolFileNativePDB:
Inheritance graph
[legend]
Collaboration diagram for lldb_private::npdb::SymbolFileNativePDB:
Collaboration graph
[legend]

Public Member Functions

 SymbolFileNativePDB (lldb::ObjectFileSP objfile_sp)
 
 ~SymbolFileNativePDB () override
 
uint32_t CalculateAbilities () override
 
void InitializeObject () override
 Initialize the SymbolFile object. More...
 
uint64_t GetDebugInfoSize () override
 Metrics gathering functions. More...
 
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, FileSpecList &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
 
TypeResolveTypeUID (lldb::user_id_t type_uid) override
 
llvm::Optional< ArrayInfoGetDynamicArrayInfoForUID (lldb::user_id_t type_uid, const lldb_private::ExecutionContext *exe_ctx) override
 If type_uid points to an array type, return its characteristics. More...
 
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 (ConstString name, const CompilerDeclContext &parent_decl_ctx, lldb::FunctionNameType name_type_mask, bool include_inlines, SymbolContextList &sc_list) override
 
void FindFunctions (const RegularExpression &regex, bool include_inlines, SymbolContextList &sc_list) override
 
void FindTypes (ConstString name, const CompilerDeclContext &parent_decl_ctx, uint32_t max_matches, llvm::DenseSet< SymbolFile * > &searched_symbol_files, TypeMap &types) override
 
void FindTypes (llvm::ArrayRef< CompilerContext > pattern, LanguageSet languages, llvm::DenseSet< SymbolFile * > &searched_symbol_files, TypeMap &types) override
 
llvm::Expected< TypeSystem & > GetTypeSystemForLanguage (lldb::LanguageType language) override
 
CompilerDeclContext FindNamespace (ConstString name, const CompilerDeclContext &parent_decl_ctx) override
 
llvm::StringRef GetPluginName () override
 
llvm::pdb::PDBFile & GetPDBFile ()
 
const llvm::pdb::PDBFile & GetPDBFile () const
 
void DumpClangAST (Stream &s) override
 
- Public Member Functions inherited from lldb_private::SymbolFile
 SymbolFile (lldb::ObjectFileSP objfile_sp)
 
 ~SymbolFile () override=default
 
uint32_t GetAbilities ()
 Get a mask of what this symbol file supports for the object file that it was constructed with. More...
 
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. More...
 
uint32_t GetNumCompileUnits ()
 
lldb::CompUnitSP GetCompileUnitAtIndex (uint32_t idx)
 
SymtabGetSymtab ()
 
virtual XcodeSDK ParseXcodeSDK (CompileUnit &comp_unit)
 Return the Xcode SDK comp_unit was compiled against. More...
 
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. More...
 
virtual bool ParseIsOptimized (CompileUnit &comp_unit)
 
virtual void FindGlobalVariables (const RegularExpression &regex, uint32_t max_matches, VariableList &variables)
 
virtual void FindTypes (ConstString name, const CompilerDeclContext &parent_decl_ctx, uint32_t max_matches, llvm::DenseSet< lldb_private::SymbolFile * > &searched_symbol_files, TypeMap &types)
 
virtual void FindTypes (llvm::ArrayRef< CompilerContext > pattern, LanguageSet languages, llvm::DenseSet< lldb_private::SymbolFile * > &searched_symbol_files, TypeMap &types)
 Find types specified by a CompilerContextPattern. More...
 
virtual void GetMangledNamesForFunction (const std::string &scope_qualified_name, std::vector< ConstString > &mangled_names)
 
virtual void PreloadSymbols ()
 
ObjectFileGetObjectFile ()
 
const ObjectFileGetObjectFile () const
 
ObjectFileGetMainObjectFile ()
 
virtual std::vector< std::unique_ptr< CallEdge > > ParseCallEdgesInFunction (UserID func_id)
 
virtual void SectionFileAddressesChanged ()
 Notify the SymbolFile that the file addresses in the Sections for this module have been changed. More...
 
virtual lldb::UnwindPlanSP GetUnwindPlan (const Address &address, const RegisterInfoResolver &resolver)
 
virtual llvm::Expected< lldb::addr_tGetParameterStackSize (Symbol &symbol)
 Return the number of stack bytes taken up by the parameters to this function. More...
 
virtual void Dump (Stream &s)
 
virtual StatsDuration GetDebugInfoParseTime ()
 Return the time taken to parse the debug information. More...
 
virtual StatsDuration GetDebugInfoIndexTime ()
 Return the time it took to index the debug information in the object file. More...
 
- Public Member Functions inherited from lldb_private::PluginInterface
 PluginInterface ()=default
 
virtual ~PluginInterface ()=default
 
 PluginInterface (const PluginInterface &)=delete
 
PluginInterfaceoperator= (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 SymbolFileCreateInstance (lldb::ObjectFileSP objfile_sp)
 
- Static Public Member Functions inherited from lldb_private::SymbolFile
static SymbolFileFindPlugin (lldb::ObjectFileSP objfile_sp)
 
static bool classof (const SymbolFile *obj)
 

Private Member Functions

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)
 
BlockGetOrCreateBlock (PdbCompilandSymId block_id)
 
lldb::VariableSP GetOrCreateLocalVariable (PdbCompilandSymId scope_id, PdbCompilandSymId var_id, bool is_param)
 
lldb::TypeSP GetOrCreateTypedef (PdbGlobalSymId id)
 
lldb::FunctionSP CreateFunction (PdbCompilandSymId func_id, CompileUnit &comp_unit)
 
BlockCreateBlock (PdbCompilandSymId block_id)
 
lldb::VariableSP CreateLocalVariable (PdbCompilandSymId scope_id, PdbCompilandSymId var_id, bool is_param)
 
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)
 

Private Attributes

llvm::BumpPtrAllocator m_allocator
 
lldb::addr_t m_obj_load_address = 0
 
bool m_done_full_type_scan = false
 
std::unique_ptr< llvm::pdb::PDBFile > m_file_up
 
std::unique_ptr< PdbIndexm_index
 
std::unique_ptr< PdbAstBuilderm_ast
 
llvm::DenseMap< lldb::user_id_t, lldb::VariableSP > m_global_vars
 
llvm::DenseMap< lldb::user_id_t, lldb::VariableSP > m_local_variables
 
llvm::DenseMap< lldb::user_id_t, lldb::BlockSP > m_blocks
 
llvm::DenseMap< lldb::user_id_t, lldb::FunctionSP > m_functions
 
llvm::DenseMap< lldb::user_id_t, lldb::CompUnitSP > m_compilands
 
llvm::DenseMap< lldb::user_id_t, lldb::TypeSP > m_types
 

Static Private Attributes

static char ID
 LLVM RTTI support. More...
 

Friends

class UdtRecordCompleter
 
bool isA (const void *ClassID) const override
 LLVM RTTI support. More...
 
static bool classof (const SymbolFile *obj)
 

Additional Inherited Members

- Public Types inherited from lldb_private::SymbolFile
enum  Abilities {
  CompileUnits = (1u << 0), LineTables = (1u << 1), Functions = (1u << 2), Blocks = (1u << 3),
  GlobalVariables = (1u << 4), LocalVariables = (1u << 5), VariableTypes = (1u << 6), kAllAbilities = ((1u << 7) - 1u)
}
 
- Protected Member Functions inherited from lldb_private::SymbolFile
void AssertModuleLock ()
 
virtual TypeListGetTypeList ()
 
void SetCompileUnitAtIndex (uint32_t idx, const lldb::CompUnitSP &cu_sp)
 
- Protected Attributes inherited from lldb_private::SymbolFile
lldb::ObjectFileSP m_objfile_sp
 
llvm::Optional< std::vector< lldb::CompUnitSP > > m_compile_units
 
TypeList m_type_list
 
Symtabm_symtab = nullptr
 
uint32_t m_abilities
 
bool m_calculated_abilities
 

Detailed Description

Definition at line 41 of file SymbolFileNativePDB.h.

Constructor & Destructor Documentation

◆ SymbolFileNativePDB()

SymbolFileNativePDB::SymbolFileNativePDB ( lldb::ObjectFileSP  objfile_sp)

Definition at line 251 of file SymbolFileNativePDB.cpp.

◆ ~SymbolFileNativePDB()

SymbolFileNativePDB::~SymbolFileNativePDB ( )
overridedefault

Member Function Documentation

◆ AddSymbols()

void SymbolFileNativePDB::AddSymbols ( Symtab symtab)
overridevirtual

Reimplemented from lldb_private::SymbolFile.

Definition at line 903 of file SymbolFileNativePDB.cpp.

◆ CalculateAbilities()

uint32_t SymbolFileNativePDB::CalculateAbilities ( )
overridevirtual

◆ CalculateNumCompileUnits()

uint32_t SymbolFileNativePDB::CalculateNumCompileUnits ( )
overrideprivatevirtual

Implements lldb_private::SymbolFile.

Definition at line 315 of file SymbolFileNativePDB.cpp.

References m_index.

◆ classof()

static bool lldb_private::npdb::SymbolFileNativePDB::classof ( const SymbolFile obj)
inlinestatic

Definition at line 53 of file SymbolFileNativePDB.h.

References ID, and lldb_private::SymbolFile::isA().

◆ CompleteType()

bool SymbolFileNativePDB::CompleteType ( CompilerType compiler_type)
overridevirtual

◆ CreateAndCacheType()

TypeSP SymbolFileNativePDB::CreateAndCacheType ( PdbTypeSymId  type_id)
private

◆ CreateArrayType()

TypeSP SymbolFileNativePDB::CreateArrayType ( PdbTypeSymId  type_id,
const llvm::codeview::ArrayRecord &  ar,
CompilerType  ct 
)
private

◆ CreateBlock()

Block & SymbolFileNativePDB::CreateBlock ( PdbCompilandSymId  block_id)
private

◆ CreateClassStructUnion()

lldb::TypeSP SymbolFileNativePDB::CreateClassStructUnion ( PdbTypeSymId  type_id,
const llvm::codeview::TagRecord &  record,
size_t  size,
CompilerType  ct 
)
private

◆ CreateCompileUnit()

CompUnitSP SymbolFileNativePDB::CreateCompileUnit ( const CompilandIndexItem cci)
private

◆ CreateConstantSymbol()

lldb::VariableSP SymbolFileNativePDB::CreateConstantSymbol ( PdbGlobalSymId  var_id,
const llvm::codeview::CVSymbol &  cvs 
)
private

◆ CreateFunction()

lldb::FunctionSP SymbolFileNativePDB::CreateFunction ( PdbCompilandSymId  func_id,
CompileUnit comp_unit 
)
private

◆ CreateFunctionType()

TypeSP SymbolFileNativePDB::CreateFunctionType ( PdbTypeSymId  type_id,
const llvm::codeview::MemberFunctionRecord &  pr,
CompilerType  ct 
)
private

◆ CreateGlobalVariable()

VariableSP SymbolFileNativePDB::CreateGlobalVariable ( PdbGlobalSymId  var_id)
private

◆ CreateInstance()

SymbolFile * SymbolFileNativePDB::CreateInstance ( lldb::ObjectFileSP  objfile_sp)
static

Definition at line 247 of file SymbolFileNativePDB.cpp.

◆ CreateLocalVariable()

VariableSP SymbolFileNativePDB::CreateLocalVariable ( PdbCompilandSymId  scope_id,
PdbCompilandSymId  var_id,
bool  is_param 
)
private

◆ CreateModifierType()

lldb::TypeSP SymbolFileNativePDB::CreateModifierType ( PdbTypeSymId  type_id,
const llvm::codeview::ModifierRecord &  mr,
CompilerType  ct 
)
private

◆ CreatePointerType()

lldb::TypeSP SymbolFileNativePDB::CreatePointerType ( PdbTypeSymId  type_id,
const llvm::codeview::PointerRecord &  pr,
CompilerType  ct 
)
private

◆ CreateProcedureType()

TypeSP SymbolFileNativePDB::CreateProcedureType ( PdbTypeSymId  type_id,
const llvm::codeview::ProcedureRecord &  pr,
CompilerType  ct 
)
private

◆ CreateSimpleType()

lldb::TypeSP SymbolFileNativePDB::CreateSimpleType ( llvm::codeview::TypeIndex  ti,
CompilerType  ct 
)
private

◆ CreateTagType() [1/3]

lldb::TypeSP lldb_private::npdb::SymbolFileNativePDB::CreateTagType ( PdbTypeSymId  type_id,
const llvm::codeview::ClassRecord &  cr,
CompilerType  ct 
)
private

Referenced by CreateType().

◆ CreateTagType() [2/3]

lldb::TypeSP lldb_private::npdb::SymbolFileNativePDB::CreateTagType ( PdbTypeSymId  type_id,
const llvm::codeview::EnumRecord &  er,
CompilerType  ct 
)
private

◆ CreateTagType() [3/3]

lldb::TypeSP lldb_private::npdb::SymbolFileNativePDB::CreateTagType ( PdbTypeSymId  type_id,
const llvm::codeview::UnionRecord &  ur,
CompilerType  ct 
)
private

◆ CreateType()

TypeSP SymbolFileNativePDB::CreateType ( PdbTypeSymId  type_id,
CompilerType  ct 
)
private

◆ CreateTypedef()

TypeSP SymbolFileNativePDB::CreateTypedef ( PdbGlobalSymId  id)
private

◆ DebuggerInitialize()

void SymbolFileNativePDB::DebuggerInitialize ( Debugger debugger)
static

Definition at line 241 of file SymbolFileNativePDB.cpp.

◆ DumpClangAST()

void SymbolFileNativePDB::DumpClangAST ( Stream s)
overridevirtual

Reimplemented from lldb_private::SymbolFile.

Definition at line 1151 of file SymbolFileNativePDB.cpp.

References m_ast.

◆ FindFunctions() [1/2]

void SymbolFileNativePDB::FindFunctions ( const RegularExpression regex,
bool  include_inlines,
SymbolContextList sc_list 
)
overridevirtual

Reimplemented from lldb_private::SymbolFile.

Definition at line 1214 of file SymbolFileNativePDB.cpp.

◆ FindFunctions() [2/2]

void lldb_private::npdb::SymbolFileNativePDB::FindFunctions ( ConstString  name,
const CompilerDeclContext parent_decl_ctx,
lldb::FunctionNameType  name_type_mask,
bool  include_inlines,
SymbolContextList sc_list 
)
overridevirtual

Reimplemented from lldb_private::SymbolFile.

◆ FindGlobalVariables()

void SymbolFileNativePDB::FindGlobalVariables ( ConstString  name,
const CompilerDeclContext parent_decl_ctx,
uint32_t  max_matches,
VariableList variables 
)
overridevirtual

◆ FindNamespace()

CompilerDeclContext SymbolFileNativePDB::FindNamespace ( ConstString  name,
const CompilerDeclContext parent_decl_ctx 
)
overridevirtual

Reimplemented from lldb_private::SymbolFile.

Definition at line 1550 of file SymbolFileNativePDB.cpp.

◆ FindTypes() [1/2]

void SymbolFileNativePDB::FindTypes ( ConstString  name,
const CompilerDeclContext parent_decl_ctx,
uint32_t  max_matches,
llvm::DenseSet< SymbolFile * > &  searched_symbol_files,
TypeMap types 
)
override

◆ FindTypes() [2/2]

void SymbolFileNativePDB::FindTypes ( llvm::ArrayRef< CompilerContext pattern,
LanguageSet  languages,
llvm::DenseSet< SymbolFile * > &  searched_symbol_files,
TypeMap types 
)
override

Definition at line 1233 of file SymbolFileNativePDB.cpp.

◆ FindTypesByName()

void SymbolFileNativePDB::FindTypesByName ( llvm::StringRef  name,
uint32_t  max_matches,
TypeMap types 
)
private

Definition at line 1237 of file SymbolFileNativePDB.cpp.

References GetOrCreateType(), lldb_private::TypeMap::Insert(), and m_index.

Referenced by FindTypes().

◆ GetDebugInfoSize()

uint64_t SymbolFileNativePDB::GetDebugInfoSize ( )
overridevirtual

Metrics gathering functions.

Return the size in bytes of all debug information 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.

Reimplemented from lldb_private::SymbolFile.

Definition at line 1565 of file SymbolFileNativePDB.cpp.

References m_index.

◆ GetDeclContextContainingUID()

CompilerDeclContext SymbolFileNativePDB::GetDeclContextContainingUID ( lldb::user_id_t  uid)
overridevirtual

Reimplemented from lldb_private::SymbolFile.

Definition at line 1505 of file SymbolFileNativePDB.cpp.

References m_ast.

◆ GetDeclContextForUID()

CompilerDeclContext SymbolFileNativePDB::GetDeclContextForUID ( lldb::user_id_t  uid)
overridevirtual

Reimplemented from lldb_private::SymbolFile.

Definition at line 1495 of file SymbolFileNativePDB.cpp.

References m_ast.

◆ GetDeclForUID()

CompilerDecl SymbolFileNativePDB::GetDeclForUID ( lldb::user_id_t  uid)
overridevirtual

Reimplemented from lldb_private::SymbolFile.

Definition at line 1487 of file SymbolFileNativePDB.cpp.

References m_ast.

◆ GetDynamicArrayInfoForUID()

llvm::Optional< SymbolFile::ArrayInfo > SymbolFileNativePDB::GetDynamicArrayInfoForUID ( lldb::user_id_t  type_uid,
const lldb_private::ExecutionContext exe_ctx 
)
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 1532 of file SymbolFileNativePDB.cpp.

◆ GetOrCreateBlock()

Block & SymbolFileNativePDB::GetOrCreateBlock ( PdbCompilandSymId  block_id)
private

◆ GetOrCreateCompileUnit()

CompUnitSP SymbolFileNativePDB::GetOrCreateCompileUnit ( const CompilandIndexItem cci)
private

◆ GetOrCreateFunction()

FunctionSP SymbolFileNativePDB::GetOrCreateFunction ( PdbCompilandSymId  func_id,
CompileUnit comp_unit 
)
private

◆ GetOrCreateGlobalVariable()

VariableSP SymbolFileNativePDB::GetOrCreateGlobalVariable ( PdbGlobalSymId  var_id)
private

◆ GetOrCreateLocalVariable()

VariableSP SymbolFileNativePDB::GetOrCreateLocalVariable ( PdbCompilandSymId  scope_id,
PdbCompilandSymId  var_id,
bool  is_param 
)
private

◆ GetOrCreateType() [1/2]

lldb::TypeSP lldb_private::npdb::SymbolFileNativePDB::GetOrCreateType ( llvm::codeview::TypeIndex  ti)
private

◆ GetOrCreateType() [2/2]

TypeSP SymbolFileNativePDB::GetOrCreateType ( PdbTypeSymId  type_id)
private

◆ GetOrCreateTypedef()

TypeSP SymbolFileNativePDB::GetOrCreateTypedef ( PdbGlobalSymId  id)
private

Definition at line 1369 of file SymbolFileNativePDB.cpp.

References CreateTypedef(), m_types, and lldb_private::npdb::toOpaqueUid().

Referenced by ParseTypes().

◆ GetPDBFile() [1/2]

llvm::pdb::PDBFile& lldb_private::npdb::SymbolFileNativePDB::GetPDBFile ( )
inline

Definition at line 158 of file SymbolFileNativePDB.h.

References m_index.

◆ GetPDBFile() [2/2]

const llvm::pdb::PDBFile& lldb_private::npdb::SymbolFileNativePDB::GetPDBFile ( ) const
inline

Definition at line 159 of file SymbolFileNativePDB.h.

References m_index.

◆ GetPluginDescriptionStatic()

llvm::StringRef SymbolFileNativePDB::GetPluginDescriptionStatic ( )
static

Definition at line 243 of file SymbolFileNativePDB.cpp.

◆ GetPluginName()

llvm::StringRef lldb_private::npdb::SymbolFileNativePDB::GetPluginName ( )
inlineoverridevirtual

Implements lldb_private::PluginInterface.

Definition at line 156 of file SymbolFileNativePDB.h.

References GetPluginNameStatic().

◆ GetPluginNameStatic()

static llvm::StringRef lldb_private::npdb::SymbolFileNativePDB::GetPluginNameStatic ( )
inlinestatic

Definition at line 63 of file SymbolFileNativePDB.h.

Referenced by GetPluginName().

◆ GetTypes()

void SymbolFileNativePDB::GetTypes ( SymbolContextScope sc_scope,
lldb::TypeClass  type_mask,
TypeList type_list 
)
overridevirtual

Implements lldb_private::SymbolFile.

Definition at line 1545 of file SymbolFileNativePDB.cpp.

◆ GetTypeSystemForLanguage()

llvm::Expected< TypeSystem & > SymbolFileNativePDB::GetTypeSystemForLanguage ( lldb::LanguageType  language)
overridevirtual

Reimplemented from lldb_private::SymbolFile.

Definition at line 1556 of file SymbolFileNativePDB.cpp.

References lldb_private::SymbolFile::m_objfile_sp.

◆ Initialize()

void SymbolFileNativePDB::Initialize ( )
static

Definition at line 231 of file SymbolFileNativePDB.cpp.

◆ InitializeObject()

void SymbolFileNativePDB::InitializeObject ( )
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 294 of file SymbolFileNativePDB.cpp.

References lldb::eLanguageTypeC_plus_plus, lldb_private::GetLogIfAnyCategoriesSet(), LIBLLDB_LOG_SYMBOLS, LLDB_LOG_ERROR, lldbassert, m_ast, m_index, m_obj_load_address, and lldb_private::SymbolFile::m_objfile_sp.

◆ isA()

bool lldb_private::npdb::SymbolFileNativePDB::isA ( const void *  ClassID) const
inlineoverridevirtual

LLVM RTTI support.

Reimplemented from lldb_private::SymbolFile.

Definition at line 50 of file SymbolFileNativePDB.h.

References ID, and lldb_private::SymbolFile::isA().

◆ ParseBlocksRecursive()

size_t SymbolFileNativePDB::ParseBlocksRecursive ( Function func)
overridevirtual

◆ ParseCompileUnitAtIndex()

lldb::CompUnitSP SymbolFileNativePDB::ParseCompileUnitAtIndex ( uint32_t  index)
overrideprivatevirtual

◆ ParseDebugMacros()

bool SymbolFileNativePDB::ParseDebugMacros ( lldb_private::CompileUnit comp_unit)
overridevirtual

Implements lldb_private::SymbolFile.

Definition at line 1115 of file SymbolFileNativePDB.cpp.

◆ ParseDeclsForContext()

void SymbolFileNativePDB::ParseDeclsForContext ( lldb_private::CompilerDeclContext  decl_ctx)
overridevirtual

Reimplemented from lldb_private::SymbolFile.

Definition at line 869 of file SymbolFileNativePDB.cpp.

References m_ast.

◆ ParseFunctions()

size_t SymbolFileNativePDB::ParseFunctions ( lldb_private::CompileUnit comp_unit)
overridevirtual

◆ ParseImportedModules()

bool SymbolFileNativePDB::ParseImportedModules ( const SymbolContext sc,
std::vector< lldb_private::SourceModule > &  imported_modules 
)
overridevirtual

Implements lldb_private::SymbolFile.

Definition at line 1138 of file SymbolFileNativePDB.cpp.

◆ ParseLanguage()

lldb::LanguageType SymbolFileNativePDB::ParseLanguage ( lldb_private::CompileUnit comp_unit)
overridevirtual

◆ ParseLineTable()

bool SymbolFileNativePDB::ParseLineTable ( lldb_private::CompileUnit comp_unit)
overridevirtual

◆ ParseSupportFiles()

bool SymbolFileNativePDB::ParseSupportFiles ( lldb_private::CompileUnit comp_unit,
FileSpecList &  support_files 
)
overridevirtual

◆ ParseTypes()

size_t SymbolFileNativePDB::ParseTypes ( lldb_private::CompileUnit comp_unit)
overridevirtual

◆ ParseVariablesForBlock()

size_t SymbolFileNativePDB::ParseVariablesForBlock ( PdbCompilandSymId  block_id)
private

◆ ParseVariablesForCompileUnit()

size_t SymbolFileNativePDB::ParseVariablesForCompileUnit ( CompileUnit comp_unit,
VariableList variables 
)
private

◆ ParseVariablesForContext()

size_t SymbolFileNativePDB::ParseVariablesForContext ( const SymbolContext sc)
overridevirtual

◆ ResolveSymbolContext() [1/2]

uint32_t lldb_private::npdb::SymbolFileNativePDB::ResolveSymbolContext ( const Address so_addr,
lldb::SymbolContextItem  resolve_scope,
SymbolContext sc 
)
overridevirtual

◆ ResolveSymbolContext() [2/2]

uint32_t SymbolFileNativePDB::ResolveSymbolContext ( const SourceLocationSpec src_location_spec,
lldb::SymbolContextItem  resolve_scope,
SymbolContextList sc_list 
)
overridevirtual

Reimplemented from lldb_private::SymbolFile.

Definition at line 998 of file SymbolFileNativePDB.cpp.

◆ ResolveTypeUID()

Type * SymbolFileNativePDB::ResolveTypeUID ( lldb::user_id_t  type_uid)
overridevirtual

◆ Terminate()

void SymbolFileNativePDB::Terminate ( )
static

Definition at line 237 of file SymbolFileNativePDB.cpp.

Friends And Related Function Documentation

◆ UdtRecordCompleter

friend class UdtRecordCompleter
friend

Definition at line 42 of file SymbolFileNativePDB.h.

Member Data Documentation

◆ ID

char SymbolFileNativePDB::ID
staticprivate

LLVM RTTI support.

Definition at line 45 of file SymbolFileNativePDB.h.

Referenced by classof(), and isA().

◆ m_allocator

llvm::BumpPtrAllocator lldb_private::npdb::SymbolFileNativePDB::m_allocator
private

Definition at line 228 of file SymbolFileNativePDB.h.

Referenced by CalculateAbilities().

◆ m_ast

std::unique_ptr<PdbAstBuilder> lldb_private::npdb::SymbolFileNativePDB::m_ast
private

◆ m_blocks

llvm::DenseMap<lldb::user_id_t, lldb::BlockSP> lldb_private::npdb::SymbolFileNativePDB::m_blocks
private

Definition at line 240 of file SymbolFileNativePDB.h.

Referenced by CreateBlock(), and GetOrCreateBlock().

◆ m_compilands

llvm::DenseMap<lldb::user_id_t, lldb::CompUnitSP> lldb_private::npdb::SymbolFileNativePDB::m_compilands
private

Definition at line 242 of file SymbolFileNativePDB.h.

Referenced by GetOrCreateCompileUnit().

◆ m_done_full_type_scan

bool lldb_private::npdb::SymbolFileNativePDB::m_done_full_type_scan = false
private

Definition at line 231 of file SymbolFileNativePDB.h.

Referenced by ParseTypes().

◆ m_file_up

std::unique_ptr<llvm::pdb::PDBFile> lldb_private::npdb::SymbolFileNativePDB::m_file_up
private

Definition at line 233 of file SymbolFileNativePDB.h.

Referenced by CalculateAbilities().

◆ m_functions

llvm::DenseMap<lldb::user_id_t, lldb::FunctionSP> lldb_private::npdb::SymbolFileNativePDB::m_functions
private

Definition at line 241 of file SymbolFileNativePDB.h.

Referenced by GetOrCreateFunction().

◆ m_global_vars

llvm::DenseMap<lldb::user_id_t, lldb::VariableSP> lldb_private::npdb::SymbolFileNativePDB::m_global_vars
private

Definition at line 238 of file SymbolFileNativePDB.h.

Referenced by GetOrCreateGlobalVariable().

◆ m_index

std::unique_ptr<PdbIndex> lldb_private::npdb::SymbolFileNativePDB::m_index
private

◆ m_local_variables

llvm::DenseMap<lldb::user_id_t, lldb::VariableSP> lldb_private::npdb::SymbolFileNativePDB::m_local_variables
private

Definition at line 239 of file SymbolFileNativePDB.h.

Referenced by CreateLocalVariable(), and GetOrCreateLocalVariable().

◆ m_obj_load_address

lldb::addr_t lldb_private::npdb::SymbolFileNativePDB::m_obj_load_address = 0
private

Definition at line 230 of file SymbolFileNativePDB.h.

Referenced by InitializeObject().

◆ m_types

llvm::DenseMap<lldb::user_id_t, lldb::TypeSP> lldb_private::npdb::SymbolFileNativePDB::m_types
private

The documentation for this class was generated from the following files: