LLDB  mainline
Classes | Public Member Functions | Static Public Member Functions | Private Types | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
SymbolFilePDB Class Reference

#include <SymbolFilePDB.h>

Inheritance diagram for SymbolFilePDB:
Inheritance graph
[legend]
Collaboration diagram for SymbolFilePDB:
Collaboration graph
[legend]

Classes

struct  SecContribInfo
 

Public Member Functions

 SymbolFilePDB (lldb::ObjectFileSP objfile_sp)
 
 ~SymbolFilePDB () override
 
uint32_t CalculateAbilities () override
 
void InitializeObject () override
 Initialize the SymbolFile object. More...
 
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, lldb_private::FileSpecList &support_files) override
 
size_t ParseTypes (lldb_private::CompileUnit &comp_unit) override
 
bool ParseImportedModules (const lldb_private::SymbolContext &sc, std::vector< lldb_private::SourceModule > &imported_modules) override
 
size_t ParseBlocksRecursive (lldb_private::Function &func) override
 
size_t ParseVariablesForContext (const lldb_private::SymbolContext &sc) override
 
lldb_private::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 (lldb_private::CompilerType &compiler_type) override
 
lldb_private::CompilerDecl GetDeclForUID (lldb::user_id_t uid) override
 
lldb_private::CompilerDeclContext GetDeclContextForUID (lldb::user_id_t uid) override
 
lldb_private::CompilerDeclContext GetDeclContextContainingUID (lldb::user_id_t uid) override
 
void ParseDeclsForContext (lldb_private::CompilerDeclContext decl_ctx) override
 
uint32_t ResolveSymbolContext (const lldb_private::Address &so_addr, lldb::SymbolContextItem resolve_scope, lldb_private::SymbolContext &sc) override
 
uint32_t ResolveSymbolContext (const lldb_private::SourceLocationSpec &src_location_spec, lldb::SymbolContextItem resolve_scope, lldb_private::SymbolContextList &sc_list) override
 
void FindGlobalVariables (lldb_private::ConstString name, const lldb_private::CompilerDeclContext &parent_decl_ctx, uint32_t max_matches, lldb_private::VariableList &variables) override
 
void FindGlobalVariables (const lldb_private::RegularExpression &regex, uint32_t max_matches, lldb_private::VariableList &variables) override
 
void FindFunctions (lldb_private::ConstString name, const lldb_private::CompilerDeclContext &parent_decl_ctx, lldb::FunctionNameType name_type_mask, bool include_inlines, lldb_private::SymbolContextList &sc_list) override
 
void FindFunctions (const lldb_private::RegularExpression &regex, bool include_inlines, lldb_private::SymbolContextList &sc_list) override
 
void GetMangledNamesForFunction (const std::string &scope_qualified_name, std::vector< lldb_private::ConstString > &mangled_names) override
 
void AddSymbols (lldb_private::Symtab &symtab) override
 
void FindTypes (lldb_private::ConstString name, const lldb_private::CompilerDeclContext &parent_decl_ctx, uint32_t max_matches, llvm::DenseSet< lldb_private::SymbolFile * > &searched_symbol_files, lldb_private::TypeMap &types) override
 
void FindTypes (llvm::ArrayRef< lldb_private::CompilerContext > pattern, lldb_private::LanguageSet languages, llvm::DenseSet< SymbolFile * > &searched_symbol_files, lldb_private::TypeMap &types) override
 
void FindTypesByRegex (const lldb_private::RegularExpression &regex, uint32_t max_matches, lldb_private::TypeMap &types)
 
void GetTypes (lldb_private::SymbolContextScope *sc_scope, lldb::TypeClass type_mask, lldb_private::TypeList &type_list) override
 
llvm::Expected< lldb_private::TypeSystem & > GetTypeSystemForLanguage (lldb::LanguageType language) override
 
lldb_private::CompilerDeclContext FindNamespace (lldb_private::ConstString name, const lldb_private::CompilerDeclContext &parent_decl_ctx) override
 
lldb_private::ConstString GetPluginName () override
 
uint32_t GetPluginVersion () override
 
llvm::pdb::IPDBSession & GetPDBSession ()
 
const llvm::pdb::IPDBSession & GetPDBSession () const
 
void DumpClangAST (lldb_private::Stream &s) override
 
- Public Member Functions inherited from lldb_private::SymbolFile
 SymbolFile (lldb::ObjectFileSP objfile_sp)
 
 ~SymbolFile () override
 
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 ParseSupportFiles (CompileUnit &comp_unit, FileSpecList &support_files)=0
 
virtual bool ParseIsOptimized (CompileUnit &comp_unit)
 
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 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)
 
- 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 (lldb_private::Debugger &debugger)
 
static lldb_private::ConstString GetPluginNameStatic ()
 
static const char * GetPluginDescriptionStatic ()
 
static lldb_private::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 Types

using SecContribsMap = std::map< uint32_t, std::vector< SecContribInfo > >
 
typedef std::vector< lldb_private::Type * > TypeCollection
 

Private Member Functions

uint32_t CalculateNumCompileUnits () override
 
lldb::CompUnitSP ParseCompileUnitAtIndex (uint32_t index) override
 
lldb::CompUnitSP ParseCompileUnitForUID (uint32_t id, uint32_t index=UINT32_MAX)
 
bool ParseCompileUnitLineTable (lldb_private::CompileUnit &comp_unit, uint32_t match_line)
 
void BuildSupportFileIdToSupportFileIndexMap (const llvm::pdb::PDBSymbolCompiland &pdb_compiland, llvm::DenseMap< uint32_t, uint32_t > &index_map) const
 
void FindTypesByName (llvm::StringRef name, const lldb_private::CompilerDeclContext &parent_decl_ctx, uint32_t max_matches, lldb_private::TypeMap &types)
 
std::string GetMangledForPDBData (const llvm::pdb::PDBSymbolData &pdb_data)
 
lldb::VariableSP ParseVariableForPDBData (const lldb_private::SymbolContext &sc, const llvm::pdb::PDBSymbolData &pdb_data)
 
size_t ParseVariables (const lldb_private::SymbolContext &sc, const llvm::pdb::PDBSymbol &pdb_data, lldb_private::VariableList *variable_list=nullptr)
 
lldb::CompUnitSP GetCompileUnitContainsAddress (const lldb_private::Address &so_addr)
 
void GetTypesForPDBSymbol (const llvm::pdb::PDBSymbol &pdb_symbol, uint32_t type_mask, TypeCollection &type_collection)
 
lldb_private::FunctionParseCompileUnitFunctionForPDBFunc (const llvm::pdb::PDBSymbolFunc &pdb_func, lldb_private::CompileUnit &comp_unit)
 
void GetCompileUnitIndex (const llvm::pdb::PDBSymbolCompiland &pdb_compiland, uint32_t &index)
 
PDBASTParserGetPDBAstParser ()
 
std::unique_ptr< llvm::pdb::PDBSymbolCompiland > GetPDBCompilandByUID (uint32_t uid)
 
lldb_private::Mangled GetMangledForPDBFunc (const llvm::pdb::PDBSymbolFunc &pdb_func)
 
bool ResolveFunction (const llvm::pdb::PDBSymbolFunc &pdb_func, bool include_inlines, lldb_private::SymbolContextList &sc_list)
 
bool ResolveFunction (uint32_t uid, bool include_inlines, lldb_private::SymbolContextList &sc_list)
 
void CacheFunctionNames ()
 
bool DeclContextMatchesThisSymbolFile (const lldb_private::CompilerDeclContext &decl_ctx)
 
uint32_t GetCompilandId (const llvm::pdb::PDBSymbolData &data)
 

Private Attributes

llvm::DenseMap< uint32_t, lldb::CompUnitSP > m_comp_units
 
llvm::DenseMap< uint32_t, lldb::TypeSP > m_types
 
llvm::DenseMap< uint32_t, lldb::VariableSP > m_variables
 
llvm::DenseMap< uint64_t, std::stringm_public_names
 
SecContribsMap m_sec_contribs
 
std::vector< lldb::TypeSP > m_builtin_types
 
std::unique_ptr< llvm::pdb::IPDBSession > m_session_up
 
std::unique_ptr< llvm::pdb::PDBSymbolExe > m_global_scope_up
 
lldb_private::UniqueCStringMap< uint32_tm_func_full_names
 
lldb_private::UniqueCStringMap< uint32_tm_func_base_names
 
lldb_private::UniqueCStringMap< uint32_tm_func_method_names
 

Static Private Attributes

static char ID
 LLVM RTTI support. More...
 
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 24 of file SymbolFilePDB.h.

Member Typedef Documentation

◆ SecContribsMap

using SymbolFilePDB::SecContribsMap = std::map<uint32_t, std::vector<SecContribInfo> >
private

Definition at line 180 of file SymbolFilePDB.h.

◆ TypeCollection

typedef std::vector<lldb_private::Type *> SymbolFilePDB::TypeCollection
private

Definition at line 213 of file SymbolFilePDB.h.

Constructor & Destructor Documentation

◆ SymbolFilePDB()

SymbolFilePDB::SymbolFilePDB ( lldb::ObjectFileSP  objfile_sp)

Definition at line 128 of file SymbolFilePDB.cpp.

◆ ~SymbolFilePDB()

SymbolFilePDB::~SymbolFilePDB ( )
override

Definition at line 131 of file SymbolFilePDB.cpp.

Member Function Documentation

◆ AddSymbols()

void SymbolFilePDB::AddSymbols ( lldb_private::Symtab symtab)
overridevirtual

◆ BuildSupportFileIdToSupportFileIndexMap()

void SymbolFilePDB::BuildSupportFileIdToSupportFileIndexMap ( const llvm::pdb::PDBSymbolCompiland &  pdb_compiland,
llvm::DenseMap< uint32_t, uint32_t > &  index_map 
) const
private

Definition at line 1866 of file SymbolFilePDB.cpp.

References m_session_up.

Referenced by ParseCompileUnitLineTable().

◆ CacheFunctionNames()

void SymbolFilePDB::CacheFunctionNames ( )
private

◆ CalculateAbilities()

uint32_t SymbolFilePDB::CalculateAbilities ( )
overridevirtual

◆ CalculateNumCompileUnits()

uint32_t SymbolFilePDB::CalculateNumCompileUnits ( )
overrideprivatevirtual

Implements lldb_private::SymbolFile.

Definition at line 197 of file SymbolFilePDB.cpp.

References lldbassert, m_global_scope_up, and string().

◆ classof()

static bool SymbolFilePDB::classof ( const SymbolFile obj)
inlinestatic

Definition at line 34 of file SymbolFilePDB.h.

References ID.

◆ CompleteType()

bool SymbolFilePDB::CompleteType ( lldb_private::CompilerType compiler_type)
overridevirtual

◆ CreateInstance()

lldb_private::SymbolFile * SymbolFilePDB::CreateInstance ( lldb::ObjectFileSP  objfile_sp)
static

Definition at line 124 of file SymbolFilePDB.cpp.

◆ DebuggerInitialize()

void SymbolFilePDB::DebuggerInitialize ( lldb_private::Debugger debugger)
static

Definition at line 112 of file SymbolFilePDB.cpp.

◆ DeclContextMatchesThisSymbolFile()

bool SymbolFilePDB::DeclContextMatchesThisSymbolFile ( const lldb_private::CompilerDeclContext decl_ctx)
private

◆ DumpClangAST()

void SymbolFilePDB::DumpClangAST ( lldb_private::Stream s)
overridevirtual

◆ FindFunctions() [1/2]

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

◆ FindFunctions() [2/2]

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

Reimplemented from lldb_private::SymbolFile.

◆ FindGlobalVariables() [1/2]

void SymbolFilePDB::FindGlobalVariables ( const lldb_private::RegularExpression regex,
uint32_t  max_matches,
lldb_private::VariableList variables 
)
overridevirtual

◆ FindGlobalVariables() [2/2]

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

◆ FindNamespace()

lldb_private::CompilerDeclContext SymbolFilePDB::FindNamespace ( lldb_private::ConstString  name,
const lldb_private::CompilerDeclContext parent_decl_ctx 
)
overridevirtual

◆ FindTypes() [1/2]

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

◆ FindTypes() [2/2]

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

◆ FindTypesByName()

void SymbolFilePDB::FindTypesByName ( llvm::StringRef  name,
const lldb_private::CompilerDeclContext parent_decl_ctx,
uint32_t  max_matches,
lldb_private::TypeMap types 
)
private

◆ FindTypesByRegex()

void SymbolFilePDB::FindTypesByRegex ( const lldb_private::RegularExpression regex,
uint32_t  max_matches,
lldb_private::TypeMap types 
)

◆ GetCompilandId()

uint32_t SymbolFilePDB::GetCompilandId ( const llvm::pdb::PDBSymbolData &  data)
private

Definition at line 1995 of file SymbolFilePDB.cpp.

References m_sec_contribs, and m_session_up.

Referenced by FindGlobalVariables(), and ParseVariablesForContext().

◆ GetCompileUnitContainsAddress()

lldb::CompUnitSP SymbolFilePDB::GetCompileUnitContainsAddress ( const lldb_private::Address so_addr)
private

◆ GetCompileUnitIndex()

void SymbolFilePDB::GetCompileUnitIndex ( const llvm::pdb::PDBSymbolCompiland &  pdb_compiland,
uint32_t index 
)
private

◆ GetDeclContextContainingUID()

lldb_private::CompilerDeclContext SymbolFilePDB::GetDeclContextContainingUID ( lldb::user_id_t  uid)
overridevirtual

◆ GetDeclContextForUID()

lldb_private::CompilerDeclContext SymbolFilePDB::GetDeclContextForUID ( lldb::user_id_t  uid)
overridevirtual

◆ GetDeclForUID()

lldb_private::CompilerDecl SymbolFilePDB::GetDeclForUID ( lldb::user_id_t  uid)
overridevirtual

◆ GetDynamicArrayInfoForUID()

llvm::Optional< SymbolFile::ArrayInfo > SymbolFilePDB::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 583 of file SymbolFilePDB.cpp.

◆ GetMangledForPDBData()

std::string SymbolFilePDB::GetMangledForPDBData ( const llvm::pdb::PDBSymbolData &  pdb_data)
private

Definition at line 900 of file SymbolFilePDB.cpp.

References m_global_scope_up, and m_public_names.

Referenced by ParseVariableForPDBData().

◆ GetMangledForPDBFunc()

Mangled SymbolFilePDB::GetMangledForPDBFunc ( const llvm::pdb::PDBSymbolFunc &  pdb_func)
private

Definition at line 1910 of file SymbolFilePDB.cpp.

References lldbassert, m_global_scope_up, and string().

Referenced by ParseCompileUnitFunctionForPDBFunc().

◆ GetMangledNamesForFunction()

void SymbolFilePDB::GetMangledNamesForFunction ( const std::string scope_qualified_name,
std::vector< lldb_private::ConstString > &  mangled_names 
)
overridevirtual

Reimplemented from lldb_private::SymbolFile.

Definition at line 1372 of file SymbolFilePDB.cpp.

◆ GetPDBAstParser()

PDBASTParser * SymbolFilePDB::GetPDBAstParser ( )
private

◆ GetPDBCompilandByUID()

std::unique_ptr< llvm::pdb::PDBSymbolCompiland > SymbolFilePDB::GetPDBCompilandByUID ( uint32_t  uid)
private

◆ GetPDBSession() [1/2]

const IPDBSession & SymbolFilePDB::GetPDBSession ( )

◆ GetPDBSession() [2/2]

const llvm::pdb::IPDBSession& SymbolFilePDB::GetPDBSession ( ) const

◆ GetPluginDescriptionStatic()

const char * SymbolFilePDB::GetPluginDescriptionStatic ( )
static

Definition at line 119 of file SymbolFilePDB.cpp.

◆ GetPluginName()

lldb_private::ConstString SymbolFilePDB::GetPluginName ( )
overridevirtual

Implements lldb_private::PluginInterface.

Definition at line 1708 of file SymbolFilePDB.cpp.

◆ GetPluginNameStatic()

lldb_private::ConstString SymbolFilePDB::GetPluginNameStatic ( )
static

Definition at line 114 of file SymbolFilePDB.cpp.

◆ GetPluginVersion()

uint32_t SymbolFilePDB::GetPluginVersion ( )
overridevirtual

Implements lldb_private::PluginInterface.

Definition at line 1713 of file SymbolFilePDB.cpp.

◆ GetTypes()

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

◆ GetTypesForPDBSymbol()

void SymbolFilePDB::GetTypesForPDBSymbol ( const llvm::pdb::PDBSymbol &  pdb_symbol,
uint32_t  type_mask,
TypeCollection type_collection 
)
private

Definition at line 1568 of file SymbolFilePDB.cpp.

References ResolveTypeUID().

Referenced by GetTypes().

◆ GetTypeSystemForLanguage()

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

◆ Initialize()

void SymbolFilePDB::Initialize ( )
static

Definition at line 94 of file SymbolFilePDB.cpp.

References ShouldUseNativeReader().

◆ InitializeObject()

void SymbolFilePDB::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 187 of file SymbolFilePDB.cpp.

References LLDB_INVALID_ADDRESS, lldbassert, m_global_scope_up, lldb_private::SymbolFile::m_objfile_sp, and m_session_up.

◆ isA()

bool SymbolFilePDB::isA ( const void *  ClassID) const
inlineoverridevirtual

LLVM RTTI support.

Reimplemented from lldb_private::SymbolFile.

Definition at line 31 of file SymbolFilePDB.h.

References ID.

◆ ParseBlocksRecursive()

size_t SymbolFilePDB::ParseBlocksRecursive ( lldb_private::Function func)
overridevirtual

◆ ParseCompileUnitAtIndex()

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

◆ ParseCompileUnitForUID()

lldb::CompUnitSP SymbolFilePDB::ParseCompileUnitForUID ( uint32_t  id,
uint32_t  index = UINT32_MAX 
)
private

◆ ParseCompileUnitFunctionForPDBFunc()

lldb_private::Function * SymbolFilePDB::ParseCompileUnitFunctionForPDBFunc ( const llvm::pdb::PDBSymbolFunc &  pdb_func,
lldb_private::CompileUnit comp_unit 
)
private

◆ ParseCompileUnitLineTable()

bool SymbolFilePDB::ParseCompileUnitLineTable ( lldb_private::CompileUnit comp_unit,
uint32_t  match_line 
)
private

◆ ParseDebugMacros()

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

Implements lldb_private::SymbolFile.

Definition at line 348 of file SymbolFilePDB.cpp.

◆ ParseDeclsForContext()

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

◆ ParseFunctions()

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

◆ ParseImportedModules()

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

Implements lldb_private::SymbolFile.

Definition at line 377 of file SymbolFilePDB.cpp.

◆ ParseLanguage()

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

◆ ParseLineTable()

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

◆ ParseSupportFiles()

bool SymbolFilePDB::ParseSupportFiles ( lldb_private::CompileUnit comp_unit,
lldb_private::FileSpecList &  support_files 
)
override

◆ ParseTypes()

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

◆ ParseVariableForPDBData()

VariableSP SymbolFilePDB::ParseVariableForPDBData ( const lldb_private::SymbolContext sc,
const llvm::pdb::PDBSymbolData &  pdb_data 
)
private

◆ ParseVariables()

size_t SymbolFilePDB::ParseVariables ( const lldb_private::SymbolContext sc,
const llvm::pdb::PDBSymbol &  pdb_data,
lldb_private::VariableList variable_list = nullptr 
)
private

◆ ParseVariablesForContext()

size_t SymbolFilePDB::ParseVariablesForContext ( const lldb_private::SymbolContext sc)
overridevirtual

◆ ResolveFunction() [1/2]

bool SymbolFilePDB::ResolveFunction ( const llvm::pdb::PDBSymbolFunc &  pdb_func,
bool  include_inlines,
lldb_private::SymbolContextList sc_list 
)
private

◆ ResolveFunction() [2/2]

bool SymbolFilePDB::ResolveFunction ( uint32_t  uid,
bool  include_inlines,
lldb_private::SymbolContextList sc_list 
)
private

Definition at line 1193 of file SymbolFilePDB.cpp.

References m_session_up, and ResolveFunction().

◆ ResolveSymbolContext() [1/2]

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

◆ ResolveSymbolContext() [2/2]

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

Reimplemented from lldb_private::SymbolFile.

◆ ResolveTypeUID()

lldb_private::Type * SymbolFilePDB::ResolveTypeUID ( lldb::user_id_t  type_uid)
overridevirtual

◆ Terminate()

void SymbolFilePDB::Terminate ( )
static

Definition at line 104 of file SymbolFilePDB.cpp.

References ShouldUseNativeReader().

Member Data Documentation

◆ ID

char SymbolFilePDB::ID
staticprivate

LLVM RTTI support.

Definition at line 26 of file SymbolFilePDB.h.

Referenced by classof(), and isA().

◆ m_builtin_types

std::vector<lldb::TypeSP> SymbolFilePDB::m_builtin_types
private

Definition at line 255 of file SymbolFilePDB.h.

◆ m_comp_units

llvm::DenseMap<uint32_t, lldb::CompUnitSP> SymbolFilePDB::m_comp_units
private

Definition at line 248 of file SymbolFilePDB.h.

Referenced by ParseCompileUnitForUID().

◆ m_func_base_names

lldb_private::UniqueCStringMap<uint32_t> SymbolFilePDB::m_func_base_names
private

Definition at line 260 of file SymbolFilePDB.h.

Referenced by CacheFunctionNames(), and FindFunctions().

◆ m_func_full_names

lldb_private::UniqueCStringMap<uint32_t> SymbolFilePDB::m_func_full_names
private

Definition at line 259 of file SymbolFilePDB.h.

Referenced by CacheFunctionNames(), and FindFunctions().

◆ m_func_method_names

lldb_private::UniqueCStringMap<uint32_t> SymbolFilePDB::m_func_method_names
private

Definition at line 261 of file SymbolFilePDB.h.

Referenced by CacheFunctionNames().

◆ m_global_scope_up

std::unique_ptr<llvm::pdb::PDBSymbolExe> SymbolFilePDB::m_global_scope_up
private

◆ m_public_names

llvm::DenseMap<uint64_t, std::string> SymbolFilePDB::m_public_names
private

Definition at line 251 of file SymbolFilePDB.h.

Referenced by GetMangledForPDBData().

◆ m_sec_contribs

SecContribsMap SymbolFilePDB::m_sec_contribs
private

Definition at line 253 of file SymbolFilePDB.h.

Referenced by GetCompilandId().

◆ m_session_up

std::unique_ptr<llvm::pdb::IPDBSession> SymbolFilePDB::m_session_up
private

◆ m_types

llvm::DenseMap<uint32_t, lldb::TypeSP> SymbolFilePDB::m_types
private

Definition at line 249 of file SymbolFilePDB.h.

Referenced by FindTypesByName(), FindTypesByRegex(), and ResolveTypeUID().

◆ m_variables

llvm::DenseMap<uint32_t, lldb::VariableSP> SymbolFilePDB::m_variables
private

Definition at line 250 of file SymbolFilePDB.h.

Referenced by ParseVariableForPDBData(), and ParseVariables().


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