LLDB
mainline
|
#include <AppleDWARFIndex.h>
Public Member Functions | |
AppleDWARFIndex (Module &module, std::unique_ptr< DWARFMappedHash::MemoryTable > apple_names, std::unique_ptr< DWARFMappedHash::MemoryTable > apple_namespaces, std::unique_ptr< DWARFMappedHash::MemoryTable > apple_types, std::unique_ptr< DWARFMappedHash::MemoryTable > apple_objc) | |
void | Preload () override |
void | GetGlobalVariables (ConstString basename, llvm::function_ref< bool(DWARFDIE die)> callback) override |
Finds global variables with the given base name. More... | |
void | GetGlobalVariables (const RegularExpression ®ex, llvm::function_ref< bool(DWARFDIE die)> callback) override |
void | GetGlobalVariables (DWARFUnit &cu, llvm::function_ref< bool(DWARFDIE die)> callback) override |
cu must be the skeleton unit if possible, not GetNonSkeletonUnit(). More... | |
void | GetObjCMethods (ConstString class_name, llvm::function_ref< bool(DWARFDIE die)> callback) override |
void | GetCompleteObjCClass (ConstString class_name, bool must_be_implementation, llvm::function_ref< bool(DWARFDIE die)> callback) override |
void | GetTypes (ConstString name, llvm::function_ref< bool(DWARFDIE die)> callback) override |
void | GetTypes (const DWARFDeclContext &context, llvm::function_ref< bool(DWARFDIE die)> callback) override |
void | GetNamespaces (ConstString name, llvm::function_ref< bool(DWARFDIE die)> callback) override |
void | GetFunctions (const Module::LookupInfo &lookup_info, SymbolFileDWARF &dwarf, const CompilerDeclContext &parent_decl_ctx, llvm::function_ref< bool(DWARFDIE die)> callback) override |
void | GetFunctions (const RegularExpression ®ex, llvm::function_ref< bool(DWARFDIE die)> callback) override |
void | Dump (Stream &s) override |
![]() | |
DWARFIndex (Module &module) | |
virtual | ~DWARFIndex () |
StatsDuration::Duration | GetIndexTime () |
Static Public Member Functions | |
static std::unique_ptr< AppleDWARFIndex > | Create (Module &module, DWARFDataExtractor apple_names, DWARFDataExtractor apple_namespaces, DWARFDataExtractor apple_types, DWARFDataExtractor apple_objc, DWARFDataExtractor debug_str) |
Private Attributes | |
std::unique_ptr< DWARFMappedHash::MemoryTable > | m_apple_names_up |
std::unique_ptr< DWARFMappedHash::MemoryTable > | m_apple_namespaces_up |
std::unique_ptr< DWARFMappedHash::MemoryTable > | m_apple_types_up |
std::unique_ptr< DWARFMappedHash::MemoryTable > | m_apple_objc_up |
Additional Inherited Members | |
![]() | |
bool | ProcessFunctionDIE (const Module::LookupInfo &lookup_info, DIERef ref, SymbolFileDWARF &dwarf, const CompilerDeclContext &parent_decl_ctx, llvm::function_ref< bool(DWARFDIE die)> callback) |
Helper function implementing common logic for processing function dies. More... | |
DIERefCallbackImpl | DIERefCallback (llvm::function_ref< bool(DWARFDIE die)> callback, llvm::StringRef name={}) const |
void | ReportInvalidDIERef (DIERef ref, llvm::StringRef name) const |
![]() | |
Module & | m_module |
StatsDuration | m_index_time |
Definition at line 16 of file AppleDWARFIndex.h.
|
inline |
Definition at line 23 of file AppleDWARFIndex.h.
|
static |
Definition at line 21 of file AppleDWARFIndex.cpp.
|
overridevirtual |
Implements lldb_private::DWARFIndex.
Definition at line 205 of file AppleDWARFIndex.cpp.
References lldb_private::Stream::PutCString().
|
overridevirtual |
Implements lldb_private::DWARFIndex.
Definition at line 101 of file AppleDWARFIndex.cpp.
References lldb_private::ConstString::GetStringRef().
|
overridevirtual |
Implements lldb_private::DWARFIndex.
Definition at line 182 of file AppleDWARFIndex.cpp.
References lldb_private::Module::LookupInfo::GetLookupName(), and lldb_private::ConstString::GetStringRef().
|
overridevirtual |
Implements lldb_private::DWARFIndex.
Definition at line 193 of file AppleDWARFIndex.cpp.
References DWARFMappedHash::ExtractDIEArray(), and lldb_private::RegularExpression::GetText().
|
overridevirtual |
Implements lldb_private::DWARFIndex.
Definition at line 65 of file AppleDWARFIndex.cpp.
References DWARFMappedHash::ExtractDIEArray(), and lldb_private::RegularExpression::GetText().
|
overridevirtual |
Finds global variables with the given base name.
Any additional filtering (e.g., to only retrieve variables from a given context) should be done by the consumer.
Implements lldb_private::DWARFIndex.
Definition at line 56 of file AppleDWARFIndex.cpp.
References lldb_private::ConstString::GetStringRef().
|
overridevirtual |
cu must be the skeleton unit if possible, not GetNonSkeletonUnit().
Implements lldb_private::DWARFIndex.
Definition at line 78 of file AppleDWARFIndex.cpp.
References DWARFMappedHash::ExtractDIEArray(), SymbolFileDWARF::GetDwoNum(), DWARFUnit::GetNextUnitOffset(), DWARFUnit::GetNonSkeletonUnit(), DWARFUnit::GetOffset(), DWARFUnit::GetSymbolFileDWARF(), and lldbassert.
|
overridevirtual |
Implements lldb_private::DWARFIndex.
Definition at line 174 of file AppleDWARFIndex.cpp.
References lldb_private::ConstString::GetStringRef().
|
overridevirtual |
Implements lldb_private::DWARFIndex.
Definition at line 92 of file AppleDWARFIndex.cpp.
References lldb_private::ConstString::GetStringRef().
|
overridevirtual |
Implements lldb_private::DWARFIndex.
Definition at line 120 of file AppleDWARFIndex.cpp.
References DWARFMappedHash::eAtomTypeQualNameHash, DWARFMappedHash::eAtomTypeTag, lldb_private::GetLog(), DWARFDeclContext::GetQualifiedName(), DWARFDeclContext::GetSize(), lldb_private::ConstString::GetStringRef(), lldb_private::Lookups, and lldb_private::TypeCompletion.
|
overridevirtual |
Implements lldb_private::DWARFIndex.
Definition at line 112 of file AppleDWARFIndex.cpp.
References lldb_private::ConstString::GetStringRef().
|
inlineoverridevirtual |
Implements lldb_private::DWARFIndex.
Definition at line 33 of file AppleDWARFIndex.h.
|
private |
Definition at line 65 of file AppleDWARFIndex.h.
|
private |
Definition at line 66 of file AppleDWARFIndex.h.
|
private |
Definition at line 68 of file AppleDWARFIndex.h.
|
private |
Definition at line 67 of file AppleDWARFIndex.h.