LLDB mainline
|
#include <SymbolFileBreakpad.h>
Classes | |
struct | Bookmark |
class | CompUnitData |
class | LineIterator |
struct | UnwindData |
Public Member Functions | |
SymbolFileBreakpad (lldb::ObjectFileSP objfile_sp) | |
~SymbolFileBreakpad () override=default | |
uint32_t | CalculateAbilities () override |
void | InitializeObject () override |
Initialize the SymbolFile object. | |
lldb::LanguageType | ParseLanguage (CompileUnit &comp_unit) override |
lldb::FunctionSP | GetOrCreateFunction (CompileUnit &comp_unit) |
size_t | ParseFunctions (CompileUnit &comp_unit) override |
bool | ParseLineTable (CompileUnit &comp_unit) override |
bool | ParseDebugMacros (CompileUnit &comp_unit) override |
bool | ParseSupportFiles (CompileUnit &comp_unit, SupportFileList &support_files) override |
size_t | ParseTypes (CompileUnit &cu) override |
bool | ParseImportedModules (const SymbolContext &sc, std::vector< lldb_private::SourceModule > &imported_modules) override |
size_t | ParseBlocksRecursive (Function &func) override |
void | FindGlobalVariables (ConstString name, const CompilerDeclContext &parent_decl_ctx, uint32_t max_matches, VariableList &variables) override |
size_t | ParseVariablesForContext (const SymbolContext &sc) override |
Type * | ResolveTypeUID (lldb::user_id_t type_uid) override |
std::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. | |
bool | CompleteType (CompilerType &compiler_type) override |
uint32_t | ResolveSymbolContext (const Address &so_addr, lldb::SymbolContextItem resolve_scope, SymbolContext &sc) override |
uint32_t | ResolveSymbolContext (const SourceLocationSpec &src_location_spec, lldb::SymbolContextItem resolve_scope, SymbolContextList &sc_list) override |
void | GetTypes (SymbolContextScope *sc_scope, lldb::TypeClass type_mask, TypeList &type_list) 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 |
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 | AddSymbols (Symtab &symtab) override |
llvm::Expected< lldb::addr_t > | GetParameterStackSize (Symbol &symbol) override |
Return the number of stack bytes taken up by the parameters to this function. | |
lldb::UnwindPlanSP | GetUnwindPlan (const Address &address, const RegisterInfoResolver &resolver) override |
llvm::StringRef | GetPluginName () override |
uint64_t | GetDebugInfoSize (bool load_all_debug_info=false) override |
Metrics gathering functions. | |
![]() | |
SymbolFileCommon (lldb::ObjectFileSP objfile_sp) | |
~SymbolFileCommon () override=default | |
uint32_t | GetAbilities () override |
Get a mask of what this symbol file supports for the object file that it was constructed with. | |
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 |
![]() | |
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. | |
![]() | |
PluginInterface ()=default | |
virtual | ~PluginInterface ()=default |
virtual llvm::StringRef | GetPluginName ()=0 |
PluginInterface (const PluginInterface &)=delete | |
PluginInterface & | operator= (const PluginInterface &)=delete |
Static Public Member Functions | |
static void | Initialize () |
static void | Terminate () |
static void | DebuggerInitialize (Debugger &debugger) |
static llvm::StringRef | GetPluginNameStatic () |
static llvm::StringRef | GetPluginDescriptionStatic () |
static SymbolFile * | CreateInstance (lldb::ObjectFileSP objfile_sp) |
![]() | |
static bool | classof (const SymbolFileCommon *obj) |
![]() | |
static SymbolFile * | FindPlugin (lldb::ObjectFileSP objfile_sp) |
static bool | classof (const SymbolFile *obj) |
Private Types | |
using | CompUnitMap = RangeDataVector< lldb::addr_t, lldb::addr_t, CompUnitData > |
using | UnwindMap = RangeDataVector< lldb::addr_t, lldb::addr_t, Bookmark > |
Private Member Functions | |
llvm::iterator_range< LineIterator > | lines (Record::Kind section_type) |
uint32_t | CalculateNumCompileUnits () override |
lldb::CompUnitSP | ParseCompileUnitAtIndex (uint32_t index) override |
lldb::addr_t | GetBaseFileAddress () |
void | ParseFileRecords () |
void | ParseCUData () |
void | ParseLineTableAndSupportFiles (CompileUnit &cu, CompUnitData &data) |
void | ParseUnwindData () |
llvm::ArrayRef< uint8_t > | SaveAsDWARF (postfix::Node &node) |
lldb::UnwindPlanSP | ParseCFIUnwindPlan (const Bookmark &bookmark, const RegisterInfoResolver &resolver) |
bool | ParseCFIUnwindRow (llvm::StringRef unwind_rules, const RegisterInfoResolver &resolver, UnwindPlan::Row &row) |
lldb::UnwindPlanSP | ParseWinUnwindPlan (const Bookmark &bookmark, const RegisterInfoResolver &resolver) |
void | ParseInlineOriginRecords () |
Private Attributes | |
std::optional< std::vector< FileSpec > > | m_files |
std::optional< CompUnitMap > | m_cu_data |
std::optional< std::vector< llvm::StringRef > > | m_inline_origins |
std::optional< UnwindData > | m_unwind_data |
llvm::BumpPtrAllocator | m_allocator |
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 | |
![]() | |
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) } |
![]() | |
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) |
![]() | |
void | AssertModuleLock () |
virtual void | GetCompileOptions (std::unordered_map< lldb::CompUnitSP, lldb_private::Args > &args) |
![]() | |
lldb::ObjectFileSP | m_objfile_sp |
std::optional< std::vector< lldb::CompUnitSP > > | m_compile_units |
TypeList | m_type_list |
uint32_t | m_abilities = 0 |
bool | m_calculated_abilities = false |
bool | m_index_was_loaded_from_cache = false |
bool | m_index_was_saved_to_cache = false |
bool | m_debug_info_had_variable_errors = false |
Set to true if any variable feteching errors have been found when calling GetFrameVariableError(). | |
Definition at line 24 of file SymbolFileBreakpad.h.
|
private |
Definition at line 217 of file SymbolFileBreakpad.h.
|
private |
Definition at line 223 of file SymbolFileBreakpad.h.
|
inline |
Definition at line 52 of file SymbolFileBreakpad.h.
|
overridedefault |
|
overridevirtual |
Reimplemented from lldb_private::SymbolFile.
Definition at line 451 of file SymbolFileBreakpad.cpp.
References lldb_private::Symtab::AddSymbol(), lldb::eSymbolTypeCode, lldb_private::Symtab::Finalize(), lldb_private::SectionList::FindSectionContainingFileAddress(), GetBaseFileAddress(), lldb_private::GetLog(), lldb_private::Module::GetSectionList(), lines(), LLDB_INVALID_ADDRESS, LLDB_LOG, lldb_private::SymbolFileCommon::m_objfile_sp, lldb_private::breakpad::PublicRecord::parse(), lldb_private::breakpad::Record::Public, and lldb_private::Symbols.
|
overridevirtual |
Implements lldb_private::SymbolFile.
Definition at line 181 of file SymbolFileBreakpad.cpp.
References lldb_private::SymbolFile::CompileUnits, lldb_private::SymbolFile::Functions, lldb_private::SymbolFile::LineTables, and lldb_private::SymbolFileCommon::m_objfile_sp.
|
overrideprivatevirtual |
Implements lldb_private::SymbolFileCommon.
Definition at line 188 of file SymbolFileBreakpad.cpp.
References m_cu_data, and ParseCUData().
|
inlinestatic |
Definition at line 34 of file SymbolFileBreakpad.h.
References ID, and lldb_private::SymbolFile::isA().
|
inlineoverridevirtual |
Implements lldb_private::SymbolFile.
Definition at line 102 of file SymbolFileBreakpad.h.
|
inlinestatic |
Definition at line 47 of file SymbolFileBreakpad.h.
Referenced by Initialize(), and Terminate().
|
inlinestatic |
Definition at line 40 of file SymbolFileBreakpad.h.
Referenced by Initialize().
|
overridevirtual |
Reimplemented from lldb_private::SymbolFile.
Definition at line 424 of file SymbolFileBreakpad.cpp.
References lldb_private::SymbolContextList::Append(), lldb_private::SymbolContext::comp_unit, lldb_private::SymbolContext::function, lldb_private::SymbolFileCommon::GetCompileUnitAtIndex(), lldb_private::Module::LookupInfo::GetLookupName(), lldb_private::SymbolFile::GetModuleMutex(), lldb_private::SymbolFileCommon::GetNumCompileUnits(), GetOrCreateFunction(), and lldb_private::SymbolContext::module_sp.
|
overridevirtual |
Reimplemented from lldb_private::SymbolFile.
Definition at line 445 of file SymbolFileBreakpad.cpp.
|
inlineoverridevirtual |
Reimplemented from lldb_private::SymbolFile.
Definition at line 87 of file SymbolFileBreakpad.h.
|
inlineoverridevirtual |
Finds a namespace of name name and whose parent context is parent_decl_ctx.
If
then this function will consider all namespaces that match the name. If only_root_namespaces is true, only consider in the search those DIEs that represent top-level namespaces.
Reimplemented from lldb_private::SymbolFile.
Definition at line 127 of file SymbolFileBreakpad.h.
|
private |
Definition at line 776 of file SymbolFileBreakpad.cpp.
References lldb_private::SymbolFileCommon::m_objfile_sp.
Referenced by AddSymbols(), GetOrCreateFunction(), ParseCFIUnwindPlan(), ParseCUData(), ParseLineTableAndSupportFiles(), ParseUnwindData(), and ParseWinUnwindPlan().
|
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::SymbolFileCommon.
Definition at line 919 of file SymbolFileBreakpad.cpp.
References lldb_private::SymbolFileCommon::m_objfile_sp.
|
inlineoverridevirtual |
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 96 of file SymbolFileBreakpad.h.
FunctionSP SymbolFileBreakpad::GetOrCreateFunction | ( | CompileUnit & | comp_unit | ) |
Definition at line 229 of file SymbolFileBreakpad.cpp.
References lldb_private::CompileUnit::AddFunction(), lldb_private::breakpad::SymbolFileBreakpad::CompUnitData::bookmark, lldb_private::breakpad::Record::classify(), lldb_private::CompileUnit::FindFunctionByUID(), lldb_private::SectionList::FindSectionContainingFileAddress(), lldb_private::breakpad::Record::Func, GetBaseFileAddress(), lldb_private::UserID::GetID(), lldb_private::GetLog(), lldb_private::ModuleChild::GetModule(), LLDB_INVALID_ADDRESS, LLDB_LOG, m_cu_data, lldb_private::SymbolFileCommon::m_objfile_sp, lldb_private::breakpad::FuncRecord::parse(), lldb_private::Mangled::SetValue(), and lldb_private::Symbols.
Referenced by FindFunctions(), and ParseFunctions().
|
overridevirtual |
Return the number of stack bytes taken up by the parameters to this function.
Reimplemented from lldb_private::SymbolFile.
Definition at line 501 of file SymbolFileBreakpad.cpp.
References lldb_private::Symbol::GetAddress(), lldb_private::Address::GetFileAddress(), lldb_private::SymbolFileCommon::m_objfile_sp, m_unwind_data, lldb_private::breakpad::StackWinRecord::parse(), ParseUnwindData(), and lldb_private::breakpad::Record::StackWin.
|
inlinestatic |
Definition at line 43 of file SymbolFileBreakpad.h.
Referenced by Initialize().
|
inlineoverridevirtual |
Implements lldb_private::PluginInterface.
Definition at line 141 of file SymbolFileBreakpad.h.
References GetPluginNameStatic().
|
inlinestatic |
Definition at line 41 of file SymbolFileBreakpad.h.
Referenced by GetPluginName(), and Initialize().
|
inlineoverridevirtual |
Implements lldb_private::SymbolFile.
Definition at line 111 of file SymbolFileBreakpad.h.
|
inlineoverridevirtual |
Reimplemented from lldb_private::SymbolFileCommon.
Definition at line 122 of file SymbolFileBreakpad.h.
|
overridevirtual |
Reimplemented from lldb_private::SymbolFile.
Definition at line 629 of file SymbolFileBreakpad.cpp.
References lldb_private::Address::GetFileAddress(), m_unwind_data, ParseCFIUnwindPlan(), ParseUnwindData(), and ParseWinUnwindPlan().
|
static |
Definition at line 171 of file SymbolFileBreakpad.cpp.
References CreateInstance(), DebuggerInitialize(), GetPluginDescriptionStatic(), GetPluginNameStatic(), and lldb_private::PluginManager::RegisterPlugin().
|
inlineoverridevirtual |
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 59 of file SymbolFileBreakpad.h.
|
inlineoverridevirtual |
LLVM RTTI support.
Reimplemented from lldb_private::SymbolFileCommon.
Definition at line 31 of file SymbolFileBreakpad.h.
References ID, and lldb_private::SymbolFileCommon::isA().
|
private |
Definition at line 133 of file SymbolFileBreakpad.cpp.
References lldb_private::SymbolFileCommon::m_objfile_sp.
Referenced by AddSymbols(), ParseFileRecords(), and ParseInlineOriginRecords().
|
overridevirtual |
Implements lldb_private::SymbolFile.
Definition at line 293 of file SymbolFileBreakpad.cpp.
References lldb_private::breakpad::SymbolFileBreakpad::CompUnitData::bookmark, lldb_private::breakpad::Record::classify(), lldb_private::breakpad::Record::Func, lldb_private::Function::GetAddressRange(), lldb_private::AddressRange::GetBaseAddress(), lldb_private::Function::GetBlock(), lldb_private::Function::GetCompileUnit(), lldb_private::UserID::GetID(), lldb_private::SymbolFile::GetModuleMutex(), lldb_private::Address::GetOffset(), lldb_private::breakpad::Record::Inline, lldbassert, m_cu_data, m_files, m_inline_origins, lldb_private::SymbolFileCommon::m_objfile_sp, lldb_private::breakpad::InlineRecord::parse(), and ParseInlineOriginRecords().
|
private |
Definition at line 642 of file SymbolFileBreakpad.cpp.
References lldb_private::eLazyBoolNo, lldb_private::eLazyBoolYes, lldb::eRegisterKindLLDB, GetBaseFileAddress(), LLDB_INVALID_ADDRESS, lldb_private::SymbolFileCommon::m_objfile_sp, lldb_private::breakpad::StackCFIRecord::parse(), ParseCFIUnwindRow(), and lldb_private::breakpad::Record::StackCFI.
Referenced by GetUnwindPlan().
|
private |
Definition at line 575 of file SymbolFileBreakpad.cpp.
References lldb::eRegisterKindLLDB, lldb_private::UnwindPlan::Row::GetCFAValue(), lldb_private::GetLog(), lldb_private::postfix::SymbolNode::GetName(), GetRule(), LLDB_LOG, lldb_private::SymbolFileCommon::m_objfile_sp, lldb_private::postfix::ParseOneExpression(), ResolveRegister(), ResolveRegisterOrRA(), lldb_private::postfix::ResolveSymbols(), SaveAsDWARF(), lldb_private::UnwindPlan::Row::AbstractRegisterLocation::SetIsDWARFExpression(), lldb_private::UnwindPlan::Row::FAValue::SetIsDWARFExpression(), lldb_private::UnwindPlan::Row::SetRegisterInfo(), and lldb_private::Symbols.
Referenced by ParseCFIUnwindPlan().
|
overrideprivatevirtual |
Implements lldb_private::SymbolFileCommon.
Definition at line 193 of file SymbolFileBreakpad.cpp.
References lldb_private::breakpad::SymbolFileBreakpad::CompUnitData::bookmark, lldb_private::breakpad::Record::classify(), lldb::eLanguageTypeUnknown, lldb_private::eLazyBoolNo, lldb_private::breakpad::Record::Func, lldb_private::breakpad::Record::Inline, m_cu_data, m_files, lldb_private::SymbolFileCommon::m_objfile_sp, lldb_private::breakpad::LineRecord::parse(), ParseFileRecords(), and lldb_private::SymbolFileCommon::SetCompileUnitAtIndex().
|
private |
Definition at line 806 of file SymbolFileBreakpad.cpp.
References lldb_private::breakpad::Record::Func, GetBaseFileAddress(), lldb_private::GetLog(), LLDB_INVALID_ADDRESS, LLDB_LOG, m_cu_data, lldb_private::SymbolFileCommon::m_objfile_sp, lldb_private::breakpad::FuncRecord::parse(), and lldb_private::Symbols.
Referenced by CalculateNumCompileUnits().
|
inlineoverridevirtual |
Implements lldb_private::SymbolFile.
Definition at line 73 of file SymbolFileBreakpad.h.
|
private |
Definition at line 785 of file SymbolFileBreakpad.cpp.
References lldb_private::breakpad::Record::File, lldb_private::GetLog(), lldb_private::FileSpec::GuessPathStyle(), lines(), LLDB_LOG, m_files, lldb_private::breakpad::FileRecord::parse(), and lldb_private::Symbols.
Referenced by ParseCompileUnitAtIndex().
|
overridevirtual |
Implements lldb_private::SymbolFile.
Definition at line 265 of file SymbolFileBreakpad.cpp.
References lldb_private::SymbolFile::GetModuleMutex(), and GetOrCreateFunction().
|
inlineoverridevirtual |
Implements lldb_private::SymbolFile.
Definition at line 79 of file SymbolFileBreakpad.h.
|
private |
Definition at line 347 of file SymbolFileBreakpad.cpp.
References lldb_private::GetLog(), lldb_private::breakpad::Record::InlineOrigin, lines(), LLDB_LOG, m_inline_origins, lldb_private::breakpad::InlineOriginRecord::parse(), and lldb_private::Symbols.
Referenced by ParseBlocksRecursive().
|
inlineoverridevirtual |
Implements lldb_private::SymbolFile.
Definition at line 63 of file SymbolFileBreakpad.h.
References lldb::eLanguageTypeUnknown.
|
overridevirtual |
Implements lldb_private::SymbolFile.
Definition at line 270 of file SymbolFileBreakpad.cpp.
References lldb_private::UserID::GetID(), lldb_private::SymbolFile::GetModuleMutex(), lldb_private::breakpad::SymbolFileBreakpad::CompUnitData::line_table_up, m_cu_data, ParseLineTableAndSupportFiles(), and lldb_private::CompileUnit::SetLineTable().
|
private |
Definition at line 833 of file SymbolFileBreakpad.cpp.
References lldb_private::LineTable::AppendLineEntryToSequence(), lldb_private::breakpad::SymbolFileBreakpad::CompUnitData::bookmark, lldb_private::breakpad::Record::classify(), lldb_private::LineTable::CreateLineSequenceContainer(), lldb_private::breakpad::Record::Func, GetBaseFileAddress(), lldb_private::CompileUnit::GetPrimaryFile(), lldb_private::breakpad::Record::Inline, lldb_private::breakpad::SymbolFileBreakpad::CompUnitData::line_table_up, LLDB_INVALID_ADDRESS, m_files, lldb_private::SymbolFileCommon::m_objfile_sp, lldb_private::breakpad::LineRecord::parse(), and lldb_private::breakpad::SymbolFileBreakpad::CompUnitData::support_files.
Referenced by ParseLineTable(), and ParseSupportFiles().
|
overridevirtual |
Implements lldb_private::SymbolFile.
Definition at line 281 of file SymbolFileBreakpad.cpp.
References lldb_private::SupportFileList::Append(), lldb_private::UserID::GetID(), lldb_private::SymbolFile::GetModuleMutex(), m_cu_data, ParseLineTableAndSupportFiles(), and lldb_private::breakpad::SymbolFileBreakpad::CompUnitData::support_files.
|
inlineoverridevirtual |
Implements lldb_private::SymbolFile.
Definition at line 77 of file SymbolFileBreakpad.h.
|
private |
Definition at line 885 of file SymbolFileBreakpad.cpp.
References GetBaseFileAddress(), lldb_private::GetLog(), LLDB_INVALID_ADDRESS, LLDB_LOG, lldb_private::SymbolFileCommon::m_objfile_sp, m_unwind_data, lldb_private::breakpad::StackCFIRecord::parse(), lldb_private::breakpad::StackWinRecord::parse(), lldb_private::breakpad::Record::StackCFI, lldb_private::breakpad::Record::StackWin, and lldb_private::Symbols.
Referenced by GetParameterStackSize(), and GetUnwindPlan().
|
inlineoverridevirtual |
Implements lldb_private::SymbolFile.
Definition at line 92 of file SymbolFileBreakpad.h.
|
private |
Definition at line 685 of file SymbolFileBreakpad.cpp.
References lldb_private::eLazyBoolNo, lldb_private::eLazyBoolYes, lldb::eRegisterKindLLDB, GetBaseFileAddress(), lldb_private::GetLog(), lldb_private::RegisterInfo::kinds, LLDB_INVALID_ADDRESS, LLDB_LOG, lldb_private::SymbolFileCommon::m_objfile_sp, lldb_private::breakpad::StackWinRecord::parse(), lldb_private::postfix::ParseFPOProgram(), ResolveRegister(), lldb_private::postfix::ResolveSymbols(), SaveAsDWARF(), lldb_private::UnwindPlan::Row::AbstractRegisterLocation::SetIsDWARFExpression(), lldb_private::breakpad::Record::StackWin, and lldb_private::Symbols.
Referenced by GetUnwindPlan().
|
overridevirtual |
Implements lldb_private::SymbolFile.
|
overridevirtual |
Reimplemented from lldb_private::SymbolFile.
Definition at line 409 of file SymbolFileBreakpad.cpp.
References lldb_private::SymbolFileCommon::GetCompileUnitAtIndex(), lldb_private::SymbolFile::GetModuleMutex(), lldb_private::SymbolFileCommon::GetNumCompileUnits(), lldb_private::SymbolContextList::GetSize(), and lldb_private::CompileUnit::ResolveSymbolContext().
|
inlineoverridevirtual |
Implements lldb_private::SymbolFile.
Definition at line 95 of file SymbolFileBreakpad.h.
|
private |
Definition at line 565 of file SymbolFileBreakpad.cpp.
References lldb_private::Stream::eBinary, lldb_private::ArchSpec::GetAddressByteSize(), lldb_private::ArchSpec::GetByteOrder(), m_allocator, and lldb_private::SymbolFileCommon::m_objfile_sp.
Referenced by ParseCFIUnwindRow(), and ParseWinUnwindPlan().
|
static |
Definition at line 177 of file SymbolFileBreakpad.cpp.
References CreateInstance(), and lldb_private::PluginManager::UnregisterPlugin().
|
staticprivate |
LLVM RTTI support.
Definition at line 26 of file SymbolFileBreakpad.h.
|
private |
Definition at line 229 of file SymbolFileBreakpad.h.
Referenced by SaveAsDWARF().
|
private |
Definition at line 220 of file SymbolFileBreakpad.h.
Referenced by CalculateNumCompileUnits(), GetOrCreateFunction(), ParseBlocksRecursive(), ParseCompileUnitAtIndex(), ParseCUData(), ParseLineTable(), and ParseSupportFiles().
|
private |
Definition at line 219 of file SymbolFileBreakpad.h.
Referenced by ParseBlocksRecursive(), ParseCompileUnitAtIndex(), ParseFileRecords(), and ParseLineTableAndSupportFiles().
|
private |
Definition at line 221 of file SymbolFileBreakpad.h.
Referenced by ParseBlocksRecursive(), and ParseInlineOriginRecords().
|
private |
Definition at line 228 of file SymbolFileBreakpad.h.
Referenced by GetParameterStackSize(), GetUnwindPlan(), and ParseUnwindData().