LLDB mainline
|
#include <SymbolFileDWARFDwo.h>
Public Member Functions | |
SymbolFileDWARFDwo (SymbolFileDWARF &m_base_symbol_file, lldb::ObjectFileSP objfile, uint32_t id) | |
~SymbolFileDWARFDwo () override=default | |
DWARFCompileUnit * | GetDWOCompileUnitForHash (uint64_t hash) |
void | GetObjCMethods (ConstString class_name, llvm::function_ref< bool(DWARFDIE die)> callback) override |
llvm::Expected< lldb::TypeSystemSP > | GetTypeSystemForLanguage (lldb::LanguageType language) override |
DWARFDIE | GetDIE (const DIERef &die_ref) override |
lldb::offset_t | GetVendorDWARFOpcodeSize (const DataExtractor &data, const lldb::offset_t data_offset, const uint8_t op) const override |
uint64_t | GetDebugInfoSize (bool load_all_debug_info=false) override |
Metrics gathering functions. | |
bool | ParseVendorDWARFOpcode (uint8_t op, const DataExtractor &opcodes, lldb::offset_t &offset, std::vector< Value > &stack) const override |
void | FindGlobalVariables (ConstString name, const CompilerDeclContext &parent_decl_ctx, uint32_t max_matches, VariableList &variables) override |
SymbolFileDWARF & | GetBaseSymbolFile () const |
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 |
SymbolFileDWARF * | GetDIERefSymbolFile (const DIERef &die_ref) override |
Given a DIERef, find the correct SymbolFileDWARF. | |
Public Member Functions inherited from lldb_private::plugin::dwarf::SymbolFileDWARF | |
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< ArrayInfo > | GetDynamicArrayInfoForUID (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 |
Type * | ResolveType (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< CompilerContext > | GetCompilerContextForUID (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 ®ex, 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 ®ex, 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::TypeSystemSP > | GetTypeSystemForLanguage (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 () |
DWARFDebugInfo & | DebugInfo () |
DWARFDIE | GetDeclContextDIEContainingDIE (const DWARFDIE &die) |
bool | HasForwardDeclForCompilerType (const CompilerType &compiler_type) |
CompileUnit * | GetCompUnitForDWARFCompUnit (DWARFCompileUnit &dwarf_cu) |
virtual void | GetObjCMethods (ConstString class_name, llvm::function_ref< bool(DWARFDIE die)> callback) |
DebugMacrosSP | ParseDebugMacros (lldb::offset_t *offset) |
lldb::ModuleSP | GetExternalModule (ConstString name) |
const ExternalTypeModuleMap & | getExternalTypeModules () const |
Return the list of Clang modules imported by this SymbolFile. | |
virtual SymbolFileDWARF * | GetDIERefSymbolFile (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< SymbolFileDWARFDwo > | GetDwoSymbolFileForCompileUnit (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. | |
DWARFUnit * | GetSkeletonUnit (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) override |
bool | GetSeparateDebugInfo (StructuredData::Dictionary &d, bool errors_only) override |
List separate dwo files. | |
DWARFContext & | GetDWARFContext () |
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. | |
StatsDuration & | GetDebugInfoParseTimeRef () |
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, 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 DIEToTypePtr & | GetDIEToType () |
virtual llvm::DenseMap< lldb::opaque_compiler_type_t, DIERef > & | GetForwardDeclCompilerTypeToDIE () |
virtual DIEToVariableSP & | GetDIEToVariable () |
virtual UniqueDWARFASTTypeMap & | GetUniqueDWARFASTTypeMap () |
bool | ClassOrStructIsVirtual (const DWARFDIE &die) |
SymbolFileDWARFDebugMap * | GetDebugMapSymfile () |
virtual DWARFDIE | FindDefinitionDIE (const DWARFDIE &die) |
virtual lldb::TypeSP | FindCompleteObjCDefinitionTypeForDIE (const DWARFDIE &die, ConstString type_name, bool must_be_implementation) |
Type * | ResolveTypeUID (lldb::user_id_t type_uid) override |
Type * | ResolveTypeUID (const DWARFDIE &die, bool assert_not_being_parsed) |
Type * | ResolveTypeUID (const DIERef &die_ref) |
DWARFIndex * | getIndex () |
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. | |
Symtab * | GetSymtab () override |
ObjectFile * | GetObjectFile () override |
const ObjectFile * | GetObjectFile () const override |
ObjectFile * | GetMainObjectFile () override |
void | SectionFileAddressesChanged () override |
Notify the SymbolFile that the file addresses in the Sections for this module have been changed. | |
uint32_t | GetNumCompileUnits () override |
lldb::CompUnitSP | GetCompileUnitAtIndex (uint32_t idx) override |
llvm::Expected< lldb::TypeSystemSP > | GetTypeSystemForLanguage (lldb::LanguageType language) override |
void | Dump (Stream &s) override |
uint64_t | GetDebugInfoSize (bool load_all_debug_info=false) override |
Metrics gathering functions. | |
bool | GetDebugInfoIndexWasLoadedFromCache () const override |
Accessors for the bool that indicates if the debug info index was loaded from, or saved to the module index cache. | |
void | SetDebugInfoIndexWasLoadedFromCache () override |
bool | GetDebugInfoIndexWasSavedToCache () const override |
void | SetDebugInfoIndexWasSavedToCache () override |
bool | GetDebugInfoHadFrameVariableErrors () const override |
Accessors for the bool that indicates if there was debug info, but errors stopped variables from being able to be displayed correctly. | |
void | SetDebugInfoHadFrameVariableErrors () override |
lldb::TypeSP | MakeType (lldb::user_id_t uid, ConstString name, std::optional< uint64_t > byte_size, SymbolContextScope *context, lldb::user_id_t encoding_uid, Type::EncodingDataType encoding_uid_type, const Declaration &decl, const CompilerType &compiler_qual_type, Type::ResolveState compiler_type_resolve_state, uint32_t opaque_payload=0) override |
This function is used to create types that belong to a SymbolFile. | |
lldb::TypeSP | CopyType (const lldb::TypeSP &other_type) override |
Public Member Functions inherited from lldb_private::SymbolFile | |
SymbolFile ()=default | |
~SymbolFile () override=default | |
virtual SymbolFile * | GetBackingSymbolFile () |
SymbolFileOnDemand class overrides this to return the underlying backing SymbolFile implementation that loads on-demand. | |
virtual uint32_t | GetAbilities ()=0 |
Get a mask of what this symbol file supports for the object file that it was constructed with. | |
virtual uint32_t | CalculateAbilities ()=0 |
virtual std::recursive_mutex & | GetModuleMutex () const |
Symbols file subclasses should override this to return the Module that owns the TypeSystem that this symbol file modifies type information in. | |
virtual void | InitializeObject () |
Initialize the SymbolFile object. | |
virtual bool | GetLoadDebugInfoEnabled () |
Whether debug info will be loaded or not. | |
virtual void | SetLoadDebugInfoEnabled () |
Specify debug info should be loaded. | |
virtual uint32_t | GetNumCompileUnits ()=0 |
virtual lldb::CompUnitSP | GetCompileUnitAtIndex (uint32_t idx)=0 |
virtual Symtab * | GetSymtab ()=0 |
virtual lldb::LanguageType | ParseLanguage (CompileUnit &comp_unit)=0 |
virtual XcodeSDK | ParseXcodeSDK (CompileUnit &comp_unit) |
Return the Xcode SDK comp_unit was compiled against. | |
virtual llvm::SmallSet< lldb::LanguageType, 4 > | ParseAllLanguages (CompileUnit &comp_unit) |
This function exists because SymbolFileDWARFDebugMap may extra compile units which aren't exposed as "real" compile units. | |
virtual size_t | ParseFunctions (CompileUnit &comp_unit)=0 |
virtual bool | ParseLineTable (CompileUnit &comp_unit)=0 |
virtual bool | ParseDebugMacros (CompileUnit &comp_unit)=0 |
virtual bool | ForEachExternalModule (lldb_private::CompileUnit &comp_unit, llvm::DenseSet< lldb_private::SymbolFile * > &visited_symbol_files, llvm::function_ref< bool(Module &)> lambda) |
Apply a lambda to each external lldb::Module referenced by this comp_unit . | |
virtual bool | ParseSupportFiles (CompileUnit &comp_unit, SupportFileList &support_files)=0 |
virtual size_t | ParseTypes (CompileUnit &comp_unit)=0 |
virtual bool | ParseIsOptimized (CompileUnit &comp_unit) |
virtual bool | ParseImportedModules (const SymbolContext &sc, std::vector< SourceModule > &imported_modules)=0 |
virtual size_t | ParseBlocksRecursive (Function &func)=0 |
virtual size_t | ParseVariablesForContext (const SymbolContext &sc)=0 |
virtual Type * | ResolveTypeUID (lldb::user_id_t type_uid)=0 |
virtual std::optional< ArrayInfo > | GetDynamicArrayInfoForUID (lldb::user_id_t type_uid, const lldb_private::ExecutionContext *exe_ctx)=0 |
If type_uid points to an array type, return its characteristics. | |
virtual bool | CompleteType (CompilerType &compiler_type)=0 |
virtual void | ParseDeclsForContext (CompilerDeclContext decl_ctx) |
virtual CompilerDecl | GetDeclForUID (lldb::user_id_t uid) |
virtual CompilerDeclContext | GetDeclContextForUID (lldb::user_id_t uid) |
virtual CompilerDeclContext | GetDeclContextContainingUID (lldb::user_id_t uid) |
virtual std::vector< CompilerContext > | GetCompilerContextForUID (lldb::user_id_t uid) |
virtual uint32_t | ResolveSymbolContext (const Address &so_addr, lldb::SymbolContextItem resolve_scope, SymbolContext &sc)=0 |
Status | GetFrameVariableError (StackFrame &frame) |
Get an error that describes why variables might be missing for a given symbol context. | |
virtual Status | CalculateFrameVariableError (StackFrame &frame) |
Subclasses will override this function to for GetFrameVariableError(). | |
virtual uint32_t | ResolveSymbolContext (const SourceLocationSpec &src_location_spec, lldb::SymbolContextItem resolve_scope, SymbolContextList &sc_list) |
virtual void | DumpClangAST (Stream &s) |
virtual void | FindGlobalVariables (ConstString name, const CompilerDeclContext &parent_decl_ctx, uint32_t max_matches, VariableList &variables) |
virtual void | FindGlobalVariables (const RegularExpression ®ex, uint32_t max_matches, VariableList &variables) |
virtual void | FindFunctions (const Module::LookupInfo &lookup_info, const CompilerDeclContext &parent_decl_ctx, bool include_inlines, SymbolContextList &sc_list) |
virtual void | FindFunctions (const RegularExpression ®ex, bool include_inlines, SymbolContextList &sc_list) |
virtual void | FindTypes (const TypeQuery &query, TypeResults &results) |
Find types using a type-matching object that contains all search parameters. | |
virtual void | GetMangledNamesForFunction (const std::string &scope_qualified_name, std::vector< ConstString > &mangled_names) |
virtual void | GetTypes (lldb_private::SymbolContextScope *sc_scope, lldb::TypeClass type_mask, lldb_private::TypeList &type_list)=0 |
virtual void | PreloadSymbols () |
virtual llvm::Expected< lldb::TypeSystemSP > | GetTypeSystemForLanguage (lldb::LanguageType language)=0 |
virtual CompilerDeclContext | FindNamespace (ConstString name, const CompilerDeclContext &parent_decl_ctx, bool only_root_namespaces=false) |
Finds a namespace of name name and whose parent context is parent_decl_ctx. | |
virtual ObjectFile * | GetObjectFile ()=0 |
virtual const ObjectFile * | GetObjectFile () const =0 |
virtual ObjectFile * | GetMainObjectFile ()=0 |
virtual std::vector< std::unique_ptr< CallEdge > > | ParseCallEdgesInFunction (UserID func_id) |
virtual void | AddSymbols (Symtab &symtab) |
virtual void | SectionFileAddressesChanged ()=0 |
Notify the SymbolFile that the file addresses in the Sections for this module have been changed. | |
virtual lldb::UnwindPlanSP | GetUnwindPlan (const Address &address, const RegisterInfoResolver &resolver) |
virtual llvm::Expected< lldb::addr_t > | GetParameterStackSize (Symbol &symbol) |
Return the number of stack bytes taken up by the parameters to this function. | |
virtual void | Dump (Stream &s)=0 |
virtual uint64_t | GetDebugInfoSize (bool load_all_debug_info=false)=0 |
Metrics gathering functions. | |
virtual StatsDuration::Duration | GetDebugInfoParseTime () |
Return the time taken to parse the debug information. | |
virtual StatsDuration::Duration | GetDebugInfoIndexTime () |
Return the time it took to index the debug information in the object file. | |
virtual void | ResetStatistics () |
Reset the statistics for the symbol file. | |
virtual ModuleList | GetDebugInfoModules () |
Get the additional modules that this symbol file uses to parse debug info. | |
virtual bool | GetDebugInfoHadFrameVariableErrors () const =0 |
Accessors for the bool that indicates if there was debug info, but errors stopped variables from being able to be displayed correctly. | |
virtual void | SetDebugInfoHadFrameVariableErrors ()=0 |
virtual bool | GetSeparateDebugInfo (StructuredData::Dictionary &d, bool errors_only) |
Return true if separate debug info files are supported and this function succeeded, false otherwise. | |
virtual lldb::TypeSP | MakeType (lldb::user_id_t uid, ConstString name, std::optional< uint64_t > byte_size, SymbolContextScope *context, lldb::user_id_t encoding_uid, Type::EncodingDataType encoding_uid_type, const Declaration &decl, const CompilerType &compiler_qual_type, Type::ResolveState compiler_type_resolve_state, uint32_t opaque_payload=0)=0 |
virtual lldb::TypeSP | CopyType (const lldb::TypeSP &other_type)=0 |
std::unordered_map< lldb::CompUnitSP, Args > | GetCompileOptions () |
Returns a map of compilation unit to the compile option arguments associated with that compilation unit. | |
Public Member Functions inherited from lldb_private::PluginInterface | |
PluginInterface ()=default | |
virtual | ~PluginInterface ()=default |
virtual llvm::StringRef | GetPluginName ()=0 |
PluginInterface (const PluginInterface &)=delete | |
PluginInterface & | operator= (const PluginInterface &)=delete |
Protected Member Functions | |
DIEToTypePtr & | GetDIEToType () override |
DIEToVariableSP & | GetDIEToVariable () override |
llvm::DenseMap< lldb::opaque_compiler_type_t, DIERef > & | GetForwardDeclCompilerTypeToDIE () override |
UniqueDWARFASTTypeMap & | GetUniqueDWARFASTTypeMap () override |
DWARFDIE | FindDefinitionDIE (const DWARFDIE &die) override |
lldb::TypeSP | FindCompleteObjCDefinitionTypeForDIE (const DWARFDIE &die, ConstString type_name, bool must_be_implementation) override |
DWARFCompileUnit * | FindSingleCompileUnit () |
If this file contains exactly one compile unit, this function will return it. | |
Protected Member Functions inherited from lldb_private::plugin::dwarf::SymbolFileDWARF | |
SymbolFileDWARF (const SymbolFileDWARF &)=delete | |
const SymbolFileDWARF & | operator= (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 |
TypeList & | GetTypeList () override |
lldb::CompUnitSP | ParseCompileUnit (DWARFCompileUnit &dwarf_cu) |
virtual DWARFCompileUnit * | GetDWARFCompileUnit (CompileUnit *comp_unit) |
DWARFUnit * | GetNextUnparsedDWARFCompileUnit (DWARFUnit *prev_cu) |
bool | GetFunction (const DWARFDIE &die, SymbolContext &sc) |
Function * | ParseFunction (CompileUnit &comp_unit, const DWARFDIE &die) |
size_t | ParseBlocksRecursive (CompileUnit &comp_unit, Block *parent_block, DWARFDIE die, lldb::addr_t subprogram_low_pc) |
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) |
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. | |
Symbol * | GetObjCClassSymbol (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) |
GlobalVariableMap & | GetGlobalAranges () |
void | UpdateExternalModuleListIfNeeded () |
void | BuildCuTranslationTable () |
std::optional< uint32_t > | GetDWARFUnitIndex (uint32_t cu_idx) |
void | FindDwpSymbolFile () |
const SupportFileList * | GetTypeUnitSupportFiles (DWARFTypeUnit &tu) |
void | InitializeFirstCodeAddressRecursive (const SectionList §ion_list) |
void | InitializeFirstCodeAddress () |
void | GetCompileOptions (std::unordered_map< lldb::CompUnitSP, Args > &args) override |
Protected Member Functions inherited from lldb_private::SymbolFileCommon | |
virtual uint32_t | CalculateNumCompileUnits ()=0 |
virtual lldb::CompUnitSP | ParseCompileUnitAtIndex (uint32_t idx)=0 |
virtual TypeList & | GetTypeList () |
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) |
Static Private Attributes | |
static char | ID |
LLVM RTTI support. | |
bool | isA (const void *ClassID) const override |
LLVM RTTI support. | |
static bool | classof (const SymbolFile *obj) |
Additional Inherited Members | |
Public Types inherited from lldb_private::plugin::dwarf::SymbolFileDWARF | |
typedef std::map< ConstString, lldb::ModuleSP > | ExternalTypeModuleMap |
typedef llvm::DenseMap< const DWARFDebugInfoEntry *, Type * > | DIEToTypePtr |
typedef llvm::DenseMap< const DWARFDebugInfoEntry *, lldb::VariableSP > | DIEToVariableSP |
Public Types inherited from lldb_private::SymbolFile | |
enum | Abilities { CompileUnits = (1u << 0) , LineTables = (1u << 1) , Functions = (1u << 2) , Blocks = (1u << 3) , GlobalVariables = (1u << 4) , LocalVariables = (1u << 5) , VariableTypes = (1u << 6) , kAllAbilities = ((1u << 7) - 1u) } |
Static Public Member Functions inherited from lldb_private::plugin::dwarf::SymbolFileDWARF | |
static void | Initialize () |
static void | Terminate () |
static void | DebuggerInitialize (Debugger &debugger) |
static llvm::StringRef | GetPluginNameStatic () |
static llvm::StringRef | GetPluginDescriptionStatic () |
static SymbolFile * | CreateInstance (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::TypeSystemSP > | GetTypeSystem (DWARFUnit &unit) |
static DWARFASTParser * | GetDWARFParser (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 SymbolFile *obj) |
Static Public Member Functions inherited from lldb_private::SymbolFileCommon | |
static bool | classof (const SymbolFileCommon *obj) |
Static Public Member Functions inherited from lldb_private::SymbolFile | |
static SymbolFile * | FindPlugin (lldb::ObjectFileSP objfile_sp) |
static bool | classof (const SymbolFile *obj) |
Protected Types inherited from lldb_private::plugin::dwarf::SymbolFileDWARF | |
typedef llvm::SetVector< Type * > | TypeSet |
typedef RangeDataVector< lldb::addr_t, lldb::addr_t, Variable * > | GlobalVariableMap |
typedef std::unordered_map< lldb::offset_t, DebugMacrosSP > | DebugMacrosMap |
typedef std::set< DIERef > | DIERefSet |
typedef llvm::StringMap< DIERefSet > | NameToOffsetMap |
Definition at line 17 of file SymbolFileDWARFDwo.h.
SymbolFileDWARFDwo::SymbolFileDWARFDwo | ( | SymbolFileDWARF & | m_base_symbol_file, |
lldb::ObjectFileSP | objfile, | ||
uint32_t | id | ||
) |
Definition at line 28 of file SymbolFileDWARFDwo.cpp.
References lldb_private::plugin::dwarf::DWARFContext::GetAsLLVM(), lldb_private::plugin::dwarf::SymbolFileDWARF::m_context, and lldb_private::plugin::dwarf::SymbolFileDWARF::SetFileIndex().
|
overridedefault |
|
inlinestatic |
Definition at line 27 of file SymbolFileDWARFDwo.h.
References ID, and lldb_private::SymbolFile::isA().
|
overrideprotectedvirtual |
Reimplemented from lldb_private::plugin::dwarf::SymbolFileDWARF.
Definition at line 132 of file SymbolFileDWARFDwo.cpp.
References lldb_private::plugin::dwarf::SymbolFileDWARF::FindCompleteObjCDefinitionTypeForDIE(), and GetBaseSymbolFile().
Reimplemented from lldb_private::plugin::dwarf::SymbolFileDWARF.
Definition at line 128 of file SymbolFileDWARFDwo.cpp.
References lldb_private::plugin::dwarf::SymbolFileDWARF::FindDefinitionDIE(), and GetBaseSymbolFile().
|
overridevirtual |
Reimplemented from lldb_private::plugin::dwarf::SymbolFileDWARF.
Definition at line 151 of file SymbolFileDWARFDwo.cpp.
References lldb_private::plugin::dwarf::SymbolFileDWARF::FindGlobalVariables(), and GetBaseSymbolFile().
|
protected |
If this file contains exactly one compile unit, this function will return it.
Otherwise it returns nullptr.
Definition at line 60 of file SymbolFileDWARFDwo.cpp.
References lldb_private::plugin::dwarf::DWARFDebugInfo::ContainsTypeUnits(), lldb_private::plugin::dwarf::SymbolFileDWARF::DebugInfo(), lldb_private::plugin::dwarf::DWARFDebugInfo::GetNumUnits(), and lldb_private::plugin::dwarf::DWARFDebugInfo::GetUnitAtIndex().
Referenced by GetDWOCompileUnitForHash().
|
inline |
Definition at line 61 of file SymbolFileDWARFDwo.h.
References m_base_symbol_file.
Referenced by FindCompleteObjCDefinitionTypeForDIE(), FindDefinitionDIE(), FindGlobalVariables(), GetDebugInfoHadFrameVariableErrors(), GetDebugInfoIndexWasLoadedFromCache(), GetDebugInfoIndexWasSavedToCache(), GetDIE(), GetDIERefSymbolFile(), GetDIEToType(), GetDIEToVariable(), GetForwardDeclCompilerTypeToDIE(), GetObjCMethods(), lldb_private::plugin::dwarf::DWARFUnit::GetSkeletonUnit(), GetTypeSystemForLanguage(), GetUniqueDWARFASTTypeMap(), GetVendorDWARFOpcodeSize(), ParseVendorDWARFOpcode(), SetDebugInfoHadFrameVariableErrors(), SetDebugInfoIndexWasLoadedFromCache(), and SetDebugInfoIndexWasSavedToCache().
|
overridevirtual |
Accessors for the bool that indicates if there was debug info, but errors stopped variables from being able to be displayed correctly.
See GetFrameVariableError() for details on what are considered errors.
Reimplemented from lldb_private::SymbolFileCommon.
Definition at line 170 of file SymbolFileDWARFDwo.cpp.
References GetBaseSymbolFile(), and lldb_private::SymbolFileCommon::GetDebugInfoHadFrameVariableErrors().
|
overridevirtual |
Accessors for the bool that indicates if the debug info index was loaded from, or saved to the module index cache.
In statistics it is handy to know if a module's debug info was loaded from or saved to the cache. When the debug info index is loaded from the cache startup times can be faster. When the cache is enabled and the debug info index is saved to the cache, debug sessions can be slower. These accessors can be accessed by the statistics and emitted to help track these costs.
Reimplemented from lldb_private::SymbolFileCommon.
Definition at line 158 of file SymbolFileDWARFDwo.cpp.
References GetBaseSymbolFile(), and lldb_private::SymbolFileCommon::GetDebugInfoIndexWasLoadedFromCache().
|
overridevirtual |
Reimplemented from lldb_private::SymbolFileCommon.
Definition at line 164 of file SymbolFileDWARFDwo.cpp.
References GetBaseSymbolFile(), and lldb_private::SymbolFileCommon::GetDebugInfoIndexWasSavedToCache().
|
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.
load_all_debug_info | If true, force loading any symbol files if they are not yet loaded and add to the total size. Default to false. |
Reimplemented from lldb_private::plugin::dwarf::SymbolFileDWARF.
Definition at line 88 of file SymbolFileDWARFDwo.cpp.
References lldb_private::SectionList::GetDebugInfoSize(), and lldb_private::SymbolFileCommon::m_objfile_sp.
Referenced by lldb_private::plugin::dwarf::SymbolFileDWARF::GetDebugInfoSize().
Reimplemented from lldb_private::plugin::dwarf::SymbolFileDWARF.
Definition at line 145 of file SymbolFileDWARFDwo.cpp.
References lldb_private::plugin::dwarf::SymbolFileDWARF::DebugInfo(), lldb_private::plugin::dwarf::DIERef::die_offset(), lldb_private::plugin::dwarf::DIERef::file_index(), GetBaseSymbolFile(), lldb_private::plugin::dwarf::SymbolFileDWARF::GetDIE(), lldb_private::plugin::dwarf::DWARFDebugInfo::GetDIE(), lldb_private::plugin::dwarf::SymbolFileDWARF::GetFileIndex(), and lldb_private::plugin::dwarf::DIERef::section().
|
overridevirtual |
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 from lldb_private::plugin::dwarf::SymbolFileDWARF.
Definition at line 178 of file SymbolFileDWARFDwo.cpp.
References GetBaseSymbolFile(), and lldb_private::plugin::dwarf::SymbolFileDWARF::GetDIERefSymbolFile().
|
overrideprotectedvirtual |
Reimplemented from lldb_private::plugin::dwarf::SymbolFileDWARF.
Definition at line 105 of file SymbolFileDWARFDwo.cpp.
References GetBaseSymbolFile(), and lldb_private::plugin::dwarf::SymbolFileDWARF::GetDIEToType().
|
overrideprotectedvirtual |
Reimplemented from lldb_private::plugin::dwarf::SymbolFileDWARF.
Definition at line 109 of file SymbolFileDWARFDwo.cpp.
References GetBaseSymbolFile(), and lldb_private::plugin::dwarf::SymbolFileDWARF::GetDIEToVariable().
DWARFCompileUnit * SymbolFileDWARFDwo::GetDWOCompileUnitForHash | ( | uint64_t | hash | ) |
Definition at line 40 of file SymbolFileDWARFDwo.cpp.
References lldb_private::plugin::dwarf::DIERef::DebugInfo, lldb_private::plugin::dwarf::SymbolFileDWARF::DebugInfo(), FindSingleCompileUnit(), lldb_private::plugin::dwarf::DWARFContext::GetAsLLVM(), lldb_private::plugin::dwarf::DWARFUnit::GetDWOId(), and lldb_private::plugin::dwarf::SymbolFileDWARF::m_context.
|
overrideprotectedvirtual |
Reimplemented from lldb_private::plugin::dwarf::SymbolFileDWARF.
Definition at line 114 of file SymbolFileDWARFDwo.cpp.
References GetBaseSymbolFile(), and lldb_private::plugin::dwarf::SymbolFileDWARF::GetForwardDeclCompilerTypeToDIE().
|
overridevirtual |
Reimplemented from lldb_private::plugin::dwarf::SymbolFileDWARF.
Definition at line 118 of file SymbolFileDWARFDwo.cpp.
References GetBaseSymbolFile(), and lldb_private::plugin::dwarf::SymbolFileDWARF::GetObjCMethods().
|
overridevirtual |
Reimplemented from lldb_private::plugin::dwarf::SymbolFileDWARF.
Definition at line 140 of file SymbolFileDWARFDwo.cpp.
References GetBaseSymbolFile(), and lldb_private::plugin::dwarf::SymbolFileDWARF::GetTypeSystemForLanguage().
|
overrideprotectedvirtual |
Reimplemented from lldb_private::plugin::dwarf::SymbolFileDWARF.
Definition at line 124 of file SymbolFileDWARFDwo.cpp.
References GetBaseSymbolFile(), and lldb_private::plugin::dwarf::SymbolFileDWARF::GetUniqueDWARFASTTypeMap().
|
overridevirtual |
Reimplemented from lldb_private::plugin::dwarf::SymbolFileDWARF.
Definition at line 82 of file SymbolFileDWARFDwo.cpp.
References GetBaseSymbolFile(), and lldb_private::plugin::dwarf::SymbolFileDWARF::GetVendorDWARFOpcodeSize().
|
inlineoverridevirtual |
LLVM RTTI support.
Reimplemented from lldb_private::plugin::dwarf::SymbolFileDWARF.
Definition at line 24 of file SymbolFileDWARFDwo.h.
References ID, and lldb_private::plugin::dwarf::SymbolFileDWARF::isA().
|
overridevirtual |
Reimplemented from lldb_private::plugin::dwarf::SymbolFileDWARF.
Definition at line 99 of file SymbolFileDWARFDwo.cpp.
References GetBaseSymbolFile(), and lldb_private::plugin::dwarf::SymbolFileDWARF::ParseVendorDWARFOpcode().
|
overridevirtual |
Reimplemented from lldb_private::SymbolFileCommon.
Definition at line 173 of file SymbolFileDWARFDwo.cpp.
References GetBaseSymbolFile(), and lldb_private::SymbolFileCommon::SetDebugInfoHadFrameVariableErrors().
|
overridevirtual |
Reimplemented from lldb_private::SymbolFileCommon.
Definition at line 161 of file SymbolFileDWARFDwo.cpp.
References GetBaseSymbolFile(), and lldb_private::SymbolFileCommon::SetDebugInfoIndexWasLoadedFromCache().
|
overridevirtual |
Reimplemented from lldb_private::SymbolFileCommon.
Definition at line 167 of file SymbolFileDWARFDwo.cpp.
References GetBaseSymbolFile(), and lldb_private::SymbolFileCommon::SetDebugInfoIndexWasSavedToCache().
|
staticprivate |
LLVM RTTI support.
Definition at line 19 of file SymbolFileDWARFDwo.h.
|
protected |
Definition at line 93 of file SymbolFileDWARFDwo.h.
Referenced by GetBaseSymbolFile().