LLDB  mainline
Classes | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Static Private Attributes | List of all members
lldb_private::SymbolFile Class Referenceabstract

#include <SymbolFile.h>

Inheritance diagram for lldb_private::SymbolFile:
Inheritance graph
[legend]
Collaboration diagram for lldb_private::SymbolFile:
Collaboration graph
[legend]

Classes

struct  ArrayInfo
 The characteristics of an array type. More...
 
struct  RegisterInfoResolver
 

Public Types

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)
}
 

Public Member Functions

 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 uint32_t CalculateAbilities ()=0
 
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...
 
virtual void InitializeObject ()
 Initialize the SymbolFile object. More...
 
uint32_t GetNumCompileUnits ()
 
lldb::CompUnitSP GetCompileUnitAtIndex (uint32_t idx)
 
SymtabGetSymtab ()
 
virtual lldb::LanguageType ParseLanguage (CompileUnit &comp_unit)=0
 
virtual XcodeSDK ParseXcodeSDK (CompileUnit &comp_unit)
 Return the Xcode SDK comp_unit was compiled against. More...
 
virtual size_t ParseFunctions (CompileUnit &comp_unit)=0
 
virtual bool ParseLineTable (CompileUnit &comp_unit)=0
 
virtual bool ParseDebugMacros (CompileUnit &comp_unit)=0
 
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 size_t ParseTypes (CompileUnit &comp_unit)=0
 
virtual bool ParseIsOptimized (CompileUnit &comp_unit)
 
virtual bool ParseImportedModules (const SymbolContext &sc, std::vector< SourceModule > &imported_modules)=0
 
virtual size_t ParseBlocksRecursive (Function &func)=0
 
virtual size_t ParseVariablesForContext (const SymbolContext &sc)=0
 
virtual TypeResolveTypeUID (lldb::user_id_t type_uid)=0
 
virtual llvm::Optional< ArrayInfoGetDynamicArrayInfoForUID (lldb::user_id_t type_uid, const lldb_private::ExecutionContext *exe_ctx)=0
 If type_uid points to an array type, return its characteristics. More...
 
virtual bool CompleteType (CompilerType &compiler_type)=0
 
virtual void ParseDeclsForContext (CompilerDeclContext decl_ctx)
 
virtual CompilerDecl GetDeclForUID (lldb::user_id_t uid)
 
virtual CompilerDeclContext GetDeclContextForUID (lldb::user_id_t uid)
 
virtual CompilerDeclContext GetDeclContextContainingUID (lldb::user_id_t uid)
 
virtual uint32_t ResolveSymbolContext (const Address &so_addr, lldb::SymbolContextItem resolve_scope, SymbolContext &sc)=0
 
virtual uint32_t ResolveSymbolContext (const FileSpec &file_spec, uint32_t line, bool check_inlines, lldb::SymbolContextItem resolve_scope, SymbolContextList &sc_list)
 
virtual void DumpClangAST (Stream &s)
 
virtual void FindGlobalVariables (ConstString name, const CompilerDeclContext &parent_decl_ctx, uint32_t max_matches, VariableList &variables)
 
virtual void FindGlobalVariables (const RegularExpression &regex, uint32_t max_matches, VariableList &variables)
 
virtual void FindFunctions (ConstString name, const CompilerDeclContext &parent_decl_ctx, lldb::FunctionNameType name_type_mask, bool include_inlines, SymbolContextList &sc_list)
 
virtual void FindFunctions (const RegularExpression &regex, bool include_inlines, SymbolContextList &sc_list)
 
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 GetTypes (lldb_private::SymbolContextScope *sc_scope, lldb::TypeClass type_mask, lldb_private::TypeList &type_list)=0
 
virtual void PreloadSymbols ()
 
virtual llvm::Expected< lldb_private::TypeSystem & > GetTypeSystemForLanguage (lldb::LanguageType language)
 
virtual CompilerDeclContext FindNamespace (ConstString name, const CompilerDeclContext &parent_decl_ctx)
 
ObjectFileGetObjectFile ()
 
const ObjectFileGetObjectFile () const
 
ObjectFileGetMainObjectFile ()
 
virtual std::vector< std::unique_ptr< CallEdge > > ParseCallEdgesInFunction (UserID func_id)
 
virtual void AddSymbols (Symtab &symtab)
 
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
virtual ~PluginInterface ()
 
virtual ConstString GetPluginName ()=0
 
virtual uint32_t GetPluginVersion ()=0
 

Static Public Member Functions

static SymbolFileFindPlugin (lldb::ObjectFileSP objfile_sp)
 

Protected Member Functions

void AssertModuleLock ()
 
virtual uint32_t CalculateNumCompileUnits ()=0
 
virtual lldb::CompUnitSP ParseCompileUnitAtIndex (uint32_t idx)=0
 
virtual TypeListGetTypeList ()
 
void SetCompileUnitAtIndex (uint32_t idx, const lldb::CompUnitSP &cu_sp)
 

Protected Attributes

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
 

Private Member Functions

 SymbolFile (const SymbolFile &)=delete
 
const SymbolFileoperator= (const SymbolFile &)=delete
 

Static Private Attributes

static char ID
 LLVM RTTI support. More...
 
virtual bool isA (const void *ClassID) const
 LLVM RTTI support. More...
 
static bool classof (const SymbolFile *obj)
 

Detailed Description

Definition at line 36 of file SymbolFile.h.

Member Enumeration Documentation

◆ Abilities

Enumerator
CompileUnits 
LineTables 
Functions 
Blocks 
GlobalVariables 
LocalVariables 
VariableTypes 
kAllAbilities 

Definition at line 53 of file SymbolFile.h.

Constructor & Destructor Documentation

◆ SymbolFile() [1/2]

lldb_private::SymbolFile::SymbolFile ( lldb::ObjectFileSP  objfile_sp)
inline

Definition at line 67 of file SymbolFile.h.

Referenced by SymbolFileDWARFDebugMap::GetOSOIndexFromUserID().

◆ ~SymbolFile()

lldb_private::SymbolFile::~SymbolFile ( )
inlineoverride

Definition at line 71 of file SymbolFile.h.

◆ SymbolFile() [2/2]

lldb_private::SymbolFile::SymbolFile ( const SymbolFile )
privatedelete

Member Function Documentation

◆ AddSymbols()

virtual void lldb_private::SymbolFile::AddSymbols ( Symtab symtab)
inlinevirtual

◆ AssertModuleLock()

void SymbolFile::AssertModuleLock ( )
protected

Definition at line 143 of file SymbolFile.cpp.

Referenced by GetParameterStackSize().

◆ CalculateAbilities()

virtual uint32_t lldb_private::SymbolFile::CalculateAbilities ( )
pure virtual

◆ CalculateNumCompileUnits()

virtual uint32_t lldb_private::SymbolFile::CalculateNumCompileUnits ( )
protectedpure virtual

◆ classof()

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

Definition at line 44 of file SymbolFile.h.

References isA().

◆ CompleteType()

virtual bool lldb_private::SymbolFile::CompleteType ( CompilerType compiler_type)
pure virtual

◆ Dump()

void SymbolFile::Dump ( Stream s)
virtual

◆ DumpClangAST()

virtual void lldb_private::SymbolFile::DumpClangAST ( Stream s)
inlinevirtual

◆ FindFunctions() [1/2]

void SymbolFile::FindFunctions ( ConstString  name,
const CompilerDeclContext parent_decl_ctx,
lldb::FunctionNameType  name_type_mask,
bool  include_inlines,
SymbolContextList sc_list 
)
virtual

◆ FindFunctions() [2/2]

void SymbolFile::FindFunctions ( const RegularExpression regex,
bool  include_inlines,
SymbolContextList sc_list 
)
virtual

◆ FindGlobalVariables() [1/2]

void SymbolFile::FindGlobalVariables ( ConstString  name,
const CompilerDeclContext parent_decl_ctx,
uint32_t  max_matches,
VariableList variables 
)
virtual

◆ FindGlobalVariables() [2/2]

void SymbolFile::FindGlobalVariables ( const RegularExpression regex,
uint32_t  max_matches,
VariableList variables 
)
virtual

Reimplemented in SymbolFileDWARF, SymbolFilePDB, and SymbolFileDWARFDebugMap.

Definition at line 112 of file SymbolFile.cpp.

◆ FindNamespace()

virtual CompilerDeclContext lldb_private::SymbolFile::FindNamespace ( ConstString  name,
const CompilerDeclContext parent_decl_ctx 
)
inlinevirtual

◆ FindPlugin()

SymbolFile * SymbolFile::FindPlugin ( lldb::ObjectFileSP  objfile_sp)
static

◆ FindTypes() [1/2]

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

Definition at line 132 of file SymbolFile.cpp.

Referenced by DumpClangAST().

◆ FindTypes() [2/2]

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

Find types specified by a CompilerContextPattern.

Parameters
languagesOnly return results in these languages.
searched_symbol_filesPrevents one file from being visited multiple times.

◆ ForEachExternalModule()

virtual bool lldb_private::SymbolFile::ForEachExternalModule ( lldb_private::CompileUnit comp_unit,
llvm::DenseSet< lldb_private::SymbolFile *> &  visited_symbol_files,
llvm::function_ref< bool(Module &)>  lambda 
)
inlinevirtual

Apply a lambda to each external lldb::Module referenced by this comp_unit.

Recursively also descends into the referenced external modules of any encountered compilation unit.

This function can be used to traverse Clang -gmodules debug information, which is stored in DWARF files separate from the object files.

Parameters
comp_unitWhen this SymbolFile consists of multiple auxilliary SymbolFiles, for example, a Darwin debug map that references multiple .o files, comp_unit helps choose the auxilliary file. In most other cases comp_unit's symbol file is identical with *this.
[in]lambdaThe lambda that should be applied to every function. The lambda can return true if the iteration should be aborted earlier.
visited_symbol_filesA set of SymbolFiles that were already visited to avoid visiting one file more than once.
Returns
If the lambda early-exited, this function returns true to propagate the early exit.

Definition at line 164 of file SymbolFile.h.

References ParseSupportFiles(), and ParseTypes().

◆ GetAbilities()

uint32_t lldb_private::SymbolFile::GetAbilities ( )
inline

Get a mask of what this symbol file supports for the object file that it was constructed with.

Each symbol file gets to respond with a mask of abilities that it supports for each object file. This happens when we are trying to figure out which symbol file plug-in will get used for a given object file. The plug-in that responds with the best mix of "SymbolFile::Abilities" bits set, will get chosen to be the symbol file parser. This allows each plug-in to check for sections that contain data a symbol file plug-in would need. For example the DWARF plug-in requires DWARF sections in a file that contain debug information. If the DWARF plug-in doesn't find these sections, it won't respond with many ability bits set, and we will probably fall back to the symbol table SymbolFile plug-in which uses any information in the symbol table. Also, plug-ins might check for some specific symbols in a symbol table in the case where the symbol table contains debug information (STABS and COFF). Not a lot of work should happen in these functions as the plug-in might not get selected due to another plug-in having more abilities. Any initialization work should be saved for "void SymbolFile::InitializeObject()" which will get called on the SymbolFile object with the best set of abilities.

Returns
A uint32_t mask containing bits from the SymbolFile::Abilities enumeration. Any bits that are set represent an ability that this symbol plug-in can parse from the object file.

Definition at line 100 of file SymbolFile.h.

References CalculateAbilities(), GetModuleMutex(), m_abilities, and m_calculated_abilities.

◆ GetCompileUnitAtIndex()

CompUnitSP SymbolFile::GetCompileUnitAtIndex ( uint32_t  idx)

Definition at line 167 of file SymbolFile.cpp.

Referenced by InitializeObject(), and lldb_private::Module::ParseAllDebugSymbols().

◆ GetDeclContextContainingUID()

virtual CompilerDeclContext lldb_private::SymbolFile::GetDeclContextContainingUID ( lldb::user_id_t  uid)
inlinevirtual

◆ GetDeclContextForUID()

virtual CompilerDeclContext lldb_private::SymbolFile::GetDeclContextForUID ( lldb::user_id_t  uid)
inlinevirtual

◆ GetDeclForUID()

virtual CompilerDecl lldb_private::SymbolFile::GetDeclForUID ( lldb::user_id_t  uid)
inlinevirtual

◆ GetDynamicArrayInfoForUID()

virtual llvm::Optional<ArrayInfo> lldb_private::SymbolFile::GetDynamicArrayInfoForUID ( lldb::user_id_t  type_uid,
const lldb_private::ExecutionContext exe_ctx 
)
pure virtual

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.

Implemented in SymbolFileDWARF, lldb_private::npdb::SymbolFileNativePDB, lldb_private::breakpad::SymbolFileBreakpad, SymbolFilePDB, SymbolFileDWARFDebugMap, and SymbolFileSymtab.

Referenced by GetDynamicArrayInfo().

◆ GetMainObjectFile()

ObjectFile * SymbolFile::GetMainObjectFile ( )

Definition at line 36 of file SymbolFile.cpp.

References lldb_private::ModuleChild::GetModule().

Referenced by GetObjectFile().

◆ GetMangledNamesForFunction()

void SymbolFile::GetMangledNamesForFunction ( const std::string &  scope_qualified_name,
std::vector< ConstString > &  mangled_names 
)
virtual

Reimplemented in SymbolFileDWARF, and SymbolFilePDB.

Definition at line 126 of file SymbolFile.cpp.

Referenced by DumpClangAST(), and FindBestAlternateMangledName().

◆ GetModuleMutex()

std::recursive_mutex & SymbolFile::GetModuleMutex ( ) const
virtual

Symbols file subclasses should override this to return the Module that owns the TypeSystem that this symbol file modifies type information in.

Reimplemented in SymbolFileDWARF.

Definition at line 33 of file SymbolFile.cpp.

Referenced by SymbolFilePDB::AddSymbols(), SymbolFilePDB::CacheFunctionNames(), SymbolFileDWARFDebugMap::CompleteType(), SymbolFileDWARFDebugMap::FindCompleteObjCDefinitionTypeForDIE(), SymbolFileDWARFDebugMap::FindFunctions(), SymbolFilePDB::FindFunctions(), lldb_private::npdb::SymbolFileNativePDB::FindGlobalVariables(), SymbolFileDWARFDebugMap::FindGlobalVariables(), SymbolFilePDB::FindGlobalVariables(), SymbolFileDWARFDebugMap::FindNamespace(), SymbolFilePDB::FindNamespace(), lldb_private::npdb::SymbolFileNativePDB::FindTypes(), SymbolFileDWARFDebugMap::ForEachExternalModule(), GetAbilities(), SymbolFileDWARFDebugMap::GetTypes(), SymbolFilePDB::GetTypes(), NeedsResolvedCompileUnit(), SymbolFilePDB::ParseBlocksRecursive(), SymbolFileDWARFDebugMap::ParseBlocksRecursive(), lldb_private::npdb::SymbolFileNativePDB::ParseBlocksRecursive(), SymbolFileDWARFDebugMap::ParseDebugMacros(), SymbolFilePDB::ParseDeclsForContext(), SymbolFileDWARFDebugMap::ParseFunctions(), SymbolFilePDB::ParseFunctions(), lldb_private::npdb::SymbolFileNativePDB::ParseFunctions(), SymbolFileDWARFDebugMap::ParseImportedModules(), SymbolFileDWARFDebugMap::ParseIsOptimized(), SymbolFileDWARFDebugMap::ParseLanguage(), SymbolFilePDB::ParseLanguage(), lldb_private::npdb::SymbolFileNativePDB::ParseLanguage(), SymbolFileDWARFDebugMap::ParseLineTable(), SymbolFilePDB::ParseLineTable(), lldb_private::npdb::SymbolFileNativePDB::ParseLineTable(), SymbolFileDWARFDebugMap::ParseSupportFiles(), SymbolFilePDB::ParseSupportFiles(), lldb_private::npdb::SymbolFileNativePDB::ParseSupportFiles(), SymbolFilePDB::ParseTypes(), SymbolFileDWARFDebugMap::ParseTypes(), lldb_private::npdb::SymbolFileNativePDB::ParseTypes(), SymbolFileDWARFDebugMap::ParseVariablesForContext(), SymbolFilePDB::ParseVariablesForContext(), lldb_private::npdb::SymbolFileNativePDB::ParseVariablesForContext(), SymbolFileDWARFDebugMap::ParseXcodeSDK(), RemoveFunctionsWithModuleNotEqualTo(), SymbolFileDWARFDebugMap::ResolveTypeUID(), SymbolFilePDB::ResolveTypeUID(), and lldb_private::npdb::SymbolFileNativePDB::ResolveTypeUID().

◆ GetNumCompileUnits()

uint32_t SymbolFile::GetNumCompileUnits ( )

◆ GetObjectFile() [1/2]

ObjectFile* lldb_private::SymbolFile::GetObjectFile ( )
inline

Definition at line 265 of file SymbolFile.h.

References m_objfile_sp.

Referenced by CommandObjectTargetSymbolsAdd::AddModuleSymbols(), PDBASTParser::AddRecordBases(), PDBASTParser::AddRecordMembers(), PDBASTParser::AddRecordMethod(), CompleteExternalTagDeclType(), SymbolFilePDB::CompleteType(), DWARFASTParserClang::CompleteTypeFromDWARF(), lldb_private::npdb::SymbolFileNativePDB::CreateConstantSymbol(), lldb_private::npdb::SymbolFileNativePDB::CreateGlobalVariable(), lldb_private::npdb::SymbolFileNativePDB::CreateLocalVariable(), DWARFDebugInfoEntry::Extract(), DWARFUnit::GetByteOrder(), lldb_private::Type::GetByteSize(), DWARFUnit::GetDIE(), DWARFDebugInfoEntry::GetDIENamesAndRanges(), SymbolFileDWARFDebugMap::CompileUnitInfo::GetFileRangeMap(), DWARFBaseDIE::GetModule(), lldb_private::Type::GetModule(), SymbolFileDWARFDebugMap::GetModuleByCompUnitInfo(), GetRangesOrReportError(), SymbolFileDWARFDebugMap::LinkOSOAddress(), DWARFASTParserClang::ParseChildMembers(), SymbolFilePDB::ParseCompileUnitFunctionForPDBFunc(), DWARFASTParserClang::ParseEnum(), DWARFASTParserClang::ParseSingleMember(), DWARFASTParserClang::ParseStructureLikeDIE(), DWARFASTParserClang::ParseSubroutine(), DWARFASTParserClang::ParseTypeFromDWARF(), DWARFASTParserClang::ParseTypeModifier(), SymbolFileDWARF::ParseVariableDIE(), SymbolFilePDB::ParseVariableForPDBData(), DWARFFormValue::Reference(), DWARFASTParserClang::ResolveNamespaceDIE(), lldb_private::Module::ResolveSymbolContextForAddress(), DWARFUnit::SetLoclistsBase(), DWARFUnit::SetRangesBase(), and lldb_private::Module::SetSymbolFileFileSpec().

◆ GetObjectFile() [2/2]

const ObjectFile* lldb_private::SymbolFile::GetObjectFile ( ) const
inline

Definition at line 266 of file SymbolFile.h.

References GetMainObjectFile(), and m_objfile_sp.

◆ GetParameterStackSize()

virtual llvm::Expected<lldb::addr_t> lldb_private::SymbolFile::GetParameterStackSize ( Symbol symbol)
inlinevirtual

Return the number of stack bytes taken up by the parameters to this function.

Reimplemented in lldb_private::breakpad::SymbolFileBreakpad.

Definition at line 294 of file SymbolFile.h.

References AssertModuleLock(), CalculateNumCompileUnits(), Dump(), and ParseCompileUnitAtIndex().

◆ GetSymtab()

Symtab * SymbolFile::GetSymtab ( )

◆ GetTypeList()

virtual TypeList& lldb_private::SymbolFile::GetTypeList ( )
inlineprotectedvirtual

◆ GetTypes()

virtual void lldb_private::SymbolFile::GetTypes ( lldb_private::SymbolContextScope sc_scope,
lldb::TypeClass  type_mask,
lldb_private::TypeList type_list 
)
pure virtual

◆ GetTypeSystemForLanguage()

llvm::Expected< TypeSystem & > SymbolFile::GetTypeSystemForLanguage ( lldb::LanguageType  language)
virtual

◆ GetUnwindPlan()

virtual lldb::UnwindPlanSP lldb_private::SymbolFile::GetUnwindPlan ( const Address address,
const RegisterInfoResolver resolver 
)
inlinevirtual

Reimplemented in lldb_private::breakpad::SymbolFileBreakpad.

Definition at line 288 of file SymbolFile.h.

◆ InitializeObject()

virtual void lldb_private::SymbolFile::InitializeObject ( )
inlinevirtual

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 in SymbolFileDWARF, lldb_private::npdb::SymbolFileNativePDB, lldb_private::breakpad::SymbolFileBreakpad, SymbolFilePDB, and SymbolFileDWARFDebugMap.

Definition at line 122 of file SymbolFile.h.

References GetCompileUnitAtIndex(), GetNumCompileUnits(), GetSymtab(), and ParseLanguage().

◆ isA()

virtual bool lldb_private::SymbolFile::isA ( const void *  ClassID) const
inlinevirtual

◆ operator=()

const SymbolFile& lldb_private::SymbolFile::operator= ( const SymbolFile )
privatedelete

◆ ParseBlocksRecursive()

virtual size_t lldb_private::SymbolFile::ParseBlocksRecursive ( Function func)
pure virtual

◆ ParseCallEdgesInFunction()

virtual std::vector<std::unique_ptr<CallEdge> > lldb_private::SymbolFile::ParseCallEdgesInFunction ( UserID  func_id)
inlinevirtual

Reimplemented in SymbolFileDWARFDebugMap.

Definition at line 270 of file SymbolFile.h.

Referenced by lldb_private::Function::GetCallEdges().

◆ ParseCompileUnitAtIndex()

virtual lldb::CompUnitSP lldb_private::SymbolFile::ParseCompileUnitAtIndex ( uint32_t  idx)
protectedpure virtual

◆ ParseDebugMacros()

virtual bool lldb_private::SymbolFile::ParseDebugMacros ( CompileUnit comp_unit)
pure virtual

◆ ParseDeclsForContext()

virtual void lldb_private::SymbolFile::ParseDeclsForContext ( CompilerDeclContext  decl_ctx)
inlinevirtual

◆ ParseFunctions()

virtual size_t lldb_private::SymbolFile::ParseFunctions ( CompileUnit comp_unit)
pure virtual

◆ ParseImportedModules()

virtual bool lldb_private::SymbolFile::ParseImportedModules ( const SymbolContext sc,
std::vector< SourceModule > &  imported_modules 
)
pure virtual

◆ ParseIsOptimized()

virtual bool lldb_private::SymbolFile::ParseIsOptimized ( CompileUnit comp_unit)
inlinevirtual

◆ ParseLanguage()

virtual lldb::LanguageType lldb_private::SymbolFile::ParseLanguage ( CompileUnit comp_unit)
pure virtual

◆ ParseLineTable()

virtual bool lldb_private::SymbolFile::ParseLineTable ( CompileUnit comp_unit)
pure virtual

◆ ParseSupportFiles()

virtual bool lldb_private::SymbolFile::ParseSupportFiles ( CompileUnit comp_unit,
FileSpecList &  support_files 
)
pure virtual

◆ ParseTypes()

virtual size_t lldb_private::SymbolFile::ParseTypes ( CompileUnit comp_unit)
pure virtual

◆ ParseVariablesForContext()

virtual size_t lldb_private::SymbolFile::ParseVariablesForContext ( const SymbolContext sc)
pure virtual

◆ ParseXcodeSDK()

virtual XcodeSDK lldb_private::SymbolFile::ParseXcodeSDK ( CompileUnit comp_unit)
inlinevirtual

Return the Xcode SDK comp_unit was compiled against.

Reimplemented in SymbolFileDWARF, and SymbolFileDWARFDebugMap.

Definition at line 133 of file SymbolFile.h.

References ParseDebugMacros(), ParseFunctions(), and ParseLineTable().

◆ PreloadSymbols()

void SymbolFile::PreloadSymbols ( )
virtual

Reimplemented in SymbolFileDWARF.

Definition at line 29 of file SymbolFile.cpp.

Referenced by DumpClangAST(), and lldb_private::Module::PreloadSymbols().

◆ ResolveSymbolContext() [1/2]

virtual uint32_t lldb_private::SymbolFile::ResolveSymbolContext ( const Address so_addr,
lldb::SymbolContextItem  resolve_scope,
SymbolContext sc 
)
pure virtual

◆ ResolveSymbolContext() [2/2]

uint32_t SymbolFile::ResolveSymbolContext ( const FileSpec file_spec,
uint32_t  line,
bool  check_inlines,
lldb::SymbolContextItem  resolve_scope,
SymbolContextList sc_list 
)
virtual

◆ ResolveTypeUID()

virtual Type* lldb_private::SymbolFile::ResolveTypeUID ( lldb::user_id_t  type_uid)
pure virtual

◆ SectionFileAddressesChanged()

void SymbolFile::SectionFileAddressesChanged ( )
virtual

Notify the SymbolFile that the file addresses in the Sections for this module have been changed.

Definition at line 208 of file SymbolFile.cpp.

References lldb_private::ObjectFile::SectionFileAddressesChanged().

Referenced by AddSymbols().

◆ SetCompileUnitAtIndex()

void SymbolFile::SetCompileUnitAtIndex ( uint32_t  idx,
const lldb::CompUnitSP &  cu_sp 
)
protected

Member Data Documentation

◆ ID

char SymbolFile::ID
staticprivate

LLVM RTTI support.

Definition at line 38 of file SymbolFile.h.

Referenced by isA().

◆ m_abilities

uint32_t lldb_private::SymbolFile::m_abilities
protected

Definition at line 316 of file SymbolFile.h.

Referenced by GetAbilities().

◆ m_calculated_abilities

bool lldb_private::SymbolFile::m_calculated_abilities
protected

Definition at line 317 of file SymbolFile.h.

Referenced by GetAbilities().

◆ m_compile_units

llvm::Optional<std::vector<lldb::CompUnitSP> > lldb_private::SymbolFile::m_compile_units
protected

Definition at line 313 of file SymbolFile.h.

◆ m_objfile_sp

lldb::ObjectFileSP lldb_private::SymbolFile::m_objfile_sp
protected

◆ m_symtab

Symtab* lldb_private::SymbolFile::m_symtab = nullptr
protected

Definition at line 315 of file SymbolFile.h.

◆ m_type_list

TypeList lldb_private::SymbolFile::m_type_list
protected

Definition at line 314 of file SymbolFile.h.

Referenced by GetTypeList().


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