LLDB
mainline
|
A class for reading and using a saved hash table from a block of data in memory. More...
#include <HashedNameToDIE.h>
Public Member Functions | |
MemoryTable (lldb_private::DWARFDataExtractor &table_data, const lldb_private::DWARFDataExtractor &string_table, const char *name) | |
const char * | GetStringForKeyType (KeyType key) const override |
bool | ReadHashData (uint32_t hash_data_offset, HashData &hash_data) const override |
void | AppendAllDIEsThatMatchingRegex (const lldb_private::RegularExpression ®ex, DIEInfoArray &die_info_array) const |
void | AppendAllDIEsInRange (const uint32_t die_offset_start, const uint32_t die_offset_end, DIEInfoArray &die_info_array) const |
bool | FindByName (llvm::StringRef name, llvm::function_ref< bool(DIERef ref)> callback) |
void | FindByNameAndTag (llvm::StringRef name, const dw_tag_t tag, llvm::function_ref< bool(DIERef ref)> callback) |
void | FindByNameAndTagAndQualifiedNameHash (llvm::StringRef name, const dw_tag_t tag, const uint32_t qualified_name_hash, llvm::function_ref< bool(DIERef ref)> callback) |
void | FindCompleteObjCClassByName (llvm::StringRef name, llvm::function_ref< bool(DIERef ref)> callback, bool must_be_implementation) |
![]() | |
MemoryTable (lldb_private::DataExtractor &data) | |
virtual | ~MemoryTable ()=default |
bool | IsValid () const |
uint32_t | GetHashIndex (uint32_t bucket_idx) const |
uint32_t | GetHashValue (uint32_t hash_idx) const |
uint32_t | GetHashDataOffset (uint32_t hash_idx) const |
bool | Find (llvm::StringRef name, Pair &pair) const |
const HeaderType & | GetHeader () |
void | ForEach (std::function< bool(const HashData &hash_data)> const &callback) const |
Protected Member Functions | |
Result | AppendHashDataForRegularExpression (const lldb_private::RegularExpression ®ex, lldb::offset_t *hash_data_offset_ptr, Pair &pair) const |
void | FindByName (llvm::StringRef name, DIEInfoArray &die_info_array) |
Result | GetHashDataForName (llvm::StringRef name, lldb::offset_t *hash_data_offset_ptr, Pair &pair) const override |
Protected Attributes | |
lldb_private::DWARFDataExtractor | m_data |
lldb_private::DWARFDataExtractor | m_string_table |
std::string | m_name |
![]() | |
HeaderType | m_header |
const uint32_t * | m_hash_indexes |
const uint32_t * | m_hash_values |
const uint32_t * | m_hash_offsets |
Additional Inherited Members | |
![]() | |
enum | Result |
typedef DWARFMappedHash::Header | HeaderType |
typedef uint32_t | KeyType |
typedef DIEInfoArray | HashData |
A class for reading and using a saved hash table from a block of data in memory.
Definition at line 122 of file HashedNameToDIE.h.
DWARFMappedHash::MemoryTable::MemoryTable | ( | lldb_private::DWARFDataExtractor & | table_data, |
const lldb_private::DWARFDataExtractor & | string_table, | ||
const char * | name | ||
) |
Definition at line 306 of file HashedNameToDIE.cpp.
void DWARFMappedHash::MemoryTable::AppendAllDIEsInRange | ( | const uint32_t | die_offset_start, |
const uint32_t | die_offset_end, | ||
DIEInfoArray & | die_info_array | ||
) | const |
Definition at line 496 of file HashedNameToDIE.cpp.
References DWARFMappedHash::DIEInfo::die_offset, and UINT32_MAX.
void DWARFMappedHash::MemoryTable::AppendAllDIEsThatMatchingRegex | ( | const lldb_private::RegularExpression & | regex, |
DIEInfoArray & | die_info_array | ||
) | const |
Definition at line 465 of file HashedNameToDIE.cpp.
References UINT32_MAX.
|
protected |
Definition at line 405 of file HashedNameToDIE.cpp.
References lldb_private::RegularExpression::Execute(), and UINT32_MAX.
|
protected |
Definition at line 585 of file HashedNameToDIE.cpp.
bool DWARFMappedHash::MemoryTable::FindByName | ( | llvm::StringRef | name, |
llvm::function_ref< bool(DIERef ref)> | callback | ||
) |
Definition at line 525 of file HashedNameToDIE.cpp.
References DWARFMappedHash::ExtractDIEArray().
void DWARFMappedHash::MemoryTable::FindByNameAndTag | ( | llvm::StringRef | name, |
const dw_tag_t | tag, | ||
llvm::function_ref< bool(DIERef ref)> | callback | ||
) |
Definition at line 535 of file HashedNameToDIE.cpp.
References DWARFMappedHash::ExtractDIEArray().
void DWARFMappedHash::MemoryTable::FindByNameAndTagAndQualifiedNameHash | ( | llvm::StringRef | name, |
const dw_tag_t | tag, | ||
const uint32_t | qualified_name_hash, | ||
llvm::function_ref< bool(DIERef ref)> | callback | ||
) |
Definition at line 543 of file HashedNameToDIE.cpp.
References DWARFMappedHash::ExtractDIEArray().
void DWARFMappedHash::MemoryTable::FindCompleteObjCClassByName | ( | llvm::StringRef | name, |
llvm::function_ref< bool(DIERef ref)> | callback, | ||
bool | must_be_implementation | ||
) |
Definition at line 553 of file HashedNameToDIE.cpp.
References DWARFMappedHash::eAtomTypeTypeFlags, DWARFMappedHash::eTypeFlagClassIsImplementation, DWARFMappedHash::ExtractClassOrStructDIEArray(), DWARFMappedHash::ExtractTypesFromDIEArray(), and UINT32_MAX.
|
overrideprotectedvirtual |
Implements MappedHash::MemoryTable< uint32_t, DWARFMappedHash::Header, DIEInfoArray >.
Definition at line 336 of file HashedNameToDIE.cpp.
References UINT32_MAX.
|
overridevirtual |
Implements MappedHash::MemoryTable< uint32_t, DWARFMappedHash::Header, DIEInfoArray >.
Definition at line 313 of file HashedNameToDIE.cpp.
|
overridevirtual |
Implements MappedHash::MemoryTable< uint32_t, DWARFMappedHash::Header, DIEInfoArray >.
Definition at line 318 of file HashedNameToDIE.cpp.
|
protected |
Definition at line 170 of file HashedNameToDIE.h.
|
protected |
Definition at line 172 of file HashedNameToDIE.h.
|
protected |
Definition at line 171 of file HashedNameToDIE.h.