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

Containing protected virtual methods for child classes to override. More...

#include <SymbolFile.h>

Inheritance diagram for lldb_private::SymbolFileCommon:
Inheritance graph
[legend]

Public Member Functions

 SymbolFileCommon (lldb::ObjectFileSP objfile_sp)
 
 ~SymbolFileCommon () override=default
 
uint32_t GetAbilities () override
 Get a mask of what this symbol file supports for the object file that it was constructed with.
 
SymtabGetSymtab () override
 
ObjectFileGetObjectFile () override
 
const ObjectFileGetObjectFile () const override
 
ObjectFileGetMainObjectFile () override
 
void SectionFileAddressesChanged () override
 Notify the SymbolFile that the file addresses in the Sections for this module have been changed.
 
uint32_t GetNumCompileUnits () override
 
lldb::CompUnitSP GetCompileUnitAtIndex (uint32_t idx) override
 
llvm::Expected< lldb::TypeSystemSPGetTypeSystemForLanguage (lldb::LanguageType language) override
 
void Dump (Stream &s) override
 
uint64_t GetDebugInfoSize (bool load_all_debug_info=false) override
 Metrics gathering functions.
 
bool GetDebugInfoIndexWasLoadedFromCache () const override
 Accessors for the bool that indicates if the debug info index was loaded from, or saved to the module index cache.
 
void SetDebugInfoIndexWasLoadedFromCache () override
 
bool GetDebugInfoIndexWasSavedToCache () const override
 
void SetDebugInfoIndexWasSavedToCache () override
 
bool GetDebugInfoHadFrameVariableErrors () const override
 Accessors for the bool that indicates if there was debug info, but errors stopped variables from being able to be displayed correctly.
 
void SetDebugInfoHadFrameVariableErrors () override
 
lldb::TypeSP MakeType (lldb::user_id_t uid, ConstString name, std::optional< uint64_t > byte_size, SymbolContextScope *context, lldb::user_id_t encoding_uid, Type::EncodingDataType encoding_uid_type, const Declaration &decl, const CompilerType &compiler_qual_type, Type::ResolveState compiler_type_resolve_state, uint32_t opaque_payload=0) override
 This function is used to create types that belong to a SymbolFile.
 
lldb::TypeSP CopyType (const lldb::TypeSP &other_type) override
 
- Public Member Functions inherited from lldb_private::SymbolFile
 SymbolFile ()=default
 
 ~SymbolFile () override=default
 
virtual SymbolFileGetBackingSymbolFile ()
 SymbolFileOnDemand class overrides this to return the underlying backing SymbolFile implementation that loads on-demand.
 
virtual uint32_t GetAbilities ()=0
 Get a mask of what this symbol file supports for the object file that it was constructed with.
 
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.
 
virtual void InitializeObject ()
 Initialize the SymbolFile object.
 
virtual bool GetLoadDebugInfoEnabled ()
 Whether debug info will be loaded or not.
 
virtual void SetLoadDebugInfoEnabled ()
 Specify debug info should be loaded.
 
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.
 
virtual llvm::SmallSet< lldb::LanguageType, 4 > ParseAllLanguages (CompileUnit &comp_unit)
 This function exists because SymbolFileDWARFDebugMap may extra compile units which aren't exposed as "real" compile units.
 
virtual 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.
 
virtual bool ParseSupportFiles (CompileUnit &comp_unit, SupportFileList &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 std::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.
 
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 std::vector< CompilerContextGetCompilerContextForUID (lldb::user_id_t uid)
 
virtual uint32_t ResolveSymbolContext (const Address &so_addr, lldb::SymbolContextItem resolve_scope, SymbolContext &sc)=0
 
Status GetFrameVariableError (StackFrame &frame)
 Get an error that describes why variables might be missing for a given symbol context.
 
virtual Status CalculateFrameVariableError (StackFrame &frame)
 Subclasses will override this function to for GetFrameVariableError().
 
virtual 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 (const Module::LookupInfo &lookup_info, const CompilerDeclContext &parent_decl_ctx, bool include_inlines, SymbolContextList &sc_list)
 
virtual void FindFunctions (const RegularExpression &regex, bool include_inlines, SymbolContextList &sc_list)
 
virtual void FindTypes (const TypeQuery &query, TypeResults &results)
 Find types using a type-matching object that contains all search parameters.
 
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::TypeSystemSPGetTypeSystemForLanguage (lldb::LanguageType language)=0
 
virtual CompilerDeclContext FindNamespace (ConstString name, const CompilerDeclContext &parent_decl_ctx, bool only_root_namespaces=false)
 Finds a namespace of name name and whose parent context is 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.
 
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.
 
virtual void Dump (Stream &s)=0
 
virtual uint64_t GetDebugInfoSize (bool load_all_debug_info=false)=0
 Metrics gathering functions.
 
virtual StatsDuration::Duration GetDebugInfoParseTime ()
 Return the time taken to parse the debug information.
 
virtual StatsDuration::Duration GetDebugInfoIndexTime ()
 Return the time it took to index the debug information in the object file.
 
virtual ModuleList GetDebugInfoModules ()
 Get the additional modules that this symbol file uses to parse debug info.
 
virtual bool GetDebugInfoHadFrameVariableErrors () const =0
 Accessors for the bool that indicates if there was debug info, but errors stopped variables from being able to be displayed correctly.
 
virtual void SetDebugInfoHadFrameVariableErrors ()=0
 
virtual bool GetSeparateDebugInfo (StructuredData::Dictionary &d, bool errors_only)
 Return true if separate debug info files are supported and this function succeeded, false otherwise.
 
virtual lldb::TypeSP MakeType (lldb::user_id_t uid, ConstString name, std::optional< uint64_t > byte_size, SymbolContextScope *context, lldb::user_id_t encoding_uid, Type::EncodingDataType encoding_uid_type, const Declaration &decl, const CompilerType &compiler_qual_type, Type::ResolveState compiler_type_resolve_state, uint32_t opaque_payload=0)=0
 
virtual lldb::TypeSP CopyType (const lldb::TypeSP &other_type)=0
 
std::unordered_map< lldb::CompUnitSP, ArgsGetCompileOptions ()
 Returns a map of compilation unit to the compile option arguments associated with that compilation unit.
 
- 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
 

Protected Member Functions

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 Member Functions inherited from lldb_private::SymbolFile
void AssertModuleLock ()
 
virtual void GetCompileOptions (std::unordered_map< lldb::CompUnitSP, lldb_private::Args > &args)
 

Protected Attributes

lldb::ObjectFileSP m_objfile_sp
 
std::optional< std::vector< lldb::CompUnitSP > > m_compile_units
 
TypeList m_type_list
 
uint32_t m_abilities = 0
 
bool m_calculated_abilities = false
 
bool m_index_was_loaded_from_cache = false
 
bool m_index_was_saved_to_cache = false
 
bool m_debug_info_had_variable_errors = false
 Set to true if any variable feteching errors have been found when calling GetFrameVariableError().
 

Private Member Functions

 SymbolFileCommon (const SymbolFileCommon &)=delete
 
const SymbolFileCommonoperator= (const SymbolFileCommon &)=delete
 

Private Attributes

Symtabm_symtab = nullptr
 Do not use m_symtab directly, as it may be freed.
 

Static Private Attributes

static char ID
 LLVM RTTI support.
 
bool isA (const void *ClassID) const override
 LLVM RTTI support.
 
static bool classof (const SymbolFileCommon *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)
}
 
- Static Public Member Functions inherited from lldb_private::SymbolFile
static SymbolFileFindPlugin (lldb::ObjectFileSP objfile_sp)
 
static bool classof (const SymbolFile *obj)
 

Detailed Description

Containing protected virtual methods for child classes to override.

Most actual SymbolFile implementations should inherit from this class.

Definition at line 504 of file SymbolFile.h.

Constructor & Destructor Documentation

◆ SymbolFileCommon() [1/2]

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

Definition at line 518 of file SymbolFile.h.

◆ ~SymbolFileCommon()

lldb_private::SymbolFileCommon::~SymbolFileCommon ( )
overridedefault

◆ SymbolFileCommon() [2/2]

lldb_private::SymbolFileCommon::SymbolFileCommon ( const SymbolFileCommon )
privatedelete

Member Function Documentation

◆ CalculateNumCompileUnits()

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

◆ classof()

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

Definition at line 514 of file SymbolFile.h.

References ID, and isA().

◆ CopyType()

lldb::TypeSP lldb_private::SymbolFileCommon::CopyType ( const lldb::TypeSP other_type)
inlineoverridevirtual

◆ Dump()

void SymbolFileCommon::Dump ( Stream s)
overridevirtual

◆ GetAbilities()

uint32_t lldb_private::SymbolFileCommon::GetAbilities ( )
inlineoverridevirtual

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.

Implements lldb_private::SymbolFile.

Definition at line 523 of file SymbolFile.h.

References lldb_private::SymbolFile::CalculateAbilities(), m_abilities, and m_calculated_abilities.

◆ GetCompileUnitAtIndex()

CompUnitSP SymbolFileCommon::GetCompileUnitAtIndex ( uint32_t  idx)
overridevirtual

◆ GetDebugInfoHadFrameVariableErrors()

bool lldb_private::SymbolFileCommon::GetDebugInfoHadFrameVariableErrors ( ) const
inlineoverridevirtual

Accessors for the bool that indicates if there was debug info, but errors stopped variables from being able to be displayed correctly.

See GetFrameVariableError() for details on what are considered errors.

Implements lldb_private::SymbolFile.

Reimplemented in lldb_private::plugin::dwarf::SymbolFileDWARFDwo.

Definition at line 567 of file SymbolFile.h.

References m_debug_info_had_variable_errors.

Referenced by lldb_private::plugin::dwarf::SymbolFileDWARFDwo::GetDebugInfoHadFrameVariableErrors().

◆ GetDebugInfoIndexWasLoadedFromCache()

bool lldb_private::SymbolFileCommon::GetDebugInfoIndexWasLoadedFromCache ( ) const
inlineoverridevirtual

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.

Implements lldb_private::SymbolFile.

Reimplemented in lldb_private::plugin::dwarf::SymbolFileDWARFDwo.

Definition at line 555 of file SymbolFile.h.

References m_index_was_loaded_from_cache.

Referenced by lldb_private::plugin::dwarf::SymbolFileDWARFDwo::GetDebugInfoIndexWasLoadedFromCache().

◆ GetDebugInfoIndexWasSavedToCache()

bool lldb_private::SymbolFileCommon::GetDebugInfoIndexWasSavedToCache ( ) const
inlineoverridevirtual

◆ GetDebugInfoSize()

uint64_t SymbolFileCommon::GetDebugInfoSize ( bool  load_all_debug_info = false)
overridevirtual

Metrics gathering functions.

Return the size in bytes of all loaded debug information or total possible debug info in the symbol file.

If the debug information is contained in sections of an ObjectFile, then this call should add the size of all sections that contain debug information. Symbols the symbol tables are not considered debug information for this call to make it easy and quick for this number to be calculated. If the symbol file is all debug information, the size of the entire file should be returned. The default implementation of this function will iterate over all sections in a module and add up their debug info only section byte sizes.

Parameters
load_all_debug_infoIf true, force loading any symbol files if they are not yet loaded and add to the total size. Default to false.
Returns
Total currently loaded debug info size in bytes

Implements lldb_private::SymbolFile.

Reimplemented in lldb_private::breakpad::SymbolFileBreakpad, lldb_private::plugin::dwarf::SymbolFileDWARF, lldb_private::plugin::dwarf::SymbolFileDWARFDwo, and lldb_private::npdb::SymbolFileNativePDB.

Definition at line 230 of file SymbolFile.cpp.

References lldb_private::SectionList::GetDebugInfoSize(), and m_objfile_sp.

Referenced by lldb_private::plugin::dwarf::SymbolFileDWARF::GetDebugInfoSize().

◆ GetMainObjectFile()

ObjectFile * SymbolFileCommon::GetMainObjectFile ( )
overridevirtual

◆ GetNumCompileUnits()

uint32_t SymbolFileCommon::GetNumCompileUnits ( )
overridevirtual

Implements lldb_private::SymbolFile.

Definition at line 182 of file SymbolFile.cpp.

References CalculateNumCompileUnits(), lldb_private::SymbolFile::GetModuleMutex(), and m_compile_units.

Referenced by lldb_private::plugin::dwarf::SymbolFileDWARFDebugMap::CalculateAbilities(), lldb_private::breakpad::SymbolFileBreakpad::FindFunctions(), lldb_private::plugin::dwarf::SymbolFileDWARF::GetCompileOptions(), lldb_private::plugin::dwarf::SymbolFileDWARFDebugMap::GetCompileUnit(), GetCompileUnitAtIndex(), SymbolFilePDB::GetCompileUnitIndex(), lldb_private::plugin::dwarf::SymbolFileDWARFDebugMap::GetCompileUnitInfo(), lldb_private::plugin::dwarf::SymbolFileDWARFDebugMap::GetCompUnitInfo(), lldb_private::plugin::dwarf::SymbolFileDWARFDebugMap::GetCompUnitInfosForModule(), lldb_private::plugin::dwarf::SymbolFileDWARF::GetDWOId(), lldb_private::plugin::dwarf::SymbolFileDWARFDebugMap::GetModuleByOSOIndex(), lldb_private::plugin::dwarf::SymbolFileDWARFDebugMap::GetSeparateDebugInfo(), SymbolFilePDB::GetTypes(), lldb_private::plugin::dwarf::SymbolFileDWARFDebugMap::ParseCompileUnitAtIndex(), lldb_private::npdb::SymbolFileNativePDB::ParseCompileUnitAtIndex(), SymbolFilePDB::ParseCompileUnitAtIndex(), lldb_private::breakpad::SymbolFileBreakpad::ResolveSymbolContext(), lldb_private::npdb::SymbolFileNativePDB::ResolveSymbolContext(), lldb_private::plugin::dwarf::SymbolFileDWARFDebugMap::SetCompileUnit(), SetCompileUnitAtIndex(), lldb_private::plugin::dwarf::SymbolFileDWARF::Supports_DW_AT_APPLE_objc_complete_type(), and lldb_private::plugin::dwarf::SymbolFileDWARF::UpdateExternalModuleListIfNeeded().

◆ GetObjectFile() [1/2]

const ObjectFile * lldb_private::SymbolFileCommon::GetObjectFile ( ) const
inlineoverridevirtual

Implements lldb_private::SymbolFile.

Definition at line 534 of file SymbolFile.h.

References m_objfile_sp.

◆ GetObjectFile() [2/2]

ObjectFile * lldb_private::SymbolFileCommon::GetObjectFile ( )
inlineoverridevirtual

Implements lldb_private::SymbolFile.

Definition at line 533 of file SymbolFile.h.

References m_objfile_sp.

Referenced by lldb_private::plugin::dwarf::SymbolFileDWARF::CompleteType(), SymbolFilePDB::CompleteType(), lldb_private::npdb::SymbolFileNativePDB::CreateBlock(), lldb_private::npdb::SymbolFileNativePDB::CreateConstantSymbol(), lldb_private::npdb::SymbolFileNativePDB::CreateGlobalVariable(), lldb_private::npdb::SymbolFileNativePDB::CreateLocalVariable(), lldb_private::plugin::dwarf::SymbolFileDWARF::DeclContextMatchesThisSymbolFile(), lldb_private::plugin::dwarf::ManualDWARFIndex::Decode(), lldb_private::plugin::dwarf::ManualDWARFIndex::Encode(), lldb_private::plugin::dwarf::DWARFDebugInfoEntry::Extract(), lldb_private::plugin::dwarf::SymbolFileDWARF::FindDefinitionDIE(), lldb_private::plugin::dwarf::SymbolFileDWARF::FindFunctions(), lldb_private::plugin::dwarf::SymbolFileDWARF::FindGlobalVariables(), lldb_private::plugin::dwarf::SymbolFileDWARF::FindNamespace(), fixupExternalAddrZeroVariable(), lldb_private::plugin::dwarf::DWARFUnit::GetByteOrder(), lldb_private::plugin::dwarf::ManualDWARFIndex::GetCacheKey(), lldb_private::plugin::dwarf::DWARFDebugInfo::GetCompileUnitAranges(), lldb_private::plugin::dwarf::SymbolFileDWARFDebugMap::GetDebugInfoModules(), lldb_private::plugin::dwarf::DWARFUnit::GetDIE(), lldb_private::plugin::dwarf::SymbolFileDWARF::GetDwoSymbolFileForCompileUnit(), lldb_private::plugin::dwarf::SymbolFileDWARF::GetDwpSymbolFile(), lldb_private::plugin::dwarf::SymbolFileDWARFDebugMap::CompileUnitInfo::GetFileRangeMap(), lldb_private::plugin::dwarf::SymbolFileDWARF::GetGlobalAranges(), lldb_private::plugin::dwarf::SymbolFileDWARFDebugMap::GetModuleByCompUnitInfo(), lldb_private::plugin::dwarf::SymbolFileDWARF::GetModuleMutex(), GetPtrAuthMofidierPayload(), GetRangesOrReportError(), lldb_private::plugin::dwarf::DWARFUnit::GetRnglistData(), lldb_private::plugin::dwarf::DWARFUnit::GetRnglistTable(), lldb_private::plugin::dwarf::SymbolFileDWARF::GetTypeForDIE(), lldb_private::plugin::dwarf::SymbolFileDWARF::GetTypeUnitSupportFiles(), lldb_private::plugin::dwarf::SymbolFileDWARF::InitializeObject(), lldb_private::plugin::dwarf::SymbolFileDWARFDebugMap::LinkOSOAddress(), lldb_private::plugin::dwarf::ManualDWARFIndex::LoadFromCache(), lldb_private::plugin::dwarf::SymbolFileDWARF::ParseAndAppendGlobalVariable(), lldb_private::plugin::dwarf::SymbolFileDWARF::ParseBlocksRecursive(), lldb_private::plugin::dwarf::SymbolFileDWARF::ParseCallEdgesInFunction(), DWARFASTParserClang::ParseChildMembers(), SymbolFilePDB::ParseCompileUnitFunctionForPDBFunc(), lldb_private::SymbolFileCTF::ParseFunctions(), lldb_private::SymbolFileCTF::ParseHeader(), DWARFASTParserClang::ParseObjCProperty(), lldb_private::SymbolFileCTF::ParseObjects(), DWARFASTParserClang::ParseRustVariantPart(), DWARFASTParserClang::ParseSingleMember(), lldb_private::plugin::dwarf::SymbolFileDWARF::ParseVariableDIE(), SymbolFilePDB::ParseVariableForPDBData(), PrepareContextToReceiveMembers(), lldb_private::plugin::dwarf::DWARFFormValue::ReferencedUnitAndOffset(), lldb_private::plugin::dwarf::SymbolFileDWARF::ResolveType(), lldb_private::plugin::dwarf::SymbolFileDWARF::ResolveTypeUID(), lldb_private::plugin::dwarf::ManualDWARFIndex::SaveToCache(), SectionFileAddressesChanged(), lldb_private::plugin::dwarf::DWARFUnit::SetLoclistsBase(), and lldb_private::plugin::dwarf::SymbolFileDWARF::UpdateExternalModuleListIfNeeded().

◆ GetSymtab()

Symtab * SymbolFileCommon::GetSymtab ( )
overridevirtual

◆ GetTypeList()

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

◆ GetTypeSystemForLanguage()

llvm::Expected< TypeSystemSP > SymbolFileCommon::GetTypeSystemForLanguage ( lldb::LanguageType  language)
overridevirtual

◆ isA()

bool lldb_private::SymbolFileCommon::isA ( const void *  ClassID) const
inlineoverridevirtual

◆ MakeType()

lldb::TypeSP lldb_private::SymbolFileCommon::MakeType ( lldb::user_id_t  uid,
ConstString  name,
std::optional< uint64_t >  byte_size,
SymbolContextScope context,
lldb::user_id_t  encoding_uid,
Type::EncodingDataType  encoding_uid_type,
const Declaration decl,
const CompilerType compiler_qual_type,
Type::ResolveState  compiler_type_resolve_state,
uint32_t  opaque_payload = 0 
)
inlineoverridevirtual

◆ operator=()

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

◆ ParseCompileUnitAtIndex()

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

◆ SectionFileAddressesChanged()

void SymbolFileCommon::SectionFileAddressesChanged ( )
overridevirtual

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

Implements lldb_private::SymbolFile.

Definition at line 173 of file SymbolFile.cpp.

References GetMainObjectFile(), GetObjectFile(), GetSymtab(), and lldb_private::ObjectFile::SectionFileAddressesChanged().

◆ SetCompileUnitAtIndex()

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

◆ SetDebugInfoHadFrameVariableErrors()

void lldb_private::SymbolFileCommon::SetDebugInfoHadFrameVariableErrors ( )
inlineoverridevirtual

◆ SetDebugInfoIndexWasLoadedFromCache()

void lldb_private::SymbolFileCommon::SetDebugInfoIndexWasLoadedFromCache ( )
inlineoverridevirtual

◆ SetDebugInfoIndexWasSavedToCache()

void lldb_private::SymbolFileCommon::SetDebugInfoIndexWasSavedToCache ( )
inlineoverridevirtual

Member Data Documentation

◆ ID

char SymbolFileCommon::ID
staticprivate

LLVM RTTI support.

Definition at line 506 of file SymbolFile.h.

Referenced by classof(), and isA().

◆ m_abilities

uint32_t lldb_private::SymbolFileCommon::m_abilities = 0
protected

Definition at line 615 of file SymbolFile.h.

Referenced by GetAbilities().

◆ m_calculated_abilities

bool lldb_private::SymbolFileCommon::m_calculated_abilities = false
protected

Definition at line 616 of file SymbolFile.h.

Referenced by GetAbilities().

◆ m_compile_units

std::optional<std::vector<lldb::CompUnitSP> > lldb_private::SymbolFileCommon::m_compile_units
protected

Definition at line 613 of file SymbolFile.h.

Referenced by Dump(), GetNumCompileUnits(), and SetCompileUnitAtIndex().

◆ m_debug_info_had_variable_errors

bool lldb_private::SymbolFileCommon::m_debug_info_had_variable_errors = false
protected

Set to true if any variable feteching errors have been found when calling GetFrameVariableError().

This will be emitted in the "statistics dump" information for a module.

Definition at line 622 of file SymbolFile.h.

Referenced by GetDebugInfoHadFrameVariableErrors(), and SetDebugInfoHadFrameVariableErrors().

◆ m_index_was_loaded_from_cache

bool lldb_private::SymbolFileCommon::m_index_was_loaded_from_cache = false
protected

◆ m_index_was_saved_to_cache

bool lldb_private::SymbolFileCommon::m_index_was_saved_to_cache = false
protected

◆ m_objfile_sp

lldb::ObjectFileSP lldb_private::SymbolFileCommon::m_objfile_sp
protected

Definition at line 609 of file SymbolFile.h.

Referenced by SymbolFilePDB::AddSymbols(), lldb_private::breakpad::SymbolFileBreakpad::AddSymbols(), lldb_private::SymbolFileJSON::AddSymbols(), lldb_private::breakpad::SymbolFileBreakpad::CalculateAbilities(), lldb_private::SymbolFileCTF::CalculateAbilities(), lldb_private::plugin::dwarf::SymbolFileDWARF::CalculateAbilities(), lldb_private::SymbolFileJSON::CalculateAbilities(), lldb_private::npdb::SymbolFileNativePDB::CalculateAbilities(), SymbolFilePDB::CalculateAbilities(), SymbolFileSymtab::CalculateAbilities(), lldb_private::plugin::dwarf::SymbolFileDWARFDebugMap::CalculateFrameVariableError(), lldb_private::npdb::SymbolFileNativePDB::CreateCompileUnit(), lldb_private::plugin::dwarf::SymbolFileDWARF::FindCompleteObjCDefinitionTypeForDIE(), lldb_private::plugin::dwarf::SymbolFileDWARFDebugMap::FindCompleteObjCDefinitionTypeForDIE(), lldb_private::plugin::dwarf::SymbolFileDWARF::FindGlobalVariables(), SymbolFilePDB::FindGlobalVariables(), lldb_private::breakpad::SymbolFileBreakpad::GetBaseFileAddress(), GetDebugInfoSize(), lldb_private::breakpad::SymbolFileBreakpad::GetDebugInfoSize(), lldb_private::plugin::dwarf::SymbolFileDWARFDwo::GetDebugInfoSize(), lldb_private::plugin::dwarf::SymbolFileDWARF::GetDwoSymbolFileForCompileUnit(), lldb_private::plugin::dwarf::SymbolFileDWARF::GetDwpSymbolFile(), GetMainObjectFile(), lldb_private::plugin::dwarf::SymbolFileDWARFDebugMap::GetModuleByCompUnitInfo(), lldb_private::plugin::dwarf::SymbolFileDWARF::GetObjCClassSymbol(), GetObjectFile(), lldb_private::breakpad::SymbolFileBreakpad::GetOrCreateFunction(), lldb_private::breakpad::SymbolFileBreakpad::GetParameterStackSize(), GetTypeSystemForLanguage(), lldb_private::plugin::dwarf::SymbolFileDWARF::GetTypeSystemForLanguage(), lldb_private::npdb::SymbolFileNativePDB::GetTypeSystemForLanguage(), SymbolFilePDB::GetTypeSystemForLanguage(), lldb_private::plugin::dwarf::SymbolFileDWARF::InitializeFirstCodeAddress(), lldb_private::SymbolFileCTF::InitializeObject(), lldb_private::npdb::SymbolFileNativePDB::InitializeObject(), SymbolFilePDB::InitializeObject(), lldb_private::plugin::dwarf::SymbolFileDWARFDebugMap::InitOSO(), lldb_private::breakpad::SymbolFileBreakpad::lines(), lldb_private::plugin::dwarf::SymbolFileDWARF::LoadSectionData(), lldb_private::breakpad::SymbolFileBreakpad::ParseBlocksRecursive(), lldb_private::breakpad::SymbolFileBreakpad::ParseCFIUnwindPlan(), lldb_private::breakpad::SymbolFileBreakpad::ParseCFIUnwindRow(), lldb_private::plugin::dwarf::SymbolFileDWARF::ParseCompileUnit(), lldb_private::breakpad::SymbolFileBreakpad::ParseCompileUnitAtIndex(), lldb_private::plugin::dwarf::SymbolFileDWARFDebugMap::ParseCompileUnitAtIndex(), SymbolFileSymtab::ParseCompileUnitAtIndex(), SymbolFilePDB::ParseCompileUnitForUID(), lldb_private::breakpad::SymbolFileBreakpad::ParseCUData(), SymbolFileSymtab::ParseFunctions(), lldb_private::SymbolFileCTF::ParseHeader(), lldb_private::plugin::dwarf::SymbolFileDWARF::ParseImportedModules(), lldb_private::breakpad::SymbolFileBreakpad::ParseLineTableAndSupportFiles(), lldb_private::breakpad::SymbolFileBreakpad::ParseUnwindData(), lldb_private::breakpad::SymbolFileBreakpad::ParseWinUnwindPlan(), lldb_private::plugin::dwarf::SymbolFileDWARF::ParseXcodeSDK(), lldb_private::SymbolFileCTF::ResolveSymbolContext(), lldb_private::SymbolFileJSON::ResolveSymbolContext(), SymbolFileSymtab::ResolveSymbolContext(), lldb_private::breakpad::SymbolFileBreakpad::SaveAsDWARF(), and lldb_private::plugin::dwarf::SymbolFileDWARF::UpdateExternalModuleListIfNeeded().

◆ m_symtab

Symtab* lldb_private::SymbolFileCommon::m_symtab = nullptr
private

Do not use m_symtab directly, as it may be freed.

Use GetSymtab() to access it instead.

Definition at line 630 of file SymbolFile.h.

Referenced by GetSymtab().

◆ m_type_list

TypeList lldb_private::SymbolFileCommon::m_type_list
protected

Definition at line 614 of file SymbolFile.h.

Referenced by CopyType(), Dump(), GetTypeList(), and MakeType().


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