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

Provides public interface for all SymbolFiles. More...

#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 ()=default
 
 ~SymbolFile () override=default
 
virtual SymbolFileGetBackingSymbolFile ()
 SymbolFileOnDemand class overrides this to return the underlying backing SymbolFile implementation that loads on-demand. More...
 
virtual uint32_t GetAbilities ()=0
 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...
 
virtual bool GetLoadDebugInfoEnabled ()
 Whether debug info will be loaded or not. More...
 
virtual void SetLoadDebugInfoEnabled ()
 Specify debug info should be loaded. More...
 
virtual uint32_t GetNumCompileUnits ()=0
 
virtual lldb::CompUnitSP GetCompileUnitAtIndex (uint32_t idx)=0
 
virtual SymtabGetSymtab ()=0
 
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 SourceLocationSpec &src_location_spec, 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)=0
 
virtual CompilerDeclContext FindNamespace (ConstString name, const CompilerDeclContext &parent_decl_ctx)
 
virtual ObjectFileGetObjectFile ()=0
 
virtual const ObjectFileGetObjectFile () const =0
 
virtual ObjectFileGetMainObjectFile ()=0
 
virtual std::vector< std::unique_ptr< CallEdge > > ParseCallEdgesInFunction (UserID func_id)
 
virtual void AddSymbols (Symtab &symtab)
 
virtual void SectionFileAddressesChanged ()=0
 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)=0
 
virtual uint64_t GetDebugInfoSize ()=0
 Metrics gathering functions. More...
 
virtual StatsDuration::Duration GetDebugInfoParseTime ()
 Return the time taken to parse the debug information. More...
 
virtual StatsDuration::Duration GetDebugInfoIndexTime ()
 Return the time it took to index the debug information in the object file. More...
 
virtual ModuleList GetDebugInfoModules ()
 Get the additional modules that this symbol file uses to parse debug info. More...
 
virtual bool GetDebugInfoIndexWasLoadedFromCache () const =0
 Accessors for the bool that indicates if the debug info index was loaded from, or saved to the module index cache. More...
 
virtual void SetDebugInfoIndexWasLoadedFromCache ()=0
 
virtual bool GetDebugInfoIndexWasSavedToCache () const =0
 
virtual void SetDebugInfoIndexWasSavedToCache ()=0
 
- Public Member Functions inherited from lldb_private::PluginInterface
 PluginInterface ()=default
 
virtual ~PluginInterface ()=default
 
virtual llvm::StringRef GetPluginName ()=0
 
 PluginInterface (const PluginInterface &)=delete
 
PluginInterfaceoperator= (const PluginInterface &)=delete
 

Static Public Member Functions

static SymbolFileFindPlugin (lldb::ObjectFileSP objfile_sp)
 

Protected Member Functions

void AssertModuleLock ()
 

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

Provides public interface for all SymbolFiles.

Any protected virtual members should go into SymbolFileCommon; most SymbolFile implementations should inherit from SymbolFileCommon to override the behaviors except SymbolFileOnDemand which inherits public interfaces from SymbolFile and forward to underlying concrete SymbolFile implementation.

Definition at line 45 of file SymbolFile.h.

Member Enumeration Documentation

◆ Abilities

Enumerator
CompileUnits 
LineTables 
Functions 
Blocks 
GlobalVariables 
LocalVariables 
VariableTypes 
kAllAbilities 

Definition at line 62 of file SymbolFile.h.

Constructor & Destructor Documentation

◆ SymbolFile() [1/2]

lldb_private::SymbolFile::SymbolFile ( )
default

◆ ~SymbolFile()

lldb_private::SymbolFile::~SymbolFile ( )
overridedefault

◆ 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 148 of file SymbolFile.cpp.

◆ CalculateAbilities()

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

◆ classof()

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

Definition at line 53 of file SymbolFile.h.

References ID, and isA().

◆ CompleteType()

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

◆ Dump()

virtual void lldb_private::SymbolFile::Dump ( Stream s)
pure virtual

◆ DumpClangAST()

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

◆ FindFunctions() [1/2]

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

◆ FindFunctions() [2/2]

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

◆ FindGlobalVariables() [1/2]

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

◆ FindGlobalVariables() [2/2]

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

◆ 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

◆ 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 177 of file SymbolFile.h.

◆ GetAbilities()

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

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.

Implemented in lldb_private::SymbolFileCommon, and lldb_private::SymbolFileOnDemand.

◆ GetBackingSymbolFile()

virtual SymbolFile* lldb_private::SymbolFile::GetBackingSymbolFile ( )
inlinevirtual

◆ GetCompileUnitAtIndex()

virtual lldb::CompUnitSP lldb_private::SymbolFile::GetCompileUnitAtIndex ( uint32_t  idx)
pure virtual

◆ GetDebugInfoIndexTime()

virtual StatsDuration::Duration lldb_private::SymbolFile::GetDebugInfoIndexTime ( )
inlinevirtual

Return the time it took to index the debug information in the object file.

Returns
0.0 if the file doesn't need to be indexed or if it hasn't been indexed yet, or a valid duration if it has.

Reimplemented in SymbolFileDWARF, and lldb_private::SymbolFileOnDemand.

Definition at line 338 of file SymbolFile.h.

Referenced by lldb_private::DebuggerStats::ReportStatistics().

◆ GetDebugInfoIndexWasLoadedFromCache()

virtual bool lldb_private::SymbolFile::GetDebugInfoIndexWasLoadedFromCache ( ) const
pure virtual

Accessors for the bool that indicates if the debug info index was loaded from, or saved to the module index cache.

In statistics it is handy to know if a module's debug info was loaded from or saved to the cache. When the debug info index is loaded from the cache startup times can be faster. When the cache is enabled and the debug info index is saved to the cache, debug sessions can be slower. These accessors can be accessed by the statistics and emitted to help track these costs.

Implemented in lldb_private::SymbolFileCommon, and lldb_private::SymbolFileOnDemand.

Referenced by lldb_private::DebuggerStats::ReportStatistics().

◆ GetDebugInfoIndexWasSavedToCache()

virtual bool lldb_private::SymbolFile::GetDebugInfoIndexWasSavedToCache ( ) const
pure virtual

◆ GetDebugInfoModules()

virtual ModuleList lldb_private::SymbolFile::GetDebugInfoModules ( )
inlinevirtual

Get the additional modules that this symbol file uses to parse debug info.

Some debug info is stored in stand alone object files that are represented by unique modules that will show up in the statistics module list. Return a list of modules that are not in the target module list that this symbol file is currently using so that they can be tracked and assoicated with the module in the statistics.

Reimplemented in SymbolFileDWARFDebugMap.

Definition at line 347 of file SymbolFile.h.

Referenced by lldb_private::DebuggerStats::ReportStatistics().

◆ GetDebugInfoParseTime()

virtual StatsDuration::Duration lldb_private::SymbolFile::GetDebugInfoParseTime ( )
inlinevirtual

Return the time taken to parse the debug information.

Returns
0.0 if no information has been parsed or if there is no computational cost to parsing the debug information.

Reimplemented in SymbolFileDWARF, and lldb_private::SymbolFileOnDemand.

Definition at line 331 of file SymbolFile.h.

Referenced by lldb_private::DebuggerStats::ReportStatistics().

◆ GetDebugInfoSize()

virtual uint64_t lldb_private::SymbolFile::GetDebugInfoSize ( )
pure virtual

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.

Implemented in lldb_private::SymbolFileCommon, lldb_private::SymbolFileOnDemand, lldb_private::breakpad::SymbolFileBreakpad, and lldb_private::npdb::SymbolFileNativePDB.

Referenced by lldb_private::DebuggerStats::ReportStatistics().

◆ 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::SymbolFileOnDemand, lldb_private::breakpad::SymbolFileBreakpad, SymbolFilePDB, SymbolFileDWARFDebugMap, and SymbolFileSymtab.

Referenced by GetDynamicArrayInfo().

◆ GetLoadDebugInfoEnabled()

virtual bool lldb_private::SymbolFile::GetLoadDebugInfoEnabled ( )
inlinevirtual

Whether debug info will be loaded or not.

It will be true for most implementations except SymbolFileOnDemand.

Reimplemented in lldb_private::SymbolFileOnDemand.

Definition at line 130 of file SymbolFile.h.

Referenced by lldb_private::DebuggerStats::ReportStatistics().

◆ GetMainObjectFile()

virtual ObjectFile* lldb_private::SymbolFile::GetMainObjectFile ( )
pure virtual

◆ GetMangledNamesForFunction()

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

◆ 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, and lldb_private::SymbolFileOnDemand.

Definition at line 35 of file SymbolFile.cpp.

Referenced by SymbolFileDWARFDebugMap::FindFunctions(), SymbolFilePDB::FindFunctions(), SymbolFileDWARFDebugMap::FindGlobalVariables(), lldb_private::npdb::SymbolFileNativePDB::FindGlobalVariables(), SymbolFilePDB::FindGlobalVariables(), SymbolFileDWARFDebugMap::FindNamespace(), SymbolFilePDB::FindNamespace(), lldb_private::npdb::SymbolFileNativePDB::FindTypes(), SymbolFileDWARFDebugMap::ForEachExternalModule(), SymbolFileDWARFDebugMap::GetTypes(), SymbolFilePDB::GetTypes(), SymbolFileDWARFDebugMap::ParseBlocksRecursive(), SymbolFilePDB::ParseBlocksRecursive(), lldb_private::npdb::SymbolFileNativePDB::ParseBlocksRecursive(), SymbolFileDWARFDebugMap::ParseDebugMacros(), SymbolFileSymtab::ParseFunctions(), 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(), SymbolFileSymtab::ResolveSymbolContext(), lldb_private::npdb::SymbolFileNativePDB::ResolveSymbolContext(), SymbolFileDWARFDebugMap::ResolveTypeUID(), SymbolFilePDB::ResolveTypeUID(), and lldb_private::npdb::SymbolFileNativePDB::ResolveTypeUID().

◆ GetNumCompileUnits()

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

◆ GetObjectFile() [1/2]

virtual const ObjectFile* lldb_private::SymbolFile::GetObjectFile ( ) const
pure virtual

◆ GetObjectFile() [2/2]

virtual ObjectFile* lldb_private::SymbolFile::GetObjectFile ( )
pure virtual

◆ 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::SymbolFileOnDemand, and lldb_private::breakpad::SymbolFileBreakpad.

Definition at line 306 of file SymbolFile.h.

Referenced by lldb_private::SymbolFileOnDemand::GetParameterStackSize().

◆ GetSymtab()

virtual Symtab* lldb_private::SymbolFile::GetSymtab ( )
pure virtual

◆ GetTypes()

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

◆ GetTypeSystemForLanguage()

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

◆ GetUnwindPlan()

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

◆ 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::SymbolFileOnDemand, lldb_private::breakpad::SymbolFileBreakpad, SymbolFilePDB, and SymbolFileDWARFDebugMap.

Definition at line 125 of file SymbolFile.h.

◆ 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 lldb_private::SymbolFileOnDemand, and SymbolFileDWARFDebugMap.

Definition at line 282 of file SymbolFile.h.

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

◆ 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

Reimplemented in SymbolFileDWARF, lldb_private::SymbolFileOnDemand, and SymbolFileDWARFDebugMap.

Definition at line 186 of file SymbolFile.h.

◆ 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, lldb_private::SymbolFileOnDemand, and SymbolFileDWARFDebugMap.

Definition at line 146 of file SymbolFile.h.

◆ PreloadSymbols()

void SymbolFile::PreloadSymbols ( )
virtual

Reimplemented in SymbolFileDWARF, and lldb_private::SymbolFileOnDemand.

Definition at line 31 of file SymbolFile.cpp.

Referenced by 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 SourceLocationSpec src_location_spec,
lldb::SymbolContextItem  resolve_scope,
SymbolContextList sc_list 
)
virtual

◆ ResolveTypeUID()

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

◆ SectionFileAddressesChanged()

virtual void lldb_private::SymbolFile::SectionFileAddressesChanged ( )
pure virtual

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

Implemented in lldb_private::SymbolFileCommon, and lldb_private::SymbolFileOnDemand.

Referenced by lldb_private::Module::SectionFileAddressesChanged().

◆ SetDebugInfoIndexWasLoadedFromCache()

virtual void lldb_private::SymbolFile::SetDebugInfoIndexWasLoadedFromCache ( )
pure virtual

◆ SetDebugInfoIndexWasSavedToCache()

virtual void lldb_private::SymbolFile::SetDebugInfoIndexWasSavedToCache ( )
pure virtual

◆ SetLoadDebugInfoEnabled()

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

Specify debug info should be loaded.

It will be no-op for most implementations except SymbolFileOnDemand.

Reimplemented in lldb_private::SymbolFileOnDemand.

Definition at line 135 of file SymbolFile.h.

Referenced by lldb_private::Module::ResolveSymbolContextForAddress().

Member Data Documentation

◆ ID

char SymbolFile::ID
staticprivate

LLVM RTTI support.

Definition at line 47 of file SymbolFile.h.

Referenced by classof(), and isA().


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