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

#include <SymbolFileDWARF.h>

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

Classes

struct  DecodedUID
 

Public Types

typedef std::map< lldb_private::ConstString, lldb::ModuleSP > ExternalTypeModuleMap
 
- 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, lldb_private::SectionList *dwo_section_list)
 
 ~SymbolFileDWARF () override
 
uint32_t CalculateAbilities () override
 
void InitializeObject () override
 Initialize the SymbolFile object. More...
 
lldb::LanguageType ParseLanguage (lldb_private::CompileUnit &comp_unit) override
 
lldb_private::XcodeSDK ParseXcodeSDK (lldb_private::CompileUnit &comp_unit) override
 Return the Xcode SDK comp_unit was compiled against. More...
 
size_t ParseFunctions (lldb_private::CompileUnit &comp_unit) override
 
bool ParseLineTable (lldb_private::CompileUnit &comp_unit) override
 
bool ParseDebugMacros (lldb_private::CompileUnit &comp_unit) override
 
bool ForEachExternalModule (lldb_private::CompileUnit &, llvm::DenseSet< lldb_private::SymbolFile * > &, llvm::function_ref< bool(lldb_private::Module &)>) override
 
bool ParseSupportFiles (lldb_private::CompileUnit &comp_unit, lldb_private::FileSpecList &support_files) override
 
bool ParseIsOptimized (lldb_private::CompileUnit &comp_unit) override
 
size_t ParseTypes (lldb_private::CompileUnit &comp_unit) override
 
bool ParseImportedModules (const lldb_private::SymbolContext &sc, std::vector< lldb_private::SourceModule > &imported_modules) override
 
size_t ParseBlocksRecursive (lldb_private::Function &func) override
 
size_t ParseVariablesForContext (const lldb_private::SymbolContext &sc) override
 
lldb_private::TypeResolveTypeUID (lldb::user_id_t type_uid) override
 
llvm::Optional< ArrayInfoGetDynamicArrayInfoForUID (lldb::user_id_t type_uid, const lldb_private::ExecutionContext *exe_ctx) override
 If type_uid points to an array type, return its characteristics. More...
 
bool CompleteType (lldb_private::CompilerType &compiler_type) override
 
lldb_private::TypeResolveType (const DWARFDIE &die, bool assert_not_being_parsed=true, bool resolve_function_context=false)
 
lldb_private::CompilerDecl GetDeclForUID (lldb::user_id_t uid) override
 
lldb_private::CompilerDeclContext GetDeclContextForUID (lldb::user_id_t uid) override
 
lldb_private::CompilerDeclContext GetDeclContextContainingUID (lldb::user_id_t uid) override
 
void ParseDeclsForContext (lldb_private::CompilerDeclContext decl_ctx) override
 
uint32_t ResolveSymbolContext (const lldb_private::Address &so_addr, lldb::SymbolContextItem resolve_scope, lldb_private::SymbolContext &sc) override
 
uint32_t ResolveSymbolContext (const lldb_private::SourceLocationSpec &src_location_spec, lldb::SymbolContextItem resolve_scope, lldb_private::SymbolContextList &sc_list) override
 
void FindGlobalVariables (lldb_private::ConstString name, const lldb_private::CompilerDeclContext &parent_decl_ctx, uint32_t max_matches, lldb_private::VariableList &variables) override
 
void FindGlobalVariables (const lldb_private::RegularExpression &regex, uint32_t max_matches, lldb_private::VariableList &variables) override
 
void FindFunctions (lldb_private::ConstString name, const lldb_private::CompilerDeclContext &parent_decl_ctx, lldb::FunctionNameType name_type_mask, bool include_inlines, lldb_private::SymbolContextList &sc_list) override
 
void FindFunctions (const lldb_private::RegularExpression &regex, bool include_inlines, lldb_private::SymbolContextList &sc_list) override
 
void GetMangledNamesForFunction (const std::string &scope_qualified_name, std::vector< lldb_private::ConstString > &mangled_names) override
 
void FindTypes (lldb_private::ConstString name, const lldb_private::CompilerDeclContext &parent_decl_ctx, uint32_t max_matches, llvm::DenseSet< lldb_private::SymbolFile * > &searched_symbol_files, lldb_private::TypeMap &types) override
 
void FindTypes (llvm::ArrayRef< lldb_private::CompilerContext > pattern, lldb_private::LanguageSet languages, llvm::DenseSet< SymbolFile * > &searched_symbol_files, lldb_private::TypeMap &types) override
 
void GetTypes (lldb_private::SymbolContextScope *sc_scope, lldb::TypeClass type_mask, lldb_private::TypeList &type_list) override
 
llvm::Expected< lldb_private::TypeSystem & > GetTypeSystemForLanguage (lldb::LanguageType language) override
 
lldb_private::CompilerDeclContext FindNamespace (lldb_private::ConstString name, const lldb_private::CompilerDeclContext &parent_decl_ctx) override
 
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. More...
 
lldb_private::ConstString GetPluginName () override
 
DWARFDebugAbbrevDebugAbbrev ()
 
DWARFDebugInfoDebugInfo ()
 
DWARFDebugRangesGetDebugRanges ()
 
DWARFDIE GetDeclContextDIEContainingDIE (const DWARFDIE &die)
 
bool HasForwardDeclForClangType (const lldb_private::CompilerType &compiler_type)
 
lldb_private::CompileUnitGetCompUnitForDWARFCompUnit (DWARFCompileUnit &dwarf_cu)
 
virtual void GetObjCMethods (lldb_private::ConstString class_name, llvm::function_ref< bool(DWARFDIE die)> callback)
 
bool Supports_DW_AT_APPLE_objc_complete_type (DWARFUnit *cu)
 
lldb_private::DebugMacrosSP ParseDebugMacros (lldb::offset_t *offset)
 
lldb::ModuleSP GetExternalModule (lldb_private::ConstString name)
 
const ExternalTypeModuleMapgetExternalTypeModules () const
 Return the list of Clang modules imported by this SymbolFile. More...
 
virtual DWARFDIE GetDIE (const DIERef &die_ref)
 
DWARFDIE GetDIE (lldb::user_id_t uid)
 
lldb::user_id_t GetUID (const DWARFBaseDIE &die)
 
lldb::user_id_t GetUID (const llvm::Optional< DIERef > &ref)
 
lldb::user_id_t GetUID (DIERef ref)
 
std::shared_ptr< SymbolFileDWARFDwoGetDwoSymbolFileForCompileUnit (DWARFUnit &dwarf_cu, const DWARFDebugInfoEntry &cu_die)
 
virtual llvm::Optional< uint32_tGetDwoNum ()
 
llvm::Optional< uint64_t > GetDWOId ()
 If this is a DWARF object with a single CU, return its DW_AT_dwo_id. More...
 
std::vector< std::unique_ptr< lldb_private::CallEdge > > ParseCallEdgesInFunction (UserID func_id) override
 
void Dump (lldb_private::Stream &s) override
 
void DumpClangAST (lldb_private::Stream &s) override
 
lldb_private::DWARFContextGetDWARFContext ()
 
const std::shared_ptr< SymbolFileDWARFDwo > & GetDwpSymbolFile ()
 
lldb_private::FileSpec GetFile (DWARFUnit &unit, size_t file_idx)
 
- Public Member Functions inherited from lldb_private::SymbolFile
 SymbolFile (lldb::ObjectFileSP objfile_sp)
 
 ~SymbolFile () override=default
 
uint32_t GetAbilities ()
 Get a mask of what this symbol file supports for the object file that it was constructed with. More...
 
uint32_t GetNumCompileUnits ()
 
lldb::CompUnitSP GetCompileUnitAtIndex (uint32_t idx)
 
SymtabGetSymtab ()
 
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 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...
 
ObjectFileGetObjectFile ()
 
const ObjectFileGetObjectFile () const
 
ObjectFileGetMainObjectFile ()
 
virtual std::vector< std::unique_ptr< CallEdge > > ParseCallEdgesInFunction (UserID func_id)
 
virtual void AddSymbols (Symtab &symtab)
 
virtual void SectionFileAddressesChanged ()
 Notify the SymbolFile that the file addresses in the Sections for this module have been changed. More...
 
virtual lldb::UnwindPlanSP GetUnwindPlan (const Address &address, const RegisterInfoResolver &resolver)
 
virtual llvm::Expected< lldb::addr_tGetParameterStackSize (Symbol &symbol)
 Return the number of stack bytes taken up by the parameters to this function. More...
 
- Public Member Functions inherited from lldb_private::PluginInterface
 PluginInterface ()=default
 
virtual ~PluginInterface ()=default
 
 PluginInterface (const PluginInterface &)=delete
 
PluginInterfaceoperator= (const PluginInterface &)=delete
 
- Public Member Functions inherited from lldb_private::UserID
 UserID (lldb::user_id_t uid=LLDB_INVALID_UID)
 Construct with optional user ID. More...
 
 ~UserID ()=default
 Destructor. More...
 
void Clear ()
 Clears the object state. More...
 
lldb::user_id_t GetID () const
 Get accessor for the user ID. More...
 
void SetID (lldb::user_id_t uid)
 Set accessor for the user ID. More...
 

Static Public Member Functions

static void Initialize ()
 
static void Terminate ()
 
static void DebuggerInitialize (lldb_private::Debugger &debugger)
 
static lldb_private::ConstString GetPluginNameStatic ()
 
static const char * GetPluginDescriptionStatic ()
 
static lldb_private::SymbolFileCreateInstance (lldb::ObjectFileSP objfile_sp)
 
static bool SupportedVersion (uint16_t version)
 
static DWARFDIE GetParentSymbolContextDIE (const DWARFDIE &die)
 
static bool DIEInDeclContext (const lldb_private::CompilerDeclContext &parent_decl_ctx, const DWARFDIE &die)
 
static llvm::Expected< lldb_private::TypeSystem & > GetTypeSystem (DWARFUnit &unit)
 
static DWARFASTParserGetDWARFParser (DWARFUnit &unit)
 
static lldb_private::CompilerDecl GetDecl (const DWARFDIE &die)
 
static lldb_private::CompilerDeclContext GetDeclContext (const DWARFDIE &die)
 
static lldb_private::CompilerDeclContext GetContainingDeclContext (const DWARFDIE &die)
 
static DWARFDeclContext GetDWARFDeclContext (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). More...
 
- 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::DenseMap< const DWARFDebugInfoEntry *, lldb_private::Type * > DIEToTypePtr
 
typedef llvm::DenseMap< const DWARFDebugInfoEntry *, lldb::VariableSP > DIEToVariableSP
 
typedef llvm::DenseMap< const DWARFDebugInfoEntry *, lldb::opaque_compiler_type_tDIEToClangType
 
typedef llvm::DenseMap< lldb::opaque_compiler_type_t, DIERefClangTypeToDIE
 
typedef llvm::SetVector< lldb_private::Type * > TypeSet
 
typedef lldb_private::RangeDataVector< lldb::addr_t, lldb::addr_t, lldb_private::Variable * > GlobalVariableMap
 
typedef std::unordered_map< lldb::offset_t, lldb_private::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, lldb_private::DWARFDataExtractor &data)
 
bool DeclContextMatchesThisSymbolFile (const lldb_private::CompilerDeclContext &decl_ctx)
 
uint32_t CalculateNumCompileUnits () override
 
lldb::CompUnitSP ParseCompileUnitAtIndex (uint32_t index) override
 
lldb_private::TypeListGetTypeList () override
 
lldb::CompUnitSP ParseCompileUnit (DWARFCompileUnit &dwarf_cu)
 
virtual DWARFCompileUnitGetDWARFCompileUnit (lldb_private::CompileUnit *comp_unit)
 
DWARFUnitGetNextUnparsedDWARFCompileUnit (DWARFUnit *prev_cu)
 
bool GetFunction (const DWARFDIE &die, lldb_private::SymbolContext &sc)
 
lldb_private::FunctionParseFunction (lldb_private::CompileUnit &comp_unit, const DWARFDIE &die)
 
size_t ParseBlocksRecursive (lldb_private::CompileUnit &comp_unit, lldb_private::Block *parent_block, const DWARFDIE &die, lldb::addr_t subprogram_low_pc, uint32_t depth)
 
size_t ParseTypes (const lldb_private::SymbolContext &sc, const DWARFDIE &die, bool parse_siblings, bool parse_children)
 
lldb::TypeSP ParseType (const lldb_private::SymbolContext &sc, const DWARFDIE &die, bool *type_is_new)
 
bool ParseSupportFiles (DWARFUnit &dwarf_cu, const lldb::ModuleSP &module, lldb_private::FileSpecList &support_files)
 
lldb_private::TypeResolveTypeUID (const DWARFDIE &die, bool assert_not_being_parsed)
 
lldb_private::TypeResolveTypeUID (const DIERef &die_ref)
 
lldb::VariableSP ParseVariableDIE (const lldb_private::SymbolContext &sc, const DWARFDIE &die, const lldb::addr_t func_low_pc)
 
size_t ParseVariables (const lldb_private::SymbolContext &sc, const DWARFDIE &orig_die, const lldb::addr_t func_low_pc, bool parse_siblings, bool parse_children, lldb_private::VariableList *cc_variable_list=nullptr)
 
bool ClassOrStructIsVirtual (const DWARFDIE &die)
 
bool ResolveFunction (const DWARFDIE &die, bool include_inlines, lldb_private::SymbolContextList &sc_list)
 
void ResolveFunctionAndBlock (lldb::addr_t file_vm_addr, bool lookup_block, lldb_private::SymbolContext &sc)
 Resolve functions and (possibly) blocks for the given file address and a compile unit. More...
 
virtual lldb::TypeSP FindDefinitionTypeForDWARFDeclContext (const DWARFDeclContext &die_decl_ctx)
 
virtual lldb::TypeSP FindCompleteObjCDefinitionTypeForDIE (const DWARFDIE &die, lldb_private::ConstString type_name, bool must_be_implementation)
 
lldb_private::SymbolGetObjCClassSymbol (lldb_private::ConstString objc_class_name)
 
lldb::TypeSP GetTypeForDIE (const DWARFDIE &die, bool resolve_function_context=false)
 
void SetDebugMapModule (const lldb::ModuleSP &module_sp)
 
SymbolFileDWARFDebugMapGetDebugMapSymfile ()
 
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)
 
virtual UniqueDWARFASTTypeMapGetUniqueDWARFASTTypeMap ()
 
bool DIEDeclContextsMatch (const DWARFDIE &die1, const DWARFDIE &die2)
 
bool ClassContainsSelector (const DWARFDIE &class_die, lldb_private::ConstString selector)
 
std::vector< std::unique_ptr< lldb_private::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). More...
 
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. More...
 
bool FixupAddress (lldb_private::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 ()
 
virtual DIEToTypePtrGetDIEToType ()
 
virtual DIEToVariableSPGetDIEToVariable ()
 
virtual DIEToClangTypeGetForwardDeclDieToClangType ()
 
virtual ClangTypeToDIEGetForwardDeclClangTypeToDie ()
 
void BuildCuTranslationTable ()
 
llvm::Optional< uint32_tGetDWARFUnitIndex (uint32_t cu_idx)
 
llvm::Optional< DecodedUIDDecodeUID (lldb::user_id_t uid)
 
void FindDwpSymbolFile ()
 
const lldb_private::FileSpecList & GetTypeUnitSupportFiles (DWARFTypeUnit &tu)
 
- Protected Member Functions inherited from lldb_private::SymbolFile
void AssertModuleLock ()
 
void SetCompileUnitAtIndex (uint32_t idx, const lldb::CompUnitSP &cu_sp)
 

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
 
lldb_private::DWARFContext m_context
 
llvm::once_flag m_info_once_flag
 
std::unique_ptr< DWARFDebugInfom_info
 
std::unique_ptr< DWARFDebugAbbrevm_abbr
 
std::unique_ptr< GlobalVariableMapm_global_aranges_up
 
DebugMacrosMap m_debug_macros_map
 
ExternalTypeModuleMap m_external_type_modules
 
std::unique_ptr< lldb_private::DWARFIndexm_index
 
bool m_fetched_external_modules: 1
 
lldb_private::LazyBool m_supports_DW_AT_APPLE_objc_complete_type
 
NameToOffsetMap m_function_scope_qualified_name_map
 
std::unique_ptr< DWARFDebugRangesm_ranges
 
UniqueDWARFASTTypeMap m_unique_ast_type_map
 
DIEToTypePtr m_die_to_type
 
DIEToVariableSP m_die_to_variable_sp
 
DIEToClangType m_forward_decl_die_to_clang_type
 
ClangTypeToDIE m_forward_decl_clang_type_to_die
 
llvm::DenseMap< dw_offset_t, lldb_private::FileSpecList > m_type_unit_support_files
 
std::vector< uint32_tm_lldb_cu_to_dwarf_unit
 
- Protected Attributes inherited from lldb_private::SymbolFile
lldb::ObjectFileSP m_objfile_sp
 
llvm::Optional< std::vector< lldb::CompUnitSP > > m_compile_units
 
TypeList m_type_list
 
Symtabm_symtab = nullptr
 
uint32_t m_abilities
 
bool m_calculated_abilities
 
- Protected Attributes inherited from lldb_private::UserID
lldb::user_id_t m_uid
 The user ID that uniquely identifies an object. More...
 

Static Private Attributes

static char ID
 LLVM RTTI support. More...
 

Friends

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

Detailed Description

Definition at line 58 of file SymbolFileDWARF.h.

Member Typedef Documentation

◆ ClangTypeToDIE

Definition at line 329 of file SymbolFileDWARF.h.

◆ DebugMacrosMap

Definition at line 502 of file SymbolFileDWARF.h.

◆ DIERefSet

Definition at line 510 of file SymbolFileDWARF.h.

◆ DIEToClangType

Definition at line 328 of file SymbolFileDWARF.h.

◆ DIEToTypePtr

typedef llvm::DenseMap<const DWARFDebugInfoEntry *, lldb_private::Type *> SymbolFileDWARF::DIEToTypePtr
protected

Definition at line 323 of file SymbolFileDWARF.h.

◆ DIEToVariableSP

typedef llvm::DenseMap<const DWARFDebugInfoEntry *, lldb::VariableSP> SymbolFileDWARF::DIEToVariableSP
protected

Definition at line 325 of file SymbolFileDWARF.h.

◆ ExternalTypeModuleMap

Definition at line 252 of file SymbolFileDWARF.h.

◆ GlobalVariableMap

Definition at line 456 of file SymbolFileDWARF.h.

◆ NameToOffsetMap

typedef llvm::StringMap<DIERefSet> SymbolFileDWARF::NameToOffsetMap
protected

Definition at line 511 of file SymbolFileDWARF.h.

◆ TypeSet

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

Definition at line 448 of file SymbolFileDWARF.h.

Constructor & Destructor Documentation

◆ SymbolFileDWARF() [1/2]

SymbolFileDWARF::SymbolFileDWARF ( lldb::ObjectFileSP  objfile_sp,
lldb_private::SectionList dwo_section_list 
)

◆ ~SymbolFileDWARF()

SymbolFileDWARF::~SymbolFileDWARF ( )
overridedefault

◆ SymbolFileDWARF() [2/2]

SymbolFileDWARF::SymbolFileDWARF ( const SymbolFileDWARF )
protecteddelete

Member Function Documentation

◆ BuildCuTranslationTable()

void SymbolFileDWARF::BuildCuTranslationTable ( )
protected

◆ CalculateAbilities()

uint32_t SymbolFileDWARF::CalculateAbilities ( )
overridevirtual

◆ CalculateNumCompileUnits()

uint32_t SymbolFileDWARF::CalculateNumCompileUnits ( )
overrideprotectedvirtual

◆ ClassContainsSelector()

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

◆ classof()

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

Definition at line 69 of file SymbolFileDWARF.h.

References ID.

◆ ClassOrStructIsVirtual()

bool SymbolFileDWARF::ClassOrStructIsVirtual ( const DWARFDIE die)
protected

Definition at line 1309 of file SymbolFileDWARF.cpp.

References DWARFDIE::children().

◆ CollectCallEdges()

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

◆ CompleteType()

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

◆ CreateInstance()

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

Definition at line 291 of file SymbolFileDWARF.cpp.

◆ DebugAbbrev()

DWARFDebugAbbrev * SymbolFileDWARF::DebugAbbrev ( )

◆ DebuggerInitialize()

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

Definition at line 265 of file SymbolFileDWARF.cpp.

◆ DebugInfo()

DWARFDebugInfo & SymbolFileDWARF::DebugInfo ( )

◆ DeclContextMatchesThisSymbolFile()

bool SymbolFileDWARF::DeclContextMatchesThisSymbolFile ( const lldb_private::CompilerDeclContext decl_ctx)
protected

◆ DecodeUID()

llvm::Optional< SymbolFileDWARF::DecodedUID > SymbolFileDWARF::DecodeUID ( lldb::user_id_t  uid)
protected

Definition at line 1349 of file SymbolFileDWARF.cpp.

References DW_INVALID_OFFSET, GetDebugMapSymfile(), and GetModuleMutex().

Referenced by GetDIE().

◆ DIEDeclContextsMatch()

bool SymbolFileDWARF::DIEDeclContextsMatch ( const DWARFDIE die1,
const DWARFDIE die2 
)
protected

◆ DIEInDeclContext()

bool SymbolFileDWARF::DIEInDeclContext ( const lldb_private::CompilerDeclContext parent_decl_ctx,
const DWARFDIE die 
)
static

◆ Dump()

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

Reimplemented from lldb_private::SymbolFile.

Definition at line 3822 of file SymbolFileDWARF.cpp.

References m_index.

◆ DumpClangAST()

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

◆ FindBlockContainingSpecification() [1/2]

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

Definition at line 3439 of file SymbolFileDWARF.cpp.

References DebugInfo(), and GetDIE().

Referenced by FindBlockContainingSpecification(), and ParseVariables().

◆ FindBlockContainingSpecification() [2/2]

DWARFDIE SymbolFileDWARF::FindBlockContainingSpecification ( const DWARFDIE die,
dw_offset_t  spec_block_die_offset 
)
protected

◆ FindCompleteObjCDefinitionTypeForDIE()

TypeSP SymbolFileDWARF::FindCompleteObjCDefinitionTypeForDIE ( const DWARFDIE die,
lldb_private::ConstString  type_name,
bool  must_be_implementation 
)
protectedvirtual

◆ FindDefinitionTypeForDWARFDeclContext()

TypeSP SymbolFileDWARF::FindDefinitionTypeForDWARFDeclContext ( const DWARFDeclContext die_decl_ctx)
protectedvirtual

◆ FindDwpSymbolFile()

void SymbolFileDWARF::FindDwpSymbolFile ( )
protected

◆ FindFunctions() [1/2]

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

◆ FindFunctions() [2/2]

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

◆ FindGlobalVariables() [1/2]

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

◆ FindGlobalVariables() [2/2]

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

◆ FindNamespace()

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

◆ FindTypes() [1/2]

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

◆ FindTypes() [2/2]

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

◆ FixupAddress() [1/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 843 of file SymbolFileDWARF.cpp.

References GetDebugMapSymfile(), and SymbolFileDWARFDebugMap::LinkOSOFileAddress().

Referenced by CollectCallEdges().

◆ FixupAddress() [2/2]

bool SymbolFileDWARF::FixupAddress ( lldb_private::Address addr)
protected

◆ ForEachExternalModule()

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

◆ GetCompUnitForDWARFCompUnit()

CompileUnit * SymbolFileDWARF::GetCompUnitForDWARFCompUnit ( DWARFCompileUnit dwarf_cu)

◆ GetContainingDeclContext()

CompilerDeclContext SymbolFileDWARF::GetContainingDeclContext ( const DWARFDIE die)
static

Definition at line 3902 of file SymbolFileDWARF.cpp.

References DWARFBaseDIE::GetCU(), and GetDWARFParser().

Referenced by GetDeclContextContainingUID().

◆ GetDebugMapSymfile()

SymbolFileDWARFDebugMap * SymbolFileDWARF::GetDebugMapSymfile ( )
protected

◆ GetDebugRanges()

DWARFDebugRanges * SymbolFileDWARF::GetDebugRanges ( )

◆ GetDecl()

CompilerDecl SymbolFileDWARF::GetDecl ( const DWARFDIE die)
static

◆ GetDeclContext()

CompilerDeclContext SymbolFileDWARF::GetDeclContext ( const DWARFDIE die)
static

◆ GetDeclContextContainingUID()

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

◆ GetDeclContextDIEContainingDIE()

DWARFDIE SymbolFileDWARF::GetDeclContextDIEContainingDIE ( const DWARFDIE die)

◆ 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 1395 of file SymbolFileDWARF.cpp.

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

◆ GetDIE() [1/2]

DWARFDIE SymbolFileDWARF::GetDIE ( const DIERef die_ref)
virtual

◆ GetDIE() [2/2]

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

Definition at line 1382 of file SymbolFileDWARF.cpp.

References DecodeUID(), DWARFDIE, and GetModuleMutex().

◆ GetDIEToType()

virtual DIEToTypePtr& SymbolFileDWARF::GetDIEToType ( )
inlineprotectedvirtual

◆ GetDIEToVariable()

virtual DIEToVariableSP& SymbolFileDWARF::GetDIEToVariable ( )
inlineprotectedvirtual

Reimplemented in SymbolFileDWARFDwo.

Definition at line 464 of file SymbolFileDWARF.h.

References m_die_to_variable_sp.

Referenced by SymbolFileDWARFDwo::GetDIEToVariable(), ParseVariableDIE(), and ParseVariables().

◆ GetDWARFCompileUnit()

DWARFCompileUnit * SymbolFileDWARF::GetDWARFCompileUnit ( lldb_private::CompileUnit comp_unit)
protectedvirtual

◆ GetDWARFContext()

lldb_private::DWARFContext& SymbolFileDWARF::GetDWARFContext ( )
inline

◆ GetDWARFDeclContext()

DWARFDeclContext SymbolFileDWARF::GetDWARFDeclContext ( const DWARFDIE die)
static

◆ GetDWARFParser()

DWARFASTParser * SymbolFileDWARF::GetDWARFParser ( DWARFUnit unit)
static

◆ GetDWARFUnitIndex()

llvm::Optional< uint32_t > SymbolFileDWARF::GetDWARFUnitIndex ( uint32_t  cu_idx)
protected

◆ GetDWOId()

llvm::Optional< uint64_t > SymbolFileDWARF::GetDWOId ( )

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

Definition at line 1662 of file SymbolFileDWARF.cpp.

References lldb_private::SymbolFile::GetCompileUnitAtIndex(), GetDWARFCompileUnit(), and lldb_private::SymbolFile::GetNumCompileUnits().

Referenced by UpdateExternalModuleListIfNeeded().

◆ GetDwoNum()

virtual llvm::Optional<uint32_t> SymbolFileDWARF::GetDwoNum ( )
inlinevirtual

◆ GetDwoSymbolFileForCompileUnit()

std::shared_ptr< SymbolFileDWARFDwo > SymbolFileDWARF::GetDwoSymbolFileForCompileUnit ( DWARFUnit dwarf_cu,
const DWARFDebugInfoEntry cu_die 
)

◆ GetDwpSymbolFile()

const std::shared_ptr< SymbolFileDWARFDwo > & SymbolFileDWARF::GetDwpSymbolFile ( )

◆ GetDynamicArrayInfoForUID()

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

If type_uid points to an array type, return its characteristics.

To support variable-length array types, this function takes an optional ExecutionContext. If exe_ctx is non-null, the dynamic characteristics for that context are returned.

Implements lldb_private::SymbolFile.

Definition at line 1443 of file SymbolFileDWARF.cpp.

References GetDIE(), GetModuleMutex(), and DWARFASTParser::ParseChildArrayInfo().

Referenced by SymbolFileDWARFDebugMap::GetDynamicArrayInfoForUID().

◆ GetExternalModule()

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

◆ getExternalTypeModules()

const ExternalTypeModuleMap& SymbolFileDWARF::getExternalTypeModules ( ) const
inline

Return the list of Clang modules imported by this SymbolFile.

Definition at line 255 of file SymbolFileDWARF.h.

References m_external_type_modules.

◆ GetFile()

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

Definition at line 980 of file SymbolFileDWARF.cpp.

References GetCompUnitForDWARFCompUnit(), and GetTypeUnitSupportFiles().

Referenced by DWARFUnit::GetFile().

◆ GetForwardDeclClangTypeToDie()

virtual ClangTypeToDIE& SymbolFileDWARF::GetForwardDeclClangTypeToDie ( )
inlineprotectedvirtual

◆ GetForwardDeclDieToClangType()

virtual DIEToClangType& SymbolFileDWARF::GetForwardDeclDieToClangType ( )
inlineprotectedvirtual

◆ GetFunction()

bool SymbolFileDWARF::GetFunction ( const DWARFDIE die,
lldb_private::SymbolContext sc 
)
protected

◆ GetGlobalAranges()

SymbolFileDWARF::GlobalVariableMap & SymbolFileDWARF::GetGlobalAranges ( )
protected

◆ GetLanguage()

LanguageType SymbolFileDWARF::GetLanguage ( DWARFUnit unit)
static

◆ GetLanguageFamily()

LanguageType SymbolFileDWARF::GetLanguageFamily ( DWARFUnit unit)
static

Same as GetLanguage() but reports all C++ versions as C++ (no version).

Definition at line 3934 of file SymbolFileDWARF.cpp.

References DWARFUnit::GetDWARFLanguageType(), and LanguageTypeFromDWARF().

Referenced by DWARFASTParserClang::ParseTypeFromClangModule().

◆ GetMangledNamesForFunction()

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

◆ GetModuleMutex()

std::recursive_mutex & SymbolFileDWARF::GetModuleMutex ( ) const
overridevirtual

◆ GetNextUnparsedDWARFCompileUnit()

DWARFUnit* SymbolFileDWARF::GetNextUnparsedDWARFCompileUnit ( DWARFUnit prev_cu)
protected

◆ GetObjCClassSymbol()

Symbol * SymbolFileDWARF::GetObjCClassSymbol ( lldb_private::ConstString  objc_class_name)
protected

◆ GetObjCMethods()

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

Reimplemented in SymbolFileDWARFDwo.

Definition at line 1602 of file SymbolFileDWARF.cpp.

References m_index.

Referenced by SymbolFileDWARFDwo::GetObjCMethods().

◆ GetParentSymbolContextDIE()

DWARFDIE SymbolFileDWARF::GetParentSymbolContextDIE ( const DWARFDIE die)
static

◆ GetPluginDescriptionStatic()

const char * SymbolFileDWARF::GetPluginDescriptionStatic ( )
static

Definition at line 287 of file SymbolFileDWARF.cpp.

◆ GetPluginName()

ConstString SymbolFileDWARF::GetPluginName ( )
overridevirtual

Implements lldb_private::PluginInterface.

Definition at line 3820 of file SymbolFileDWARF.cpp.

References GetPluginNameStatic().

◆ GetPluginNameStatic()

lldb_private::ConstString SymbolFileDWARF::GetPluginNameStatic ( )
static

◆ GetTypeForDIE()

TypeSP SymbolFileDWARF::GetTypeForDIE ( const DWARFDIE die,
bool  resolve_function_context = false 
)
protected

◆ GetTypeList()

TypeList & SymbolFileDWARF::GetTypeList ( )
overrideprotectedvirtual

Reimplemented from lldb_private::SymbolFile.

Definition at line 296 of file SymbolFileDWARF.cpp.

Referenced by ParseType().

◆ 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 SymbolFileDWARF::GetTypes ( lldb_private::SymbolContextScope sc_scope,
lldb::TypeClass  type_mask,
lldb_private::TypeList type_list 
)
overridevirtual

◆ GetTypeSystem()

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

◆ GetTypeSystemForLanguage()

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

◆ GetTypeUnitSupportFiles()

const FileSpecList & SymbolFileDWARF::GetTypeUnitSupportFiles ( DWARFTypeUnit tu)
protected

◆ GetUID() [1/3]

lldb::user_id_t SymbolFileDWARF::GetUID ( const DWARFBaseDIE die)
inline

Definition at line 263 of file SymbolFileDWARF.h.

References DWARFBaseDIE::GetDIERef().

Referenced by GetUID(), and ParseVariableDIE().

◆ GetUID() [2/3]

lldb::user_id_t SymbolFileDWARF::GetUID ( const llvm::Optional< DIERef > &  ref)
inline

Definition at line 267 of file SymbolFileDWARF.h.

References GetUID(), and LLDB_INVALID_UID.

◆ GetUID() [3/3]

user_id_t SymbolFileDWARF::GetUID ( DIERef  ref)

◆ GetUniqueDWARFASTTypeMap()

UniqueDWARFASTTypeMap & SymbolFileDWARF::GetUniqueDWARFASTTypeMap ( )
protectedvirtual

◆ HasForwardDeclForClangType()

bool SymbolFileDWARF::HasForwardDeclForClangType ( const lldb_private::CompilerType compiler_type)

◆ Initialize()

void SymbolFileDWARF::Initialize ( )
static

Definition at line 257 of file SymbolFileDWARF.cpp.

References SymbolFileDWARFDebugMap::Initialize().

◆ InitializeObject()

void SymbolFileDWARF::InitializeObject ( )
overridevirtual

Initialize the SymbolFile object.

The SymbolFile object with the best set of abilities (detected in "uint32_t SymbolFile::GetAbilities()) will have this function called if it is chosen to parse an object file. More complete initialization can happen in this function which will get called prior to any other functions in the SymbolFile protocol.

Reimplemented from lldb_private::SymbolFile.

Definition at line 470 of file SymbolFileDWARF.cpp.

References lldb_private::Stream::AsRawOstream(), DWARF_LOG_DEBUG_INFO, lldb::eDescriptionLevelBrief, lldb::eSectionTypeDWARFAppleNames, lldb::eSectionTypeDWARFAppleNamespaces, lldb::eSectionTypeDWARFAppleObjC, lldb::eSectionTypeDWARFAppleTypes, lldb::eSectionTypeDWARFDebugNames, lldb_private::DataExtractor::GetByteSize(), lldb_private::StreamString::GetData(), lldb_private::ModuleChild::GetModule(), lldb_private::SymbolFile::GetObjectFile(), lldb_private::DWARFContext::getOrLoadStrData(), LLDB_LOG_ERROR, LoadSectionData(), m_context, and m_index.

◆ isA()

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

LLVM RTTI support.

Reimplemented from lldb_private::SymbolFile.

Reimplemented in SymbolFileDWARFDwo.

Definition at line 66 of file SymbolFileDWARF.h.

References ID.

Referenced by SymbolFileDWARFDwo::isA().

◆ LanguageTypeFromDWARF()

LanguageType SymbolFileDWARF::LanguageTypeFromDWARF ( uint64_t  val)
static

◆ LoadSectionData()

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

◆ operator=()

const SymbolFileDWARF& SymbolFileDWARF::operator= ( const SymbolFileDWARF )
protecteddelete

◆ ParseBlocksRecursive() [1/2]

size_t SymbolFileDWARF::ParseBlocksRecursive ( lldb_private::CompileUnit comp_unit,
lldb_private::Block parent_block,
const DWARFDIE die,
lldb::addr_t  subprogram_low_pc,
uint32_t  depth 
)
protected

◆ ParseBlocksRecursive() [2/2]

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

◆ ParseCallEdgesInFunction()

std::vector< std::unique_ptr< lldb_private::CallEdge > > SymbolFileDWARF::ParseCallEdgesInFunction ( UserID  func_id)
override

◆ ParseCompileUnit()

lldb::CompUnitSP SymbolFileDWARF::ParseCompileUnit ( DWARFCompileUnit dwarf_cu)
protected

◆ ParseCompileUnitAtIndex()

CompUnitSP SymbolFileDWARF::ParseCompileUnitAtIndex ( uint32_t  index)
overrideprotectedvirtual

◆ ParseDebugMacros() [1/2]

lldb_private::DebugMacrosSP SymbolFileDWARF::ParseDebugMacros ( lldb::offset_t offset)

◆ ParseDebugMacros() [2/2]

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

◆ ParseDeclsForContext()

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

◆ ParseFunction()

Function * SymbolFileDWARF::ParseFunction ( lldb_private::CompileUnit comp_unit,
const DWARFDIE die 
)
protected

◆ ParseFunctions()

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

◆ ParseImportedModules()

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

◆ ParseIsOptimized()

bool SymbolFileDWARF::ParseIsOptimized ( lldb_private::CompileUnit comp_unit)
overridevirtual

◆ ParseLanguage()

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

◆ ParseLineTable()

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

◆ ParseSupportFiles() [1/2]

bool SymbolFileDWARF::ParseSupportFiles ( DWARFUnit dwarf_cu,
const lldb::ModuleSP &  module,
lldb_private::FileSpecList &  support_files 
)
protected

◆ ParseSupportFiles() [2/2]

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

◆ ParseType()

TypeSP SymbolFileDWARF::ParseType ( const lldb_private::SymbolContext sc,
const DWARFDIE die,
bool *  type_is_new 
)
protected

◆ ParseTypes() [1/2]

size_t SymbolFileDWARF::ParseTypes ( const lldb_private::SymbolContext sc,
const DWARFDIE die,
bool  parse_siblings,
bool  parse_children 
)
protected

◆ ParseTypes() [2/2]

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

◆ ParseVariableDIE()

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

Definition at line 3087 of file SymbolFileDWARF.cpp.

References DWARFFormValue::AsCString(), DWARFAttributes::AttributeAtIndex(), DWARFFormValue::BlockData(), DWARFFormValue::Boolean(), lldb_private::SymbolContext::comp_unit, DWARFAttributes::CompileUnitAtIndex(), lldb_private::DWARFExpression::ContainsThreadLocalStorage(), lldb_private::DWARFExpression::DumpLocationForAddress(), lldb::eDescriptionLevelFull, lldb::eSymbolTypeData, lldb::eValueTypeInvalid, lldb::eValueTypeVariableArgument, lldb::eValueTypeVariableGlobal, lldb::eValueTypeVariableLocal, lldb::eValueTypeVariableStatic, lldb::eValueTypeVariableThreadLocal, DWARFAttributes::ExtractFormValueAtIndex(), lldb_private::Block::FindBlockByID(), lldb_private::Symtab::FindFirstSymbolWithNameAndType(), DWARFFormValue::Form(), lldb_private::SymbolContext::function, DWARFUnit::GetAddressByteSize(), lldb_private::Symbol::GetAddressRef(), DWARFBaseDIE::GetAttributes(), DWARFUnit::GetBaseAddress(), lldb_private::Function::GetBlock(), DWARFUnit::GetByteOrder(), lldb_private::DataExtractor::GetByteSize(), lldb_private::ConstString::GetCString(), DWARFBaseDIE::GetCU(), lldb_private::StreamString::GetData(), DWARFBaseDIE::GetData(), lldb_private::DataExtractor::GetDataStart(), GetDebugMapSymfile(), GetDeclContextDIEContainingDIE(), DWARFDIE::GetDIE(), GetDIEToVariable(), DWARFBaseDIE::GetDWARF(), GetDWARFDeclContext(), DWARFUnit::GetFile(), lldb_private::Address::GetFileAddress(), DWARFBaseDIE::GetID(), GetLanguage(), lldb_private::DWARFExpression::GetLocation_DW_OP_addr(), DWARFUnit::GetLocationData(), DWARFUnit::GetLoclistOffset(), lldb_private::ModuleChild::GetModule(), lldb_private::SymbolFile::GetObjectFile(), DWARFBaseDIE::GetOffset(), DWARFDIE::GetParent(), GetParentSymbolContextDIE(), DWARFDeclContext::GetQualifiedNameAsConstString(), lldb_private::ObjectFile::GetSymtab(), DWARFBaseDIE::GetTagAsCString(), GetUID(), DWARFFormValue::GetUnit(), DWARFFormValue::IsBlockForm(), DWARFFormValue::IsDataForm(), DWARFFormValue::IsValid(), lldb_private::DWARFExpression::IsValid(), SymbolFileDWARFDebugMap::LinkOSOFileAddress(), lldb_private::DWARFExpression::LinkThreadLocalStorage(), LLDB_INVALID_ADDRESS, ParseVariableDIE(), DWARFFormValue::Reference(), lldb_private::Declaration::SetColumn(), lldb_private::Declaration::SetFile(), lldb_private::Declaration::SetLine(), lldb_private::DWARFExpression::SetLocationListAddresses(), lldb_private::DWARFExpression::SetModule(), DWARFBaseDIE::Tag(), DWARFFormValue::Unsigned(), lldb_private::DWARFExpression::Update_DW_OP_addr(), lldb_private::DWARFExpression::UpdateValue(), lldb_private::DataExtractor::ValidOffset(), and lldb_private::Symbol::ValueIsAddress().

Referenced by ParseVariableDIE(), ParseVariables(), and ParseVariablesForContext().

◆ ParseVariables()

size_t SymbolFileDWARF::ParseVariables ( const lldb_private::SymbolContext sc,
const DWARFDIE orig_die,
const lldb::addr_t  func_low_pc,
bool  parse_siblings,
bool  parse_children,
lldb_private::VariableList cc_variable_list = nullptr 
)
protected

◆ ParseVariablesForContext()

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

◆ ParseXcodeSDK()

XcodeSDK SymbolFileDWARF::ParseXcodeSDK ( lldb_private::CompileUnit comp_unit)
overridevirtual

◆ PreloadSymbols()

void SymbolFileDWARF::PreloadSymbols ( )
overridevirtual

Reimplemented from lldb_private::SymbolFile.

Definition at line 2038 of file SymbolFileDWARF.cpp.

References GetModuleMutex(), and m_index.

◆ ResolveFunction()

bool SymbolFileDWARF::ResolveFunction ( const DWARFDIE die,
bool  include_inlines,
lldb_private::SymbolContextList sc_list 
)
protected

◆ ResolveFunctionAndBlock()

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

Resolve functions and (possibly) blocks for the given file address and a compile unit.

The compile unit comes from the sc argument and it must be set. The results of the lookup (if any) are written back to the symbol context.

Definition at line 1879 of file SymbolFileDWARF.cpp.

References lldb_private::SymbolContext::block, lldb_private::SymbolContext::comp_unit, lldb_private::Block::FindBlockByID(), lldb_private::CompileUnit::FindFunctionByUID(), lldb_private::SymbolContext::function, lldb_private::Function::GetBlock(), GetDWARFCompileUnit(), DWARFBaseDIE::GetID(), DWARFCompileUnit::GetNonSkeletonUnit(), DWARFCompileUnit::LookupAddress(), DWARFDIE::LookupDeepestBlock(), and ParseFunction().

◆ ResolveSymbolContext() [1/2]

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

◆ ResolveSymbolContext() [2/2]

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

Reimplemented from lldb_private::SymbolFile.

◆ ResolveType()

Type * SymbolFileDWARF::ResolveType ( const DWARFDIE die,
bool  assert_not_being_parsed = true,
bool  resolve_function_context = false 
)

◆ ResolveTypeUID() [1/3]

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

Definition at line 1452 of file SymbolFileDWARF.cpp.

References GetDIE(), and ResolveType().

◆ ResolveTypeUID() [2/3]

Type * SymbolFileDWARF::ResolveTypeUID ( const DWARFDIE die,
bool  assert_not_being_parsed 
)
protected

◆ ResolveTypeUID() [3/3]

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

Implements lldb_private::SymbolFile.

Definition at line 1431 of file SymbolFileDWARF.cpp.

References GetDIE(), and GetModuleMutex().

Referenced by SymbolFileDWARFDebugMap::ResolveTypeUID().

◆ SetDebugMapModule()

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

Definition at line 413 of file SymbolFileDWARF.h.

References m_debug_map_module_wp.

Referenced by DebugMapModule::GetSymbolFile().

◆ SupportedVersion()

bool SymbolFileDWARF::SupportedVersion ( uint16_t  version)
static

Definition at line 517 of file SymbolFileDWARF.cpp.

Referenced by DWARFUnitHeader::extract().

◆ Supports_DW_AT_APPLE_objc_complete_type()

bool SymbolFileDWARF::Supports_DW_AT_APPLE_objc_complete_type ( DWARFUnit cu)

◆ Terminate()

void SymbolFileDWARF::Terminate ( )
static

Definition at line 276 of file SymbolFileDWARF.cpp.

References SymbolFileDWARFDebugMap::Terminate().

◆ UpdateExternalModuleListIfNeeded()

void SymbolFileDWARF::UpdateExternalModuleListIfNeeded ( )
protected

Friends And Related Function Documentation

◆ DebugMapModule

friend class DebugMapModule
friend

Definition at line 74 of file SymbolFileDWARF.h.

◆ DWARFASTParserClang

friend class DWARFASTParserClang
friend

Definition at line 77 of file SymbolFileDWARF.h.

◆ DWARFCompileUnit

friend class DWARFCompileUnit
friend

Definition at line 75 of file SymbolFileDWARF.h.

◆ DWARFDIE

friend class DWARFDIE
friend

◆ SymbolFileDWARFDebugMap

friend class SymbolFileDWARFDebugMap
friend

Definition at line 72 of file SymbolFileDWARF.h.

◆ SymbolFileDWARFDwo

friend class SymbolFileDWARFDwo
friend

Definition at line 73 of file SymbolFileDWARF.h.

Member Data Documentation

◆ ID

char SymbolFileDWARF::ID
staticprivate

LLVM RTTI support.

Definition at line 61 of file SymbolFileDWARF.h.

Referenced by classof(), and isA().

◆ m_abbr

std::unique_ptr<DWARFDebugAbbrev> SymbolFileDWARF::m_abbr
protected

Definition at line 498 of file SymbolFileDWARF.h.

Referenced by DebugAbbrev().

◆ m_context

lldb_private::DWARFContext SymbolFileDWARF::m_context
protected

◆ m_debug_macros_map

DebugMacrosMap SymbolFileDWARF::m_debug_macros_map
protected

Definition at line 503 of file SymbolFileDWARF.h.

Referenced by ParseDebugMacros().

◆ m_debug_map_module_wp

lldb::ModuleWP SymbolFileDWARF::m_debug_map_module_wp
protected

Definition at line 487 of file SymbolFileDWARF.h.

Referenced by GetDebugMapSymfile(), GetModuleMutex(), and SetDebugMapModule().

◆ m_debug_map_symfile

SymbolFileDWARFDebugMap* SymbolFileDWARF::m_debug_map_symfile
protected

◆ m_die_to_type

DIEToTypePtr SymbolFileDWARF::m_die_to_type
protected

Definition at line 515 of file SymbolFileDWARF.h.

Referenced by GetDIEToType().

◆ m_die_to_variable_sp

DIEToVariableSP SymbolFileDWARF::m_die_to_variable_sp
protected

Definition at line 516 of file SymbolFileDWARF.h.

Referenced by GetDIEToVariable().

◆ m_dwp_symfile

std::shared_ptr<SymbolFileDWARFDwo> SymbolFileDWARF::m_dwp_symfile
protected

Definition at line 491 of file SymbolFileDWARF.h.

Referenced by GetDIE(), and GetDwpSymbolFile().

◆ m_dwp_symfile_once_flag

llvm::once_flag SymbolFileDWARF::m_dwp_symfile_once_flag
protected

Definition at line 490 of file SymbolFileDWARF.h.

Referenced by GetDwpSymbolFile().

◆ m_external_type_modules

ExternalTypeModuleMap SymbolFileDWARF::m_external_type_modules
protected

◆ m_fetched_external_modules

bool SymbolFileDWARF::m_fetched_external_modules
protected

Definition at line 507 of file SymbolFileDWARF.h.

Referenced by UpdateExternalModuleListIfNeeded().

◆ m_forward_decl_clang_type_to_die

ClangTypeToDIE SymbolFileDWARF::m_forward_decl_clang_type_to_die
protected

Definition at line 518 of file SymbolFileDWARF.h.

Referenced by GetForwardDeclClangTypeToDie().

◆ m_forward_decl_die_to_clang_type

DIEToClangType SymbolFileDWARF::m_forward_decl_die_to_clang_type
protected

Definition at line 517 of file SymbolFileDWARF.h.

Referenced by GetForwardDeclDieToClangType().

◆ m_function_scope_qualified_name_map

NameToOffsetMap SymbolFileDWARF::m_function_scope_qualified_name_map
protected

Definition at line 512 of file SymbolFileDWARF.h.

Referenced by GetMangledNamesForFunction(), and ParseType().

◆ m_global_aranges_up

std::unique_ptr<GlobalVariableMap> SymbolFileDWARF::m_global_aranges_up
protected

Definition at line 499 of file SymbolFileDWARF.h.

Referenced by GetGlobalAranges().

◆ m_index

std::unique_ptr<lldb_private::DWARFIndex> SymbolFileDWARF::m_index
protected

◆ m_info

std::unique_ptr<DWARFDebugInfo> SymbolFileDWARF::m_info
protected

Definition at line 496 of file SymbolFileDWARF.h.

Referenced by DebugInfo().

◆ m_info_once_flag

llvm::once_flag SymbolFileDWARF::m_info_once_flag
protected

Definition at line 495 of file SymbolFileDWARF.h.

Referenced by DebugInfo().

◆ m_lldb_cu_to_dwarf_unit

std::vector<uint32_t> SymbolFileDWARF::m_lldb_cu_to_dwarf_unit
protected

◆ m_ranges

std::unique_ptr<DWARFDebugRanges> SymbolFileDWARF::m_ranges
protected

Definition at line 513 of file SymbolFileDWARF.h.

Referenced by GetDebugRanges().

◆ m_supports_DW_AT_APPLE_objc_complete_type

lldb_private::LazyBool SymbolFileDWARF::m_supports_DW_AT_APPLE_objc_complete_type
protected

Definition at line 508 of file SymbolFileDWARF.h.

Referenced by Supports_DW_AT_APPLE_objc_complete_type().

◆ m_type_unit_support_files

llvm::DenseMap<dw_offset_t, lldb_private::FileSpecList> SymbolFileDWARF::m_type_unit_support_files
protected

Definition at line 520 of file SymbolFileDWARF.h.

Referenced by GetTypeUnitSupportFiles().

◆ m_unique_ast_type_map

UniqueDWARFASTTypeMap SymbolFileDWARF::m_unique_ast_type_map
protected

Definition at line 514 of file SymbolFileDWARF.h.

Referenced by GetUniqueDWARFASTTypeMap().


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