LLDB
mainline
|
SymbolFileOnDemand wraps an actual SymbolFile by providing on demand symbol parsing/indexing to improve performance. More...
#include <SymbolFileOnDemand.h>
Public Member Functions | |
SymbolFileOnDemand (std::unique_ptr< SymbolFile > &&symbol_file) | |
~SymbolFileOnDemand () override | |
llvm::StringRef | GetPluginName () override |
bool | GetLoadDebugInfoEnabled () override |
Whether debug info will be loaded or not. More... | |
void | SetLoadDebugInfoEnabled () override |
Specify debug info should be loaded. More... | |
uint32_t | GetNumCompileUnits () override |
lldb::CompUnitSP | GetCompileUnitAtIndex (uint32_t idx) override |
SymbolFile * | GetBackingSymbolFile () override |
SymbolFileOnDemand class overrides this to return the underlying backing SymbolFile implementation that loads on-demand. More... | |
uint32_t | CalculateAbilities () 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::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... | |
void | InitializeObject () override |
Initialize the SymbolFile object. 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::Type * | ResolveTypeUID (lldb::user_id_t type_uid) override |
llvm::Optional< ArrayInfo > | GetDynamicArrayInfoForUID (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::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 | Dump (lldb_private::Stream &s) override |
void | DumpClangAST (lldb_private::Stream &s) 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 ®ex, uint32_t max_matches, lldb_private::VariableList &variables) override |
void | FindFunctions (const lldb_private::Module::LookupInfo &lookup_info, const lldb_private::CompilerDeclContext &parent_decl_ctx, bool include_inlines, lldb_private::SymbolContextList &sc_list) override |
void | FindFunctions (const lldb_private::RegularExpression ®ex, 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 |
std::vector< std::unique_ptr< lldb_private::CallEdge > > | ParseCallEdgesInFunction (UserID func_id) override |
lldb::UnwindPlanSP | GetUnwindPlan (const Address &address, const RegisterInfoResolver &resolver) override |
llvm::Expected< lldb::addr_t > | GetParameterStackSize (Symbol &symbol) override |
Return the number of stack bytes taken up by the parameters to this function. More... | |
void | PreloadSymbols () override |
uint64_t | GetDebugInfoSize () override |
Metrics gathering functions. More... | |
lldb_private::StatsDuration::Duration | GetDebugInfoParseTime () override |
Return the time taken to parse the debug information. More... | |
lldb_private::StatsDuration::Duration | GetDebugInfoIndexTime () override |
Return the time it took to index the debug information in the object file. More... | |
uint32_t | GetAbilities () override |
Get a mask of what this symbol file supports for the object file that it was constructed with. More... | |
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. More... | |
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. More... | |
void | SetDebugInfoIndexWasLoadedFromCache () override |
bool | GetDebugInfoIndexWasSavedToCache () const override |
void | SetDebugInfoIndexWasSavedToCache () override |
![]() | |
SymbolFile ()=default | |
~SymbolFile () override=default | |
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 (llvm::ArrayRef< CompilerContext > pattern, LanguageSet languages, llvm::DenseSet< lldb_private::SymbolFile * > &searched_symbol_files, TypeMap &types) |
Find types specified by a CompilerContextPattern. More... | |
virtual void | AddSymbols (Symtab &symtab) |
virtual ModuleList | GetDebugInfoModules () |
Get the additional modules that this symbol file uses to parse debug info. More... | |
![]() | |
PluginInterface ()=default | |
virtual | ~PluginInterface ()=default |
PluginInterface (const PluginInterface &)=delete | |
PluginInterface & | operator= (const PluginInterface &)=delete |
Private Member Functions | |
Log * | GetLog () const |
ConstString | GetSymbolFileName () |
Private Attributes | |
bool | m_debug_info_enabled = false |
bool | m_preload_symbols = false |
std::unique_ptr< SymbolFile > | m_sym_file_impl |
Static Private Attributes | |
static char | ID |
LLVM RTTI support. More... | |
bool | isA (const void *ClassID) const override |
LLVM RTTI support. More... | |
static bool | classof (const SymbolFile *obj) |
Additional Inherited Members | |
![]() | |
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 SymbolFile * | FindPlugin (lldb::ObjectFileSP objfile_sp) |
static bool | classof (const SymbolFile *obj) |
![]() | |
void | AssertModuleLock () |
SymbolFileOnDemand wraps an actual SymbolFile by providing on demand symbol parsing/indexing to improve performance.
By default SymbolFileOnDemand will skip load the underlying symbols. Any client can on demand hydrate the underlying SymbolFile via SymbolFile::SetLoadDebugInfoEnabled().
Definition at line 32 of file SymbolFileOnDemand.h.
SymbolFileOnDemand::SymbolFileOnDemand | ( | std::unique_ptr< SymbolFile > && | symbol_file | ) |
Definition at line 21 of file SymbolFileOnDemand.cpp.
|
overridedefault |
|
overridevirtual |
Implements lldb_private::SymbolFile.
Definition at line 27 of file SymbolFileOnDemand.cpp.
References m_sym_file_impl.
|
inlinestatic |
Definition at line 42 of file SymbolFileOnDemand.h.
References ID, and lldb_private::SymbolFile::isA().
|
overridevirtual |
Implements lldb_private::SymbolFile.
Definition at line 211 of file SymbolFileOnDemand.cpp.
References GetLog(), GetSymbolFileName(), LLDB_LOG, m_debug_info_enabled, and m_sym_file_impl.
|
overridevirtual |
Implements lldb_private::SymbolFile.
Definition at line 289 of file SymbolFileOnDemand.cpp.
References GetLog(), GetSymbolFileName(), LLDB_LOG, m_debug_info_enabled, and m_sym_file_impl.
|
overridevirtual |
Reimplemented from lldb_private::SymbolFile.
Definition at line 298 of file SymbolFileOnDemand.cpp.
References GetLog(), GetSymbolFileName(), LLDB_LOG, m_debug_info_enabled, and m_sym_file_impl.
|
overridevirtual |
Reimplemented from lldb_private::SymbolFile.
Definition at line 377 of file SymbolFileOnDemand.cpp.
References lldb_private::Symtab::FindFunctionSymbols(), GetLog(), lldb_private::Module::LookupInfo::GetLookupName(), lldb_private::Module::LookupInfo::GetNameTypeMask(), lldb_private::SymbolContextList::GetSize(), GetSymbolFileName(), GetSymtab(), LLDB_LOG, m_debug_info_enabled, m_sym_file_impl, and SetLoadDebugInfoEnabled().
|
overridevirtual |
Reimplemented from lldb_private::SymbolFile.
Definition at line 347 of file SymbolFileOnDemand.cpp.
References lldb_private::Symtab::AppendSymbolIndexesMatchingRegExAndType(), lldb_private::Symtab::eDebugAny, lldb::eSymbolTypeAny, lldb_private::Symtab::eVisibilityAny, GetLog(), GetSymbolFileName(), GetSymtab(), LLDB_LOG, m_debug_info_enabled, m_sym_file_impl, and SetLoadDebugInfoEnabled().
|
overridevirtual |
Reimplemented from lldb_private::SymbolFile.
Definition at line 307 of file SymbolFileOnDemand.cpp.
References GetLog(), GetSymbolFileName(), LLDB_LOG, m_debug_info_enabled, and m_sym_file_impl.
|
overridevirtual |
Reimplemented from lldb_private::SymbolFile.
Definition at line 318 of file SymbolFileOnDemand.cpp.
References lldb_private::Symtab::eDebugAny, lldb::eSymbolTypeData, lldb_private::Symtab::eVisibilityAny, lldb_private::Symtab::FindFirstSymbolWithNameAndType(), GetLog(), GetSymbolFileName(), GetSymtab(), LLDB_LOG, m_debug_info_enabled, m_sym_file_impl, and SetLoadDebugInfoEnabled().
|
overridevirtual |
Reimplemented from lldb_private::SymbolFile.
Definition at line 475 of file SymbolFileOnDemand.cpp.
References lldb_private::SymbolFile::FindNamespace(), GetLog(), GetSymbolFileName(), LLDB_LOG, m_debug_info_enabled, and m_sym_file_impl.
|
overridevirtual |
Reimplemented from lldb_private::SymbolFile.
Definition at line 424 of file SymbolFileOnDemand.cpp.
References GetLog(), GetSymbolFileName(), LLDB_LOG, m_debug_info_enabled, and m_sym_file_impl.
|
override |
|
override |
Definition at line 102 of file SymbolFileOnDemand.cpp.
References GetLog(), GetSymbolFileName(), LLDB_LOG, m_debug_info_enabled, and m_sym_file_impl.
|
overridevirtual |
Get a mask of what this symbol file supports for the object file that it was constructed with.
Each symbol file gets to respond with a mask of abilities that it supports for each object file. This happens when we are trying to figure out which symbol file plug-in will get used for a given object file. The plug-in that responds with the best mix of "SymbolFile::Abilities" bits set, will get chosen to be the symbol file parser. This allows each plug-in to check for sections that contain data a symbol file plug-in would need. For example the DWARF plug-in requires DWARF sections in a file that contain debug information. If the DWARF plug-in doesn't find these sections, it won't respond with many ability bits set, and we will probably fall back to the symbol table SymbolFile plug-in which uses any information in the symbol table. Also, plug-ins might check for some specific symbols in a symbol table in the case where the symbol table contains debug information (STABS and COFF). Not a lot of work should happen in these functions as the plug-in might not get selected due to another plug-in having more abilities. Any initialization work should be saved for "void SymbolFile::InitializeObject()" which will get called on the SymbolFile object with the best set of abilities.
Implements lldb_private::SymbolFile.
Definition at line 585 of file SymbolFileOnDemand.cpp.
References GetLog(), GetSymbolFileName(), LLDB_LOG, m_debug_info_enabled, and m_sym_file_impl.
|
inlineoverridevirtual |
SymbolFileOnDemand class overrides this to return the underlying backing SymbolFile implementation that loads on-demand.
Reimplemented from lldb_private::SymbolFile.
Definition at line 58 of file SymbolFileOnDemand.h.
References m_sym_file_impl.
|
overridevirtual |
Implements lldb_private::SymbolFile.
Definition at line 579 of file SymbolFileOnDemand.cpp.
References GetLog(), GetSymbolFileName(), LLDB_LOG, and m_sym_file_impl.
|
overridevirtual |
Return the time it took to index the debug information in the object file.
Reimplemented from lldb_private::SymbolFile.
Definition at line 556 of file SymbolFileOnDemand.cpp.
References GetLog(), GetSymbolFileName(), LLDB_LOG, and m_sym_file_impl.
|
inlineoverridevirtual |
Accessors for the bool that indicates if the debug info index was loaded from, or saved to the module index cache.
In statistics it is handy to know if a module's debug info was loaded from or saved to the cache. When the debug info index is loaded from the cache startup times can be faster. When the cache is enabled and the debug info index is saved to the cache, debug sessions can be slower. These accessors can be accessed by the statistics and emitted to help track these costs.
Implements lldb_private::SymbolFile.
Definition at line 207 of file SymbolFileOnDemand.h.
References m_sym_file_impl.
|
inlineoverridevirtual |
Implements lldb_private::SymbolFile.
Definition at line 213 of file SymbolFileOnDemand.h.
References m_sym_file_impl.
|
overridevirtual |
Return the time taken to parse the debug information.
Reimplemented from lldb_private::SymbolFile.
Definition at line 549 of file SymbolFileOnDemand.cpp.
References GetLog(), GetSymbolFileName(), LLDB_LOG, and m_sym_file_impl.
|
overridevirtual |
Metrics gathering functions.
Return the size in bytes of all debug information in the symbol file.
If the debug information is contained in sections of an ObjectFile, then this call should add the size of all sections that contain debug information. Symbols the symbol tables are not considered debug information for this call to make it easy and quick for this number to be calculated. If the symbol file is all debug information, the size of the entire file should be returned. The default implementation of this function will iterate over all sections in a module and add up their debug info only section byte sizes.
Implements lldb_private::SymbolFile.
Definition at line 542 of file SymbolFileOnDemand.cpp.
References GetLog(), GetSymbolFileName(), LLDB_LOG, and m_sym_file_impl.
|
overridevirtual |
Reimplemented from lldb_private::SymbolFile.
Definition at line 247 of file SymbolFileOnDemand.cpp.
References GetLog(), GetSymbolFileName(), LLDB_LOG, m_debug_info_enabled, and m_sym_file_impl.
|
overridevirtual |
Reimplemented from lldb_private::SymbolFile.
Definition at line 237 of file SymbolFileOnDemand.cpp.
References GetLog(), GetSymbolFileName(), LLDB_LOG, m_debug_info_enabled, and m_sym_file_impl.
|
overridevirtual |
Reimplemented from lldb_private::SymbolFile.
Definition at line 220 of file SymbolFileOnDemand.cpp.
References GetLog(), lldb_private::CompilerDecl::GetName(), GetSymbolFileName(), LLDB_LOG, m_debug_info_enabled, and m_sym_file_impl.
|
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 201 of file SymbolFileOnDemand.cpp.
References GetLog(), GetSymbolFileName(), LLDB_LOG, m_debug_info_enabled, and m_sym_file_impl.
|
inlineoverridevirtual |
Whether debug info will be loaded or not.
It will be true for most implementations except SymbolFileOnDemand.
Reimplemented from lldb_private::SymbolFile.
Definition at line 51 of file SymbolFileOnDemand.h.
References m_debug_info_enabled.
|
inlineprivate |
Definition at line 221 of file SymbolFileOnDemand.h.
References lldb_private::GetLog(), and lldb_private::OnDemand.
Referenced by CompleteType(), Dump(), DumpClangAST(), FindFunctions(), FindGlobalVariables(), FindNamespace(), FindTypes(), ForEachExternalModule(), GetAbilities(), GetCompileUnitAtIndex(), GetDebugInfoIndexTime(), GetDebugInfoParseTime(), GetDebugInfoSize(), GetDeclContextContainingUID(), GetDeclContextForUID(), GetDeclForUID(), GetDynamicArrayInfoForUID(), GetMangledNamesForFunction(), GetNumCompileUnits(), GetParameterStackSize(), GetTypes(), GetTypeSystemForLanguage(), GetUnwindPlan(), InitializeObject(), ParseBlocksRecursive(), ParseCallEdgesInFunction(), ParseDebugMacros(), ParseDeclsForContext(), ParseFunctions(), ParseImportedModules(), ParseIsOptimized(), ParseLanguage(), ParseLineTable(), ParseSupportFiles(), ParseTypes(), ParseVariablesForContext(), ParseXcodeSDK(), PreloadSymbols(), ResolveTypeUID(), and SetLoadDebugInfoEnabled().
|
inlineoverridevirtual |
Implements lldb_private::SymbolFile.
Definition at line 199 of file SymbolFileOnDemand.h.
References m_sym_file_impl.
|
overridevirtual |
Reimplemented from lldb_private::SymbolFile.
Definition at line 411 of file SymbolFileOnDemand.cpp.
References GetLog(), GetSymbolFileName(), LLDB_LOG, m_debug_info_enabled, and m_sym_file_impl.
|
overridevirtual |
Symbols file subclasses should override this to return the Module that owns the TypeSystem that this symbol file modifies type information in.
Reimplemented from lldb_private::SymbolFile.
Definition at line 33 of file SymbolFileOnDemand.cpp.
References m_sym_file_impl.
|
overridevirtual |
Implements lldb_private::SymbolFile.
Definition at line 573 of file SymbolFileOnDemand.cpp.
References GetLog(), GetSymbolFileName(), LLDB_LOG, and m_sym_file_impl.
|
inlineoverridevirtual |
Implements lldb_private::SymbolFile.
Definition at line 196 of file SymbolFileOnDemand.h.
References m_sym_file_impl.
|
inlineoverridevirtual |
Implements lldb_private::SymbolFile.
Definition at line 193 of file SymbolFileOnDemand.h.
References m_sym_file_impl.
Referenced by GetSymbolFileName().
|
overridevirtual |
Return the number of stack bytes taken up by the parameters to this function.
Reimplemented from lldb_private::SymbolFile.
Definition at line 515 of file SymbolFileOnDemand.cpp.
References GetLog(), lldb_private::Symbol::GetName(), lldb_private::SymbolFile::GetParameterStackSize(), GetSymbolFileName(), LLDB_LOG, m_debug_info_enabled, and m_sym_file_impl.
|
inlineoverridevirtual |
Implements lldb_private::PluginInterface.
Definition at line 49 of file SymbolFileOnDemand.h.
|
inlineprivate |
Definition at line 223 of file SymbolFileOnDemand.h.
References lldb_private::FileSpec::GetFilename(), lldb_private::ObjectFile::GetFileSpec(), and GetObjectFile().
Referenced by CompleteType(), Dump(), DumpClangAST(), FindFunctions(), FindGlobalVariables(), FindNamespace(), FindTypes(), ForEachExternalModule(), GetAbilities(), GetCompileUnitAtIndex(), GetDebugInfoIndexTime(), GetDebugInfoParseTime(), GetDebugInfoSize(), GetDeclContextContainingUID(), GetDeclContextForUID(), GetDeclForUID(), GetDynamicArrayInfoForUID(), GetMangledNamesForFunction(), GetNumCompileUnits(), GetParameterStackSize(), GetTypes(), GetTypeSystemForLanguage(), GetUnwindPlan(), InitializeObject(), ParseBlocksRecursive(), ParseCallEdgesInFunction(), ParseDebugMacros(), ParseDeclsForContext(), ParseFunctions(), ParseImportedModules(), ParseIsOptimized(), ParseLanguage(), ParseLineTable(), ParseSupportFiles(), ParseTypes(), ParseVariablesForContext(), ParseXcodeSDK(), PreloadSymbols(), ResolveTypeUID(), and SetLoadDebugInfoEnabled().
|
inlineoverridevirtual |
Implements lldb_private::SymbolFile.
Definition at line 191 of file SymbolFileOnDemand.h.
References m_sym_file_impl.
Referenced by FindFunctions(), and FindGlobalVariables().
|
overridevirtual |
Implements lldb_private::SymbolFile.
Definition at line 451 of file SymbolFileOnDemand.cpp.
References GetLog(), GetSymbolFileName(), LLDB_LOG, m_debug_info_enabled, and m_sym_file_impl.
|
overridevirtual |
Implements lldb_private::SymbolFile.
Definition at line 462 of file SymbolFileOnDemand.cpp.
References GetLog(), GetSymbolFileName(), LLDB_LOG, m_debug_info_enabled, and m_sym_file_impl.
|
overridevirtual |
Reimplemented from lldb_private::SymbolFile.
Definition at line 504 of file SymbolFileOnDemand.cpp.
References GetLog(), GetSymbolFileName(), LLDB_LOG, m_debug_info_enabled, and m_sym_file_impl.
|
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 37 of file SymbolFileOnDemand.cpp.
References GetLog(), GetSymbolFileName(), LLDB_LOG, m_debug_info_enabled, and m_sym_file_impl.
Referenced by SetLoadDebugInfoEnabled().
|
inlineoverridevirtual |
LLVM RTTI support.
Reimplemented from lldb_private::SymbolFile.
Definition at line 39 of file SymbolFileOnDemand.h.
References ID, and lldb_private::SymbolFile::isA().
|
overridevirtual |
Implements lldb_private::SymbolFile.
Definition at line 168 of file SymbolFileOnDemand.cpp.
References GetLog(), GetSymbolFileName(), LLDB_LOG, m_debug_info_enabled, and m_sym_file_impl.
|
overridevirtual |
Reimplemented from lldb_private::SymbolFile.
Definition at line 486 of file SymbolFileOnDemand.cpp.
References lldb_private::UserID::GetID(), GetLog(), GetSymbolFileName(), LLDB_LOG, m_debug_info_enabled, and m_sym_file_impl.
|
overridevirtual |
Implements lldb_private::SymbolFile.
Definition at line 93 of file SymbolFileOnDemand.cpp.
References GetLog(), GetSymbolFileName(), LLDB_LOG, m_debug_info_enabled, and m_sym_file_impl.
|
overridevirtual |
Reimplemented from lldb_private::SymbolFile.
Definition at line 256 of file SymbolFileOnDemand.cpp.
References GetLog(), GetSymbolFileName(), LLDB_LOG, m_debug_info_enabled, and m_sym_file_impl.
|
overridevirtual |
Implements lldb_private::SymbolFile.
Definition at line 75 of file SymbolFileOnDemand.cpp.
References GetLog(), GetSymbolFileName(), LLDB_LOG, m_debug_info_enabled, and m_sym_file_impl.
|
overridevirtual |
Implements lldb_private::SymbolFile.
Definition at line 149 of file SymbolFileOnDemand.cpp.
References GetLog(), GetSymbolFileName(), LLDB_LOG, m_debug_info_enabled, and m_sym_file_impl.
|
overridevirtual |
Reimplemented from lldb_private::SymbolFile.
Definition at line 125 of file SymbolFileOnDemand.cpp.
References GetLog(), GetSymbolFileName(), LLDB_LOG, m_debug_info_enabled, and m_sym_file_impl.
|
overridevirtual |
Implements lldb_private::SymbolFile.
Definition at line 46 of file SymbolFileOnDemand.cpp.
References lldb::eLanguageTypeUnknown, GetLog(), GetSymbolFileName(), LLDB_LOG, m_debug_info_enabled, and m_sym_file_impl.
|
overridevirtual |
Implements lldb_private::SymbolFile.
Definition at line 84 of file SymbolFileOnDemand.cpp.
References GetLog(), GetSymbolFileName(), LLDB_LOG, m_debug_info_enabled, and m_sym_file_impl.
|
override |
Definition at line 116 of file SymbolFileOnDemand.cpp.
References GetLog(), GetSymbolFileName(), LLDB_LOG, and m_sym_file_impl.
|
overridevirtual |
Implements lldb_private::SymbolFile.
Definition at line 140 of file SymbolFileOnDemand.cpp.
References GetLog(), GetSymbolFileName(), LLDB_LOG, m_debug_info_enabled, and m_sym_file_impl.
|
overridevirtual |
Implements lldb_private::SymbolFile.
Definition at line 177 of file SymbolFileOnDemand.cpp.
References GetLog(), GetSymbolFileName(), LLDB_LOG, m_debug_info_enabled, and m_sym_file_impl.
|
overridevirtual |
Return the Xcode SDK comp_unit was compiled against.
Reimplemented from lldb_private::SymbolFile.
Definition at line 60 of file SymbolFileOnDemand.cpp.
References GetLog(), lldb_private::XcodeSDK::GetString(), GetSymbolFileName(), LLDB_LOG, m_debug_info_enabled, and m_sym_file_impl.
|
overridevirtual |
Reimplemented from lldb_private::SymbolFile.
Definition at line 532 of file SymbolFileOnDemand.cpp.
References GetLog(), GetSymbolFileName(), LLDB_LOG, m_debug_info_enabled, m_preload_symbols, and m_sym_file_impl.
Referenced by SetLoadDebugInfoEnabled().
|
overridevirtual |
Implements lldb_private::SymbolFile.
|
overridevirtual |
Reimplemented from lldb_private::SymbolFile.
|
overridevirtual |
Implements lldb_private::SymbolFile.
Definition at line 186 of file SymbolFileOnDemand.cpp.
References GetLog(), GetSymbolFileName(), LLDB_LOG, m_debug_info_enabled, and m_sym_file_impl.
|
inlineoverridevirtual |
Notify the SymbolFile that the file addresses in the Sections for this module have been changed.
Implements lldb_private::SymbolFile.
Definition at line 203 of file SymbolFileOnDemand.h.
References m_sym_file_impl.
|
inlineoverridevirtual |
Implements lldb_private::SymbolFile.
Definition at line 210 of file SymbolFileOnDemand.h.
References m_sym_file_impl.
|
inlineoverridevirtual |
Implements lldb_private::SymbolFile.
Definition at line 216 of file SymbolFileOnDemand.h.
References m_sym_file_impl.
|
overridevirtual |
Specify debug info should be loaded.
It will be no-op for most implementations except SymbolFileOnDemand.
Reimplemented from lldb_private::SymbolFile.
Definition at line 563 of file SymbolFileOnDemand.cpp.
References GetLog(), GetSymbolFileName(), InitializeObject(), LLDB_LOG, m_debug_info_enabled, m_preload_symbols, and PreloadSymbols().
Referenced by FindFunctions(), and FindGlobalVariables().
|
staticprivate |
LLVM RTTI support.
Definition at line 34 of file SymbolFileOnDemand.h.
|
private |
Definition at line 228 of file SymbolFileOnDemand.h.
Referenced by CompleteType(), Dump(), DumpClangAST(), FindFunctions(), FindGlobalVariables(), FindNamespace(), FindTypes(), ForEachExternalModule(), GetAbilities(), GetDeclContextContainingUID(), GetDeclContextForUID(), GetDeclForUID(), GetDynamicArrayInfoForUID(), GetLoadDebugInfoEnabled(), GetMangledNamesForFunction(), GetParameterStackSize(), GetTypes(), GetTypeSystemForLanguage(), GetUnwindPlan(), InitializeObject(), ParseBlocksRecursive(), ParseCallEdgesInFunction(), ParseDebugMacros(), ParseDeclsForContext(), ParseFunctions(), ParseImportedModules(), ParseIsOptimized(), ParseLanguage(), ParseLineTable(), ParseTypes(), ParseVariablesForContext(), ParseXcodeSDK(), PreloadSymbols(), ResolveTypeUID(), and SetLoadDebugInfoEnabled().
|
private |
Definition at line 229 of file SymbolFileOnDemand.h.
Referenced by PreloadSymbols(), and SetLoadDebugInfoEnabled().
|
private |
Definition at line 230 of file SymbolFileOnDemand.h.
Referenced by CalculateAbilities(), CompleteType(), Dump(), DumpClangAST(), FindFunctions(), FindGlobalVariables(), FindNamespace(), FindTypes(), ForEachExternalModule(), GetAbilities(), GetBackingSymbolFile(), GetCompileUnitAtIndex(), GetDebugInfoIndexTime(), GetDebugInfoIndexWasLoadedFromCache(), GetDebugInfoIndexWasSavedToCache(), GetDebugInfoParseTime(), GetDebugInfoSize(), GetDeclContextContainingUID(), GetDeclContextForUID(), GetDeclForUID(), GetDynamicArrayInfoForUID(), GetMainObjectFile(), GetMangledNamesForFunction(), GetModuleMutex(), GetNumCompileUnits(), GetObjectFile(), GetParameterStackSize(), GetSymtab(), GetTypes(), GetTypeSystemForLanguage(), GetUnwindPlan(), InitializeObject(), ParseBlocksRecursive(), ParseCallEdgesInFunction(), ParseDebugMacros(), ParseDeclsForContext(), ParseFunctions(), ParseImportedModules(), ParseIsOptimized(), ParseLanguage(), ParseLineTable(), ParseSupportFiles(), ParseTypes(), ParseVariablesForContext(), ParseXcodeSDK(), PreloadSymbols(), ResolveTypeUID(), SectionFileAddressesChanged(), SetDebugInfoIndexWasLoadedFromCache(), and SetDebugInfoIndexWasSavedToCache().