LLDB mainline
lldb_private::plugin::dwarf::SymbolFileDWARF Class Reference

#include <SymbolFileDWARF.h>

Inheritance diagram for lldb_private::plugin::dwarf::SymbolFileDWARF:
[legend]

Public Types

typedef std::map< ConstString, lldb::ModuleSPExternalTypeModuleMap
typedef llvm::DenseMap< const DWARFDebugInfoEntry *, lldb::VariableSPDIEToVariableSP
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)
}

Public Member Functions

 SymbolFileDWARF (lldb::ObjectFileSP objfile_sp, SectionList *dwo_section_list)
 ~SymbolFileDWARF () override
uint32_t CalculateAbilities () override
void InitializeObject () override
 Initialize the SymbolFile object.
lldb::LanguageType ParseLanguage (CompileUnit &comp_unit) override
XcodeSDK ParseXcodeSDK (CompileUnit &comp_unit) override
 Return the Xcode SDK comp_unit was compiled against.
size_t ParseFunctions (CompileUnit &comp_unit) override
bool ParseLineTable (CompileUnit &comp_unit) override
bool ParseDebugMacros (CompileUnit &comp_unit) override
bool ForEachExternalModule (CompileUnit &, llvm::DenseSet< SymbolFile * > &, llvm::function_ref< bool(Module &)>) override
bool ParseSupportFiles (CompileUnit &comp_unit, SupportFileList &support_files) override
bool ParseIsOptimized (CompileUnit &comp_unit) override
size_t ParseTypes (CompileUnit &comp_unit) override
bool ParseImportedModules (const SymbolContext &sc, std::vector< SourceModule > &imported_modules) override
size_t ParseBlocksRecursive (Function &func) override
size_t ParseVariablesForContext (const SymbolContext &sc) override
std::optional< ArrayInfoGetDynamicArrayInfoForUID (lldb::user_id_t type_uid, const ExecutionContext *exe_ctx) override
 If type_uid points to an array type, return its characteristics.
bool CompleteType (CompilerType &compiler_type) override
TypeResolveType (const DWARFDIE &die, bool assert_not_being_parsed=true, bool resolve_function_context=false)
CompilerDecl GetDeclForUID (lldb::user_id_t uid) override
CompilerDeclContext GetDeclContextForUID (lldb::user_id_t uid) override
CompilerDeclContext GetDeclContextContainingUID (lldb::user_id_t uid) override
std::vector< CompilerContextGetCompilerContextForUID (lldb::user_id_t uid) override
void ParseDeclsForContext (CompilerDeclContext decl_ctx) override
uint32_t ResolveSymbolContext (const Address &so_addr, lldb::SymbolContextItem resolve_scope, SymbolContext &sc) override
Status CalculateFrameVariableError (StackFrame &frame) override
 Subclasses will override this function to for GetFrameVariableError().
uint32_t ResolveSymbolContext (const SourceLocationSpec &src_location_spec, lldb::SymbolContextItem resolve_scope, SymbolContextList &sc_list) override
void FindGlobalVariables (ConstString name, const CompilerDeclContext &parent_decl_ctx, uint32_t max_matches, VariableList &variables) override
void FindGlobalVariables (const RegularExpression &regex, uint32_t max_matches, VariableList &variables) override
void FindFunctions (const Module::LookupInfo &lookup_info, const CompilerDeclContext &parent_decl_ctx, bool include_inlines, SymbolContextList &sc_list) override
void FindFunctions (const RegularExpression &regex, bool include_inlines, SymbolContextList &sc_list) override
void GetMangledNamesForFunction (const std::string &scope_qualified_name, std::vector< ConstString > &mangled_names) override
uint64_t GetDebugInfoSize (bool load_all_debug_info=false) override
 Metrics gathering functions.
void FindTypes (const lldb_private::TypeQuery &match, lldb_private::TypeResults &results) override
 Find types using a type-matching object that contains all search parameters.
void GetTypes (SymbolContextScope *sc_scope, lldb::TypeClass type_mask, TypeList &type_list) override
llvm::Expected< lldb::TypeSystemSPGetTypeSystemForLanguage (lldb::LanguageType language) override
CompilerDeclContext FindNamespace (ConstString name, const CompilerDeclContext &parent_decl_ctx, bool only_root_namespaces) override
 Finds a namespace of name name and whose parent context is parent_decl_ctx.
void PreloadSymbols () override
std::recursive_mutex & GetModuleMutex () const override
 Symbols file subclasses should override this to return the Module that owns the TypeSystem that this symbol file modifies type information in.
llvm::StringRef GetPluginName () override
llvm::DWARFDebugAbbrev * DebugAbbrev ()
DWARFDebugInfoDebugInfo ()
DWARFDIE GetDeclContextDIEContainingDIE (const DWARFDIE &die)
bool HasForwardDeclForCompilerType (const CompilerType &compiler_type)
CompileUnitGetCompUnitForDWARFCompUnit (DWARFCompileUnit &dwarf_cu)
virtual void GetObjCMethods (ConstString class_name, llvm::function_ref< IterationAction(DWARFDIE die)> callback)
DebugMacrosSP ParseDebugMacros (lldb::offset_t *offset)
lldb::ModuleSP GetExternalModule (ConstString name)
const ExternalTypeModuleMapgetExternalTypeModules () const
 Return the list of Clang modules imported by this SymbolFile.
virtual SymbolFileDWARFGetDIERefSymbolFile (const DIERef &die_ref)
 Given a DIERef, find the correct SymbolFileDWARF.
virtual DWARFDIE GetDIE (const DIERef &die_ref)
DWARFDIE GetDIE (lldb::user_id_t uid)
std::shared_ptr< SymbolFileDWARFDwoGetDwoSymbolFileForCompileUnit (DWARFUnit &dwarf_cu, const DWARFDebugInfoEntry &cu_die)
std::optional< uint64_t > GetDWOId ()
 If this is a DWARF object with a single CU, return its DW_AT_dwo_id.
DWARFUnitGetSkeletonUnit (DWARFUnit *dwo_unit)
 Given a DWO DWARFUnit, find the corresponding skeleton DWARFUnit in the main symbol file.
std::vector< std::unique_ptr< CallEdge > > ParseCallEdgesInFunction (UserID func_id) override
void Dump (Stream &s) override
void DumpClangAST (Stream &s, llvm::StringRef filter, bool show_colors) override
bool GetSeparateDebugInfo (StructuredData::Dictionary &d, bool errors_only, bool load_all_debug_info=false) override
 List separate dwo files.
DWOStats GetDwoStats () override
 Gets statistics about dwo files associated with this symbol file.
DWARFContextGetDWARFContext ()
const std::shared_ptr< SymbolFileDWARFDwo > & GetDwpSymbolFile ()
FileSpec GetFile (DWARFUnit &unit, size_t file_idx)
StatsDuration::Duration GetDebugInfoParseTime () override
 Return the time taken to parse the debug information.
StatsDuration::Duration GetDebugInfoIndexTime () override
 Return the time it took to index the debug information in the object file.
StatsDurationGetDebugInfoParseTimeRef ()
void ResetStatistics () override
 Reset the statistics for the symbol file.
virtual lldb::offset_t GetVendorDWARFOpcodeSize (const DataExtractor &data, const lldb::offset_t data_offset, const uint8_t op) const
virtual bool ParseVendorDWARFOpcode (uint8_t op, const DataExtractor &opcodes, lldb::offset_t &offset, RegisterContext *reg_ctx, lldb::RegisterKind reg_kind, std::vector< Value > &stack) const
ConstString ConstructFunctionDemangledName (const DWARFDIE &die)
std::optional< uint64_t > GetFileIndex () const
void SetFileIndex (std::optional< uint64_t > file_index)
virtual llvm::DenseMap< const DWARFDebugInfoEntry *, Type * > & GetDIEToType ()
virtual llvm::DenseMap< lldb::opaque_compiler_type_t, DIERef > & GetForwardDeclCompilerTypeToDIE ()
virtual DIEToVariableSPGetDIEToVariable ()
virtual UniqueDWARFASTTypeMapGetUniqueDWARFASTTypeMap ()
bool ClassOrStructIsVirtual (const DWARFDIE &die)
SymbolFileDWARFDebugMapGetDebugMapSymfile ()
virtual DWARFDIE FindDefinitionDIE (const DWARFDIE &die)
virtual lldb::TypeSP FindCompleteObjCDefinitionTypeForDIE (const DWARFDIE &die, ConstString type_name, bool must_be_implementation)
TypeResolveTypeUID (lldb::user_id_t type_uid) override
TypeResolveTypeUID (const DWARFDIE &die, bool assert_not_being_parsed)
TypeResolveTypeUID (const DIERef &die_ref)
DWARFIndexgetIndex ()
 Returns the DWARFIndex for this symbol, if it exists.
Public Member Functions inherited from lldb_private::SymbolFileCommon
 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 (bool can_create=true) 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
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 bool GetLoadDebugInfoEnabled ()
 Whether debug info will be loaded or not.
virtual void SetLoadDebugInfoEnabled ()
 Specify debug info should be loaded.
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 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.
Status GetFrameVariableError (StackFrame &frame)
 Get an error that describes why variables might be missing for a given symbol context.
virtual void AddSymbols (Symtab &symtab)
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 ModuleList GetDebugInfoModules ()
 Get the additional modules that this symbol file uses to parse debug info.
std::unordered_map< lldb::CompUnitSP, ArgsGetCompileOptions ()
 Returns a map of compilation unit to the compile option arguments associated with that compilation unit.
std::string GetObjectName () const
Public Member Functions inherited from lldb_private::PluginInterface
 PluginInterface ()=default
virtual ~PluginInterface ()=default
 PluginInterface (const PluginInterface &)=delete
PluginInterfaceoperator= (const PluginInterface &)=delete

Static Public Member Functions

static void Initialize ()
static void Terminate ()
static void DebuggerInitialize (Debugger &debugger)
static llvm::StringRef GetPluginNameStatic ()
static llvm::StringRef GetPluginDescriptionStatic ()
static SymbolFileCreateInstance (lldb::ObjectFileSP objfile_sp)
static bool SupportedVersion (uint16_t version)
static DWARFDIE GetParentSymbolContextDIE (const DWARFDIE &die)
static bool DIEInDeclContext (const CompilerDeclContext &parent_decl_ctx, const DWARFDIE &die, bool only_root_namespaces=false)
static llvm::Expected< lldb::TypeSystemSPGetTypeSystem (DWARFUnit &unit)
static DWARFASTParserGetDWARFParser (DWARFUnit &unit)
static CompilerDecl GetDecl (const DWARFDIE &die)
static CompilerDeclContext GetDeclContext (const DWARFDIE &die)
static CompilerDeclContext GetContainingDeclContext (const DWARFDIE &die)
static lldb::LanguageType LanguageTypeFromDWARF (uint64_t val)
static lldb::LanguageType GetLanguage (DWARFUnit &unit)
static lldb::LanguageType GetLanguageFamily (DWARFUnit &unit)
 Same as GetLanguage() but reports all C++ versions as C++ (no version).
static bool classof (const SymbolFileCommon *obj)
Static Public Member Functions inherited from lldb_private::SymbolFile
static SymbolFileFindPlugin (lldb::ObjectFileSP objfile_sp)
static bool classof (const SymbolFile *obj)

Protected Types

typedef llvm::SetVector< Type * > TypeSet
typedef RangeDataVector< lldb::addr_t, lldb::addr_t, Variable * > GlobalVariableMap
typedef std::unordered_map< lldb::offset_t, DebugMacrosSPDebugMacrosMap
typedef std::set< DIERefDIERefSet
typedef llvm::StringMap< DIERefSetNameToOffsetMap

Protected Member Functions

 SymbolFileDWARF (const SymbolFileDWARF &)=delete
const SymbolFileDWARFoperator= (const SymbolFileDWARF &)=delete
virtual void LoadSectionData (lldb::SectionType sect_type, DWARFDataExtractor &data)
bool DeclContextMatchesThisSymbolFile (const CompilerDeclContext &decl_ctx)
uint32_t CalculateNumCompileUnits () override
lldb::CompUnitSP ParseCompileUnitAtIndex (uint32_t index) override
TypeListGetTypeList () override
lldb::CompUnitSP ParseCompileUnit (DWARFCompileUnit &dwarf_cu)
virtual DWARFCompileUnitGetDWARFCompileUnit (CompileUnit *comp_unit)
DWARFUnitGetNextUnparsedDWARFCompileUnit (DWARFUnit *prev_cu)
bool GetFunction (const DWARFDIE &die, SymbolContext &sc)
FunctionParseFunction (CompileUnit &comp_unit, const DWARFDIE &die)
size_t ParseBlocksRecursive (CompileUnit &comp_unit, Block *parent_block, DWARFDIE die, lldb::addr_t function_file_addr)
size_t ParseTypes (const SymbolContext &sc, const DWARFDIE &die, bool parse_siblings, bool parse_children)
lldb::TypeSP ParseType (const SymbolContext &sc, const DWARFDIE &die, bool *type_is_new)
bool ParseSupportFiles (DWARFUnit &dwarf_cu, const lldb::ModuleSP &module, SupportFileList &support_files)
lldb::VariableSP ParseVariableDIE (const SymbolContext &sc, const DWARFDIE &die, const lldb::addr_t func_low_pc)
lldb::VariableSP ParseVariableDIECached (const SymbolContext &sc, const DWARFDIE &die)
void ParseAndAppendGlobalVariable (const SymbolContext &sc, const DWARFDIE &die, VariableList &cc_variable_list)
size_t ParseVariablesInFunctionContext (const SymbolContext &sc, const DWARFDIE &die, const lldb::addr_t func_low_pc)
size_t ParseVariablesInFunctionContextRecursive (const SymbolContext &sc, const DWARFDIE &die, lldb::addr_t func_low_pc, DIEArray &accumulator)
size_t PopulateBlockVariableList (VariableList &variable_list, const SymbolContext &sc, llvm::ArrayRef< DIERef > variable_dies, lldb::addr_t func_low_pc)
DIEArray MergeBlockAbstractParameters (const DWARFDIE &block_die, DIEArray &&variable_dies)
llvm::Expected< SymbolContextResolveFunctionCallLabel (FunctionCallLabel &label) override
 Resolves the function corresponding to the specified LLDB function call label.
bool ResolveFunction (const DWARFDIE &die, bool include_inlines, SymbolContextList &sc_list)
void ResolveFunctionAndBlock (lldb::addr_t file_vm_addr, bool lookup_block, SymbolContext &sc)
 Resolve functions and (possibly) blocks for the given file address and a compile unit.
SymbolGetObjCClassSymbol (ConstString objc_class_name)
lldb::TypeSP GetTypeForDIE (const DWARFDIE &die, bool resolve_function_context=false)
void SetDebugMapModule (const lldb::ModuleSP &module_sp)
DWARFDIE FindBlockContainingSpecification (const DIERef &func_die_ref, dw_offset_t spec_block_die_offset)
DWARFDIE FindBlockContainingSpecification (const DWARFDIE &die, dw_offset_t spec_block_die_offset)
bool ClassContainsSelector (const DWARFDIE &class_die, ConstString selector)
std::vector< std::unique_ptr< CallEdge > > CollectCallEdges (lldb::ModuleSP module, DWARFDIE function_die)
 Parse call site entries (DW_TAG_call_site), including any nested call site parameters (DW_TAG_call_site_parameter).
lldb::addr_t FixupAddress (lldb::addr_t file_addr)
 If this symbol file is linked to by a debug map (see SymbolFileDWARFDebugMap), and file_addr is a file address relative to an object file, adjust file_addr so that it is relative to the main binary.
bool FixupAddress (Address &addr)
void GetTypes (const DWARFDIE &die, dw_offset_t min_die_offset, dw_offset_t max_die_offset, uint32_t type_mask, TypeSet &type_set)
GlobalVariableMapGetGlobalAranges ()
void UpdateExternalModuleListIfNeeded ()
void BuildCuTranslationTable ()
std::optional< uint32_t > GetDWARFUnitIndex (uint32_t cu_idx)
void FindDwpSymbolFile ()
const SupportFileListGetTypeUnitSupportFiles (DWARFTypeUnit &tu)
void InitializeFirstCodeAddressRecursive (const SectionList &section_list)
void InitializeFirstCodeAddress ()
void GetCompileOptions (std::unordered_map< lldb::CompUnitSP, Args > &args) override
Protected Member Functions inherited from lldb_private::SymbolFileCommon
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::ModuleWP m_debug_map_module_wp
SymbolFileDWARFDebugMapm_debug_map_symfile
llvm::once_flag m_dwp_symfile_once_flag
std::shared_ptr< SymbolFileDWARFDwom_dwp_symfile
DWARFContext m_context
llvm::once_flag m_info_once_flag
std::unique_ptr< DWARFDebugInfom_info
std::unique_ptr< llvm::DWARFDebugAbbrev > m_abbr
std::unique_ptr< GlobalVariableMapm_global_aranges_up
DebugMacrosMap m_debug_macros_map
ExternalTypeModuleMap m_external_type_modules
std::unique_ptr< DWARFIndexm_index
bool m_fetched_external_modules: 1
NameToOffsetMap m_function_scope_qualified_name_map
UniqueDWARFASTTypeMap m_unique_ast_type_map
llvm::DenseMap< const DWARFDebugInfoEntry *, Type * > m_die_to_type
DIEToVariableSP m_die_to_variable_sp
llvm::DenseMap< lldb::opaque_compiler_type_t, DIERefm_forward_decl_compiler_type_to_die
llvm::DenseMap< dw_offset_t, std::unique_ptr< SupportFileList > > m_type_unit_support_files
std::vector< uint32_t > m_lldb_cu_to_dwarf_unit
lldb::addr_t m_first_code_address = LLDB_INVALID_ADDRESS
 DWARF does not provide a good way for traditional (concatenating) linkers to invalidate debug info describing dead-stripped code.
StatsDuration m_parse_time
std::atomic_flag m_dwo_warning_issued = ATOMIC_FLAG_INIT
std::optional< uint64_t > m_file_index
 If this DWARF file a .DWO file or a DWARF .o file on mac when no dSYM file is being used, this file index will be set to a valid value that can be used in DIERef objects which will contain an index that identifies the .DWO or .o file.
Protected Attributes inherited from lldb_private::SymbolFileCommon
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

llvm::Expected< DWARFDIEFindFunctionDefinition (const FunctionCallLabel &label, const DWARFDIE &declaration)
 Find the definition DIE for the specified label in this SymbolFile.

Static Private Attributes

static char ID
 LLVM RTTI support.

Friends

class SymbolFileDWARFDebugMap
class SymbolFileDWARFDwo
class DebugMapModule
class DWARFCompileUnit
class DWARFDIE
class DWARFASTParser
bool isA (const void *ClassID) const override
 LLVM RTTI support.
static bool classof (const SymbolFile *obj)

Detailed Description

Definition at line 66 of file SymbolFileDWARF.h.

Member Typedef Documentation

◆ DebugMacrosMap

Definition at line 539 of file SymbolFileDWARF.h.

◆ DIERefSet

Definition at line 546 of file SymbolFileDWARF.h.

◆ DIEToVariableSP

◆ ExternalTypeModuleMap

◆ GlobalVariableMap

◆ NameToOffsetMap

Definition at line 547 of file SymbolFileDWARF.h.

◆ TypeSet

typedef llvm::SetVector<Type *> lldb_private::plugin::dwarf::SymbolFileDWARF::TypeSet
protected

Definition at line 498 of file SymbolFileDWARF.h.

Constructor & Destructor Documentation

◆ SymbolFileDWARF() [1/2]

◆ ~SymbolFileDWARF()

SymbolFileDWARF::~SymbolFileDWARF ( )
overridedefault

References DWARFDIE.

◆ SymbolFileDWARF() [2/2]

lldb_private::plugin::dwarf::SymbolFileDWARF::SymbolFileDWARF ( const SymbolFileDWARF & )
protecteddelete

References SymbolFileDWARF().

Member Function Documentation

◆ BuildCuTranslationTable()

◆ CalculateAbilities()

◆ CalculateFrameVariableError()

◆ CalculateNumCompileUnits()

uint32_t SymbolFileDWARF::CalculateNumCompileUnits ( )
overrideprotectedvirtual

◆ ClassContainsSelector()

bool lldb_private::plugin::dwarf::SymbolFileDWARF::ClassContainsSelector ( const DWARFDIE & class_die,
ConstString selector )
protected

References DWARFDIE.

◆ classof()

bool lldb_private::plugin::dwarf::SymbolFileDWARF::classof ( const SymbolFile * obj)
inlinestatic

◆ ClassOrStructIsVirtual()

bool SymbolFileDWARF::ClassOrStructIsVirtual ( const DWARFDIE & die)

◆ CollectCallEdges()

std::vector< std::unique_ptr< lldb_private::CallEdge > > SymbolFileDWARF::CollectCallEdges ( lldb::ModuleSP module,
DWARFDIE function_die )
protected

◆ CompleteType()

◆ ConstructFunctionDemangledName()

◆ CreateInstance()

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

Definition at line 337 of file SymbolFileDWARF.cpp.

References lldb_private::SymbolFile::SymbolFile(), and SymbolFileDWARF().

Referenced by Initialize(), and Terminate().

◆ DebugAbbrev()

◆ DebuggerInitialize()

void SymbolFileDWARF::DebuggerInitialize ( Debugger & debugger)
static

◆ DebugInfo()

◆ DeclContextMatchesThisSymbolFile()

◆ DIEInDeclContext()

◆ Dump()

void SymbolFileDWARF::Dump ( lldb_private::Stream & s)
overridevirtual

Reimplemented from lldb_private::SymbolFileCommon.

Definition at line 4325 of file SymbolFileDWARF.cpp.

References lldb_private::SymbolFileCommon::Dump(), and m_index.

◆ DumpClangAST()

void SymbolFileDWARF::DumpClangAST ( Stream & s,
llvm::StringRef filter,
bool show_colors )
overridevirtual

◆ FindBlockContainingSpecification() [1/2]

DWARFDIE SymbolFileDWARF::FindBlockContainingSpecification ( const DIERef & func_die_ref,
dw_offset_t spec_block_die_offset )
protected

◆ FindBlockContainingSpecification() [2/2]

◆ FindCompleteObjCDefinitionTypeForDIE()

◆ FindDefinitionDIE()

◆ FindDwpSymbolFile()

void lldb_private::plugin::dwarf::SymbolFileDWARF::FindDwpSymbolFile ( )
protected

◆ FindFunctionDefinition()

llvm::Expected< DWARFDIE > SymbolFileDWARF::FindFunctionDefinition ( const FunctionCallLabel & label,
const DWARFDIE & declaration )
private

◆ FindFunctions() [1/2]

◆ FindFunctions() [2/2]

◆ FindGlobalVariables() [1/2]

◆ FindGlobalVariables() [2/2]

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

If the actual namespace is inline (i.e., had a DW_AT_export_symbols) and a child (possibly through other layers of inline namespaces) of the namespace referred to by 'basename', allow the lookup to succeed.

Reimplemented from lldb_private::SymbolFile.

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

Definition at line 2319 of file SymbolFileDWARF.cpp.

References lldb_private::SymbolContext::comp_unit, lldb_private::Continue, DeclContextMatchesThisSymbolFile(), DWARFASTParser, DWARFDIE, lldb_private::Mangled::eManglingSchemeNone, lldb_private::CPlusPlusLanguage::ExtractContextAndIdentifier(), GetCompUnitForDWARFCompUnit(), lldb_private::ConstString::GetCString(), lldb_private::plugin::dwarf::DWARFBaseDIE::GetCU(), GetDWARFParser(), lldb_private::GetLog(), lldb_private::Mangled::GetManglingScheme(), lldb_private::ModuleChild::GetModule(), GetModuleMutex(), lldb_private::SymbolFileCommon::GetObjectFile(), lldb_private::VariableList::GetSize(), lldb_private::ConstString::GetStringRef(), lldb_private::VariableList::GetVariableAtIndex(), lldb_private::CompilerDeclContext::IsContainedInLookup(), lldb_private::Lookups, m_index, lldb_private::SymbolFileCommon::m_objfile_sp, lldb_private::SymbolContext::module_sp, ParseAndAppendGlobalVariable(), lldb_private::VariableList::RemoveVariableAtIndex(), lldb_private::Stop, and lldb_private::plugin::dwarf::DWARFBaseDIE::Tag().

Referenced by lldb_private::plugin::dwarf::SymbolFileDWARFDebugMap::FindGlobalVariables(), lldb_private::plugin::dwarf::SymbolFileDWARFDebugMap::FindGlobalVariables(), lldb_private::plugin::dwarf::SymbolFileDWARFDwo::FindGlobalVariables(), and lldb_private::plugin::dwarf::SymbolFileDWARFDebugMap::PrivateFindGlobalVariables().

◆ FindNamespace()

◆ FindTypes()

◆ FixupAddress() [1/2]

bool SymbolFileDWARF::FixupAddress ( Address & addr)
protected

◆ FixupAddress() [2/2]

lldb::addr_t SymbolFileDWARF::FixupAddress ( lldb::addr_t file_addr)
protected

If this symbol file is linked to by a debug map (see SymbolFileDWARFDebugMap), and file_addr is a file address relative to an object file, adjust file_addr so that it is relative to the main binary.

Returns the adjusted address, or file_addr if no adjustment is needed, on success and LLDB_INVALID_ADDRESS otherwise.

Definition at line 972 of file SymbolFileDWARF.cpp.

References GetDebugMapSymfile(), lldb_private::plugin::dwarf::SymbolFileDWARFDebugMap::LinkOSOFileAddress(), and SymbolFileDWARFDebugMap.

Referenced by CollectCallEdges(), and ParseFunction().

◆ ForEachExternalModule()

bool SymbolFileDWARF::ForEachExternalModule ( CompileUnit & ,
llvm::DenseSet< SymbolFile * > & ,
llvm::function_ref< bool(Module &)>  )
override

◆ GetCompileOptions()

◆ GetCompilerContextForUID()

std::vector< CompilerContext > SymbolFileDWARF::GetCompilerContextForUID ( lldb::user_id_t uid)
overridevirtual

◆ GetCompUnitForDWARFCompUnit()

◆ GetContainingDeclContext()

CompilerDeclContext SymbolFileDWARF::GetContainingDeclContext ( const DWARFDIE & die)
static

◆ GetDebugInfoIndexTime()

StatsDuration::Duration SymbolFileDWARF::GetDebugInfoIndexTime ( )
overridevirtual

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 from lldb_private::SymbolFile.

Definition at line 4558 of file SymbolFileDWARF.cpp.

References m_index.

◆ GetDebugInfoParseTime()

StatsDuration::Duration lldb_private::plugin::dwarf::SymbolFileDWARF::GetDebugInfoParseTime ( )
inlineoverridevirtual

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 from lldb_private::SymbolFile.

Definition at line 317 of file SymbolFileDWARF.h.

References m_parse_time.

◆ GetDebugInfoParseTimeRef()

StatsDuration & lldb_private::plugin::dwarf::SymbolFileDWARF::GetDebugInfoParseTimeRef ( )
inline

Definition at line 322 of file SymbolFileDWARF.h.

References m_parse_time.

◆ GetDebugInfoSize()

uint64_t SymbolFileDWARF::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

Reimplemented from lldb_private::SymbolFileCommon.

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

Definition at line 2838 of file SymbolFileDWARF.cpp.

References DebugInfo(), lldb_private::plugin::dwarf::SymbolFileDWARFDwo::GetDebugInfoSize(), lldb_private::SymbolFileCommon::GetDebugInfoSize(), lldb_private::plugin::dwarf::DWARFUnit::GetDwoSymbolFile(), GetDwpSymbolFile(), lldb_private::plugin::dwarf::DWARFDebugInfo::GetNumUnits(), lldb_private::plugin::dwarf::DWARFDebugInfo::GetUnitAtIndex(), and SymbolFileDWARFDwo.

◆ GetDebugMapSymfile()

◆ GetDecl()

CompilerDecl SymbolFileDWARF::GetDecl ( const DWARFDIE & die)
static

◆ GetDeclContext()

◆ GetDeclContextContainingUID()

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

◆ GetDeclContextDIEContainingDIE()

◆ GetDeclContextForUID()

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

◆ GetDeclForUID()

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

Reimplemented from lldb_private::SymbolFile.

Definition at line 1437 of file SymbolFileDWARF.cpp.

References DWARFDIE, GetDecl(), GetDIE(), and GetModuleMutex().

◆ GetDIE() [1/2]

◆ GetDIE() [2/2]

DWARFDIE SymbolFileDWARF::GetDIE ( lldb::user_id_t uid)

Definition at line 1435 of file SymbolFileDWARF.cpp.

References GetDIE().

◆ GetDIERefSymbolFile()

SymbolFileDWARF * SymbolFileDWARF::GetDIERefSymbolFile ( const DIERef & die_ref)
virtual

Given a DIERef, find the correct SymbolFileDWARF.

A DIERef contains a file index that can uniquely identify a N_OSO file for DWARF in .o files on mac, or a .dwo or .dwp file index for split DWARF. Calling this function will find the correct symbol file to use so that further lookups can be done on the correct symbol file so that the DIE offset makes sense in the DIERef.

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

Definition at line 1706 of file SymbolFileDWARF.cpp.

References DebugInfo(), lldb_private::plugin::dwarf::DIERef::file_index(), GetDebugMapSymfile(), lldb_private::plugin::dwarf::DWARFUnit::GetDwoSymbolFile(), GetDwpSymbolFile(), GetFileIndex(), lldb_private::plugin::dwarf::DWARFDebugInfo::GetUnitAtIndex(), lldb_private::plugin::dwarf::DIERef::k_file_index_mask, SymbolFileDWARF(), and SymbolFileDWARFDebugMap.

Referenced by GetDIE(), and lldb_private::plugin::dwarf::SymbolFileDWARFDwo::GetDIERefSymbolFile().

◆ GetDIEToType()

◆ GetDIEToVariable()

virtual DIEToVariableSP & lldb_private::plugin::dwarf::SymbolFileDWARF::GetDIEToVariable ( )
inlinevirtual

◆ GetDWARFCompileUnit()

◆ GetDWARFContext()

◆ GetDWARFParser()

◆ GetDWARFUnitIndex()

std::optional< uint32_t > SymbolFileDWARF::GetDWARFUnitIndex ( uint32_t cu_idx)
protected

◆ GetDWOId()

std::optional< uint64_t > SymbolFileDWARF::GetDWOId ( )

If this is a DWARF object with a single CU, return its DW_AT_dwo_id.

Definition at line 1764 of file SymbolFileDWARF.cpp.

References DWARFCompileUnit, lldb_private::SymbolFileCommon::GetCompileUnitAtIndex(), GetDWARFCompileUnit(), and lldb_private::SymbolFileCommon::GetNumCompileUnits().

Referenced by UpdateExternalModuleListIfNeeded().

◆ GetDwoStats()

DWOStats SymbolFileDWARF::GetDwoStats ( )
overridevirtual

◆ GetDwoSymbolFileForCompileUnit()

◆ GetDwpSymbolFile()

◆ GetDynamicArrayInfoForUID()

std::optional< SymbolFile::ArrayInfo > SymbolFileDWARF::GetDynamicArrayInfoForUID ( lldb::user_id_t type_uid,
const 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 1495 of file SymbolFileDWARF.cpp.

References DWARFDIE, GetDIE(), GetModuleMutex(), and lldb_private::plugin::dwarf::DWARFASTParser::ParseChildArrayInfo().

Referenced by lldb_private::plugin::dwarf::SymbolFileDWARFDebugMap::GetDynamicArrayInfoForUID().

◆ GetExternalModule()

lldb::ModuleSP SymbolFileDWARF::GetExternalModule ( ConstString name)

◆ getExternalTypeModules()

const ExternalTypeModuleMap & lldb_private::plugin::dwarf::SymbolFileDWARF::getExternalTypeModules ( ) const
inline

Return the list of Clang modules imported by this SymbolFile.

Definition at line 236 of file SymbolFileDWARF.h.

References m_external_type_modules.

◆ GetFile()

FileSpec SymbolFileDWARF::GetFile ( DWARFUnit & unit,
size_t file_idx )

◆ GetFileIndex()

std::optional< uint64_t > lldb_private::plugin::dwarf::SymbolFileDWARF::GetFileIndex ( ) const
inline

◆ GetForwardDeclCompilerTypeToDIE()

◆ GetFunction()

◆ GetGlobalAranges()

◆ getIndex()

DWARFIndex * lldb_private::plugin::dwarf::SymbolFileDWARF::getIndex ( )
inline

Returns the DWARFIndex for this symbol, if it exists.

Definition at line 376 of file SymbolFileDWARF.h.

References m_index.

◆ GetLanguage()

◆ GetLanguageFamily()

LanguageType SymbolFileDWARF::GetLanguageFamily ( DWARFUnit & unit)
static

◆ GetMangledNamesForFunction()

◆ GetModuleMutex()

◆ GetNextUnparsedDWARFCompileUnit()

DWARFUnit * lldb_private::plugin::dwarf::SymbolFileDWARF::GetNextUnparsedDWARFCompileUnit ( DWARFUnit * prev_cu)
protected

References DWARFDIE.

◆ GetObjCClassSymbol()

◆ GetObjCMethods()

void SymbolFileDWARF::GetObjCMethods ( ConstString class_name,
llvm::function_ref< IterationAction(DWARFDIE die)> callback )
virtual

◆ GetParentSymbolContextDIE()

◆ GetPluginDescriptionStatic()

llvm::StringRef SymbolFileDWARF::GetPluginDescriptionStatic ( )
static

Definition at line 333 of file SymbolFileDWARF.cpp.

Referenced by Initialize().

◆ GetPluginName()

llvm::StringRef lldb_private::plugin::dwarf::SymbolFileDWARF::GetPluginName ( )
inlineoverridevirtual

Implements lldb_private::PluginInterface.

Definition at line 208 of file SymbolFileDWARF.h.

References GetPluginNameStatic().

◆ GetPluginNameStatic()

llvm::StringRef lldb_private::plugin::dwarf::SymbolFileDWARF::GetPluginNameStatic ( )
inlinestatic

◆ GetSeparateDebugInfo()

◆ GetSkeletonUnit()

DWARFUnit * SymbolFileDWARF::GetSkeletonUnit ( DWARFUnit * dwo_unit)

Given a DWO DWARFUnit, find the corresponding skeleton DWARFUnit in the main symbol file.

DWP files can have their DWARFUnits parsed without the skeleton compile units having been parsed, so sometimes we need to find the skeleton compile unit for a DWO DWARFUnit so we can fill in this link. Currently unless the skeleton compile unit has been parsed and the Unit DIE has been parsed, the DWO unit will not have a backward link setup correctly which was causing crashes due to an assertion that was firing in SymbolFileDWARF::GetCompUnitForDWARFCompUnit().

Definition at line 1774 of file SymbolFileDWARF.cpp.

References DebugInfo(), and lldb_private::plugin::dwarf::DWARFDebugInfo::GetSkeletonUnit().

Referenced by lldb_private::plugin::dwarf::DWARFUnit::GetSkeletonUnit().

◆ GetTypeForDIE()

◆ GetTypeList()

TypeList & SymbolFileDWARF::GetTypeList ( )
overrideprotectedvirtual

◆ GetTypes() [1/2]

void SymbolFileDWARF::GetTypes ( const DWARFDIE & die,
dw_offset_t min_die_offset,
dw_offset_t max_die_offset,
uint32_t type_mask,
TypeSet & type_set )
protected

◆ GetTypes() [2/2]

void lldb_private::plugin::dwarf::SymbolFileDWARF::GetTypes ( SymbolContextScope * sc_scope,
lldb::TypeClass type_mask,
TypeList & type_list )
overridevirtual

◆ GetTypeSystem()

llvm::Expected< lldb::TypeSystemSP > SymbolFileDWARF::GetTypeSystem ( DWARFUnit & unit)
static

◆ GetTypeSystemForLanguage()

◆ GetTypeUnitSupportFiles()

◆ GetUniqueDWARFASTTypeMap()

◆ GetVendorDWARFOpcodeSize()

virtual lldb::offset_t lldb_private::plugin::dwarf::SymbolFileDWARF::GetVendorDWARFOpcodeSize ( const DataExtractor & data,
const lldb::offset_t data_offset,
const uint8_t op ) const
inlinevirtual

◆ HasForwardDeclForCompilerType()

◆ Initialize()

◆ InitializeFirstCodeAddress()

void SymbolFileDWARF::InitializeFirstCodeAddress ( )
protected

◆ InitializeFirstCodeAddressRecursive()

void SymbolFileDWARF::InitializeFirstCodeAddressRecursive ( const SectionList & section_list)
protected

◆ InitializeObject()

◆ isA()

bool lldb_private::plugin::dwarf::SymbolFileDWARF::isA ( const void * ClassID) const
inlineoverridevirtual

◆ LanguageTypeFromDWARF()

LanguageType SymbolFileDWARF::LanguageTypeFromDWARF ( uint64_t val)
static

◆ LoadSectionData()

void SymbolFileDWARF::LoadSectionData ( lldb::SectionType sect_type,
DWARFDataExtractor & data )
protectedvirtual

◆ MergeBlockAbstractParameters()

◆ operator=()

const SymbolFileDWARF & lldb_private::plugin::dwarf::SymbolFileDWARF::operator= ( const SymbolFileDWARF & )
protecteddelete

◆ ParseAndAppendGlobalVariable()

◆ ParseBlocksRecursive() [1/2]

◆ ParseBlocksRecursive() [2/2]

◆ ParseCallEdgesInFunction()

◆ ParseCompileUnit()

◆ ParseCompileUnitAtIndex()

CompUnitSP SymbolFileDWARF::ParseCompileUnitAtIndex ( uint32_t index)
overrideprotectedvirtual

◆ ParseDebugMacros() [1/2]

◆ ParseDebugMacros() [2/2]

◆ ParseDeclsForContext()

◆ ParseFunction()

◆ ParseFunctions()

◆ ParseImportedModules()

◆ ParseIsOptimized()

◆ ParseLanguage()

◆ ParseLineTable()

◆ ParseSupportFiles() [1/2]

◆ ParseSupportFiles() [2/2]

◆ ParseType()

◆ ParseTypes() [1/2]

◆ ParseTypes() [2/2]

◆ ParseVariableDIE()

VariableSP SymbolFileDWARF::ParseVariableDIE ( const SymbolContext & sc,
const DWARFDIE & die,
const lldb::addr_t func_low_pc )
protected

Definition at line 3559 of file SymbolFileDWARF.cpp.

References lldb_private::plugin::dwarf::DWARFFormValue::AsCString(), lldb_private::plugin::dwarf::DWARFAttributes::AttributeAtIndex(), lldb_private::plugin::dwarf::DWARFFormValue::Boolean(), lldb_private::SymbolContext::comp_unit, lldb_private::plugin::dwarf::DWARFAttributes::CompileUnitAtIndex(), lldb_private::DWARFExpressionList::ContainsThreadLocalStorage(), lldb_private::plugin::dwarf::DW_TAG_value_to_name(), DWARFDIE, lldb::eDescriptionLevelFull, lldb::eValueTypeInvalid, lldb::eValueTypeVariableArgument, lldb::eValueTypeVariableGlobal, lldb::eValueTypeVariableLocal, lldb::eValueTypeVariableStatic, lldb::eValueTypeVariableThreadLocal, lldb_private::plugin::dwarf::DWARFAttributes::ExtractFormValueAtIndex(), lldb_private::Block::FindBlockByID(), fixupExternalAddrZeroVariable(), lldb_private::plugin::dwarf::DWARFFormValue::Form(), lldb_private::SymbolContext::function, lldb_private::plugin::dwarf::DWARFUnit::GetAddressByteSize(), lldb_private::DWARFExpressionList::GetAlwaysValidExpr(), lldb_private::plugin::dwarf::DWARFBaseDIE::GetAttributes(), lldb_private::Function::GetBlock(), lldb_private::ConstString::GetCString(), lldb_private::plugin::dwarf::DWARFBaseDIE::GetCU(), lldb_private::StreamString::GetData(), GetDebugMapSymfile(), GetDeclContextDIEContainingDIE(), lldb_private::plugin::dwarf::DWARFDIE::GetDIE(), lldb_private::plugin::dwarf::DWARFBaseDIE::GetDWARF(), lldb_private::plugin::dwarf::DWARFDIE::GetDWARFDeclContext(), GetExprListFromAtConstValue(), GetExprListFromAtLocation(), lldb_private::plugin::dwarf::DWARFUnit::GetFile(), lldb_private::plugin::dwarf::DWARFBaseDIE::GetID(), GetLanguage(), lldb_private::ModuleChild::GetModule(), lldb_private::DWARFExpressionList::GetMutableExpressionAtAddress(), lldb_private::SymbolFileCommon::GetObjectFile(), lldb_private::plugin::dwarf::DWARFBaseDIE::GetOffset(), GetParentSymbolContextDIE(), lldb_private::plugin::dwarf::DWARFDeclContext::GetQualifiedNameAsConstString(), lldb_private::plugin::dwarf::DWARFFormValue::GetUnit(), lldb_private::plugin::dwarf::DWARFFormValue::IsDataForm(), lldb_private::DWARFExpressionList::IsValid(), lldb_private::plugin::dwarf::DWARFFormValue::IsValid(), lldb_private::Language::LanguageIsCPlusPlus(), lldb_private::plugin::dwarf::SymbolFileDWARFDebugMap::LinkOSOFileAddress(), lldb_private::DWARFExpressionList::LinkThreadLocalStorage(), LLDB_INVALID_ADDRESS, ParseVariableDIE(), lldb_private::plugin::dwarf::DWARFFormValue::Reference(), lldb_private::Declaration::SetColumn(), lldb_private::Declaration::SetFile(), lldb_private::Declaration::SetLine(), lldb_private::DWARFExpressionList::SetModule(), lldb_private::plugin::dwarf::DWARFAttributes::Size(), SymbolFileDWARFDebugMap, lldb_private::plugin::dwarf::DWARFBaseDIE::Tag(), lldb_private::plugin::dwarf::DWARFFormValue::Unsigned(), lldb_private::DWARFExpression::Update_DW_OP_addr(), and lldb_private::DWARFExpression::UpdateValue().

Referenced by ParseVariableDIE(), ParseVariableDIECached(), and PopulateBlockVariableList().

◆ ParseVariableDIECached()

◆ ParseVariablesForContext()

◆ ParseVariablesInFunctionContext()

size_t SymbolFileDWARF::ParseVariablesInFunctionContext ( const SymbolContext & sc,
const DWARFDIE & die,
const lldb::addr_t func_low_pc )
protected

◆ ParseVariablesInFunctionContextRecursive()

◆ ParseVendorDWARFOpcode()

virtual bool lldb_private::plugin::dwarf::SymbolFileDWARF::ParseVendorDWARFOpcode ( uint8_t op,
const DataExtractor & opcodes,
lldb::offset_t & offset,
RegisterContext * reg_ctx,
lldb::RegisterKind reg_kind,
std::vector< Value > & stack ) const
inlinevirtual

◆ ParseXcodeSDK()

◆ PopulateBlockVariableList()

size_t SymbolFileDWARF::PopulateBlockVariableList ( VariableList & variable_list,
const SymbolContext & sc,
llvm::ArrayRef< DIERef > variable_dies,
lldb::addr_t func_low_pc )
protected

◆ PreloadSymbols()

void SymbolFileDWARF::PreloadSymbols ( )
overridevirtual

◆ ResetStatistics()

void SymbolFileDWARF::ResetStatistics ( )
overridevirtual

Reset the statistics for the symbol file.

Reimplemented from lldb_private::SymbolFile.

Definition at line 4564 of file SymbolFileDWARF.cpp.

References m_index, and m_parse_time.

◆ ResolveFunction()

◆ ResolveFunctionAndBlock()

void SymbolFileDWARF::ResolveFunctionAndBlock ( lldb::addr_t file_vm_addr,
bool lookup_block,
SymbolContext & sc )
protected

◆ ResolveFunctionCallLabel()

◆ ResolveSymbolContext() [1/2]

uint32_t lldb_private::plugin::dwarf::SymbolFileDWARF::ResolveSymbolContext ( const Address & so_addr,
lldb::SymbolContextItem resolve_scope,
SymbolContext & sc )
overridevirtual

◆ ResolveSymbolContext() [2/2]

uint32_t lldb_private::plugin::dwarf::SymbolFileDWARF::ResolveSymbolContext ( const SourceLocationSpec & src_location_spec,
lldb::SymbolContextItem resolve_scope,
SymbolContextList & sc_list )
overridevirtual

Reimplemented from lldb_private::SymbolFile.

◆ ResolveType()

◆ ResolveTypeUID() [1/3]

Type * SymbolFileDWARF::ResolveTypeUID ( const DIERef & die_ref)

Definition at line 1504 of file SymbolFileDWARF.cpp.

References GetDIE(), and ResolveType().

◆ ResolveTypeUID() [2/3]

◆ ResolveTypeUID() [3/3]

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

◆ SetDebugMapModule()

void lldb_private::plugin::dwarf::SymbolFileDWARF::SetDebugMapModule ( const lldb::ModuleSP & module_sp)
inlineprotected

◆ SetFileIndex()

void lldb_private::plugin::dwarf::SymbolFileDWARF::SetFileIndex ( std::optional< uint64_t > file_index)
inline

◆ SupportedVersion()

bool SymbolFileDWARF::SupportedVersion ( uint16_t version)
static

Definition at line 594 of file SymbolFileDWARF.cpp.

◆ Terminate()

◆ UpdateExternalModuleListIfNeeded()

◆ DebugMapModule

friend class DebugMapModule
friend

Definition at line 81 of file SymbolFileDWARF.h.

References DebugMapModule.

Referenced by DebugMapModule.

◆ DWARFASTParser

◆ DWARFCompileUnit

◆ DWARFDIE

friend class DWARFDIE
friend

Definition at line 83 of file SymbolFileDWARF.h.

References DWARFDIE.

Referenced by ClassContainsSelector(), ClassOrStructIsVirtual(), CollectCallEdges(), CompleteType(), ConstructFunctionDemangledName(), DIEInDeclContext(), DWARFDIE, FindBlockContainingSpecification(), FindCompleteObjCDefinitionTypeForDIE(), lldb_private::plugin::dwarf::SymbolFileDWARFDwo::FindCompleteObjCDefinitionTypeForDIE(), FindDefinitionDIE(), lldb_private::plugin::dwarf::SymbolFileDWARFDwo::FindDefinitionDIE(), FindFunctionDefinition(), FindFunctions(), FindFunctions(), FindGlobalVariables(), FindGlobalVariables(), FindNamespace(), FindTypes(), GetCompilerContextForUID(), GetContainingDeclContext(), GetDecl(), GetDeclContext(), GetDeclContextContainingUID(), GetDeclContextDIEContainingDIE(), GetDeclContextForUID(), GetDeclForUID(), GetDIE(), GetDynamicArrayInfoForUID(), GetFunction(), GetMangledNamesForFunction(), GetNextUnparsedDWARFCompileUnit(), GetObjCMethods(), lldb_private::plugin::dwarf::SymbolFileDWARFDwo::GetObjCMethods(), GetParentSymbolContextDIE(), GetTypeForDIE(), GetTypes(), MergeBlockAbstractParameters(), ParseAndAppendGlobalVariable(), ParseBlocksRecursive(), ParseBlocksRecursive(), ParseCallEdgesInFunction(), ParseFunction(), ParseFunctions(), ParseImportedModules(), ParseType(), ParseTypes(), ParseTypes(), ParseVariableDIE(), ParseVariableDIECached(), ParseVariablesForContext(), ParseVariablesInFunctionContext(), ParseVariablesInFunctionContextRecursive(), ResolveFunction(), ResolveFunctionAndBlock(), ResolveFunctionCallLabel(), ResolveType(), ResolveTypeUID(), ResolveTypeUID(), ~SymbolFileDWARF(), and lldb_private::plugin::dwarf::SymbolFileDWARFDwo::~SymbolFileDWARFDwo().

◆ SymbolFileDWARFDebugMap

◆ SymbolFileDWARFDwo

friend class SymbolFileDWARFDwo
friend

Definition at line 80 of file SymbolFileDWARF.h.

References SymbolFileDWARFDwo.

Referenced by GetDebugInfoSize(), GetMangledNamesForFunction(), and SymbolFileDWARFDwo.

Member Data Documentation

◆ ID

char SymbolFileDWARF::ID
staticprivate

LLVM RTTI support.

Definition at line 68 of file SymbolFileDWARF.h.

Referenced by classof(), and isA().

◆ m_abbr

std::unique_ptr<llvm::DWARFDebugAbbrev> lldb_private::plugin::dwarf::SymbolFileDWARF::m_abbr
protected

Definition at line 536 of file SymbolFileDWARF.h.

Referenced by DebugAbbrev().

◆ m_context

◆ m_debug_macros_map

DebugMacrosMap lldb_private::plugin::dwarf::SymbolFileDWARF::m_debug_macros_map
protected

Definition at line 540 of file SymbolFileDWARF.h.

Referenced by ParseDebugMacros().

◆ m_debug_map_module_wp

lldb::ModuleWP lldb_private::plugin::dwarf::SymbolFileDWARF::m_debug_map_module_wp
protected

◆ m_debug_map_symfile

SymbolFileDWARFDebugMap* lldb_private::plugin::dwarf::SymbolFileDWARF::m_debug_map_symfile
protected

Definition at line 526 of file SymbolFileDWARF.h.

Referenced by GetDebugMapSymfile(), ParseCompileUnit(), and SymbolFileDWARF().

◆ m_die_to_type

llvm::DenseMap<const DWARFDebugInfoEntry *, Type *> lldb_private::plugin::dwarf::SymbolFileDWARF::m_die_to_type
protected

Definition at line 552 of file SymbolFileDWARF.h.

Referenced by GetDIEToType().

◆ m_die_to_variable_sp

DIEToVariableSP lldb_private::plugin::dwarf::SymbolFileDWARF::m_die_to_variable_sp
protected

Definition at line 553 of file SymbolFileDWARF.h.

Referenced by GetDIEToVariable().

◆ m_dwo_warning_issued

std::atomic_flag lldb_private::plugin::dwarf::SymbolFileDWARF::m_dwo_warning_issued = ATOMIC_FLAG_INIT
protected

Definition at line 569 of file SymbolFileDWARF.h.

Referenced by GetDwoSymbolFileForCompileUnit().

◆ m_dwp_symfile

std::shared_ptr<SymbolFileDWARFDwo> lldb_private::plugin::dwarf::SymbolFileDWARF::m_dwp_symfile
protected

Definition at line 529 of file SymbolFileDWARF.h.

Referenced by GetDwpSymbolFile().

◆ m_dwp_symfile_once_flag

llvm::once_flag lldb_private::plugin::dwarf::SymbolFileDWARF::m_dwp_symfile_once_flag
protected

Definition at line 528 of file SymbolFileDWARF.h.

Referenced by GetDwpSymbolFile().

◆ m_external_type_modules

ExternalTypeModuleMap lldb_private::plugin::dwarf::SymbolFileDWARF::m_external_type_modules
protected

◆ m_fetched_external_modules

bool lldb_private::plugin::dwarf::SymbolFileDWARF::m_fetched_external_modules
protected

Definition at line 544 of file SymbolFileDWARF.h.

Referenced by SymbolFileDWARF(), and UpdateExternalModuleListIfNeeded().

◆ m_file_index

std::optional<uint64_t> lldb_private::plugin::dwarf::SymbolFileDWARF::m_file_index
protected

If this DWARF file a .DWO file or a DWARF .o file on mac when no dSYM file is being used, this file index will be set to a valid value that can be used in DIERef objects which will contain an index that identifies the .DWO or .o file.

Definition at line 574 of file SymbolFileDWARF.h.

Referenced by GetFileIndex(), and SetFileIndex().

◆ m_first_code_address

lldb::addr_t lldb_private::plugin::dwarf::SymbolFileDWARF::m_first_code_address = LLDB_INVALID_ADDRESS
protected

DWARF does not provide a good way for traditional (concatenating) linkers to invalidate debug info describing dead-stripped code.

These linkers will keep the debug info but resolve any addresses referring to such code as zero (BFD) or a small positive integer (zero + relocation addend – GOLD). Try to filter out this debug info by comparing it to the lowest code address in the module.

Definition at line 567 of file SymbolFileDWARF.h.

Referenced by InitializeFirstCodeAddress(), InitializeFirstCodeAddressRecursive(), ParseBlocksRecursive(), ParseFunction(), and ParseLineTable().

◆ m_forward_decl_compiler_type_to_die

llvm::DenseMap<lldb::opaque_compiler_type_t, DIERef> lldb_private::plugin::dwarf::SymbolFileDWARF::m_forward_decl_compiler_type_to_die
protected

Definition at line 557 of file SymbolFileDWARF.h.

Referenced by GetForwardDeclCompilerTypeToDIE().

◆ m_function_scope_qualified_name_map

NameToOffsetMap lldb_private::plugin::dwarf::SymbolFileDWARF::m_function_scope_qualified_name_map
protected

Definition at line 548 of file SymbolFileDWARF.h.

Referenced by GetMangledNamesForFunction(), and ParseType().

◆ m_global_aranges_up

std::unique_ptr<GlobalVariableMap> lldb_private::plugin::dwarf::SymbolFileDWARF::m_global_aranges_up
protected

Definition at line 537 of file SymbolFileDWARF.h.

Referenced by GetGlobalAranges().

◆ m_index

◆ m_info

std::unique_ptr<DWARFDebugInfo> lldb_private::plugin::dwarf::SymbolFileDWARF::m_info
protected

Definition at line 534 of file SymbolFileDWARF.h.

Referenced by DebugInfo().

◆ m_info_once_flag

llvm::once_flag lldb_private::plugin::dwarf::SymbolFileDWARF::m_info_once_flag
protected

Definition at line 533 of file SymbolFileDWARF.h.

Referenced by DebugInfo().

◆ m_lldb_cu_to_dwarf_unit

std::vector<uint32_t> lldb_private::plugin::dwarf::SymbolFileDWARF::m_lldb_cu_to_dwarf_unit
protected

◆ m_parse_time

StatsDuration lldb_private::plugin::dwarf::SymbolFileDWARF::m_parse_time
protected

◆ m_type_unit_support_files

llvm::DenseMap<dw_offset_t, std::unique_ptr<SupportFileList> > lldb_private::plugin::dwarf::SymbolFileDWARF::m_type_unit_support_files
protected

Definition at line 559 of file SymbolFileDWARF.h.

Referenced by GetTypeUnitSupportFiles().

◆ m_unique_ast_type_map

UniqueDWARFASTTypeMap lldb_private::plugin::dwarf::SymbolFileDWARF::m_unique_ast_type_map
protected

Definition at line 549 of file SymbolFileDWARF.h.

Referenced by GetUniqueDWARFASTTypeMap().


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