LLDB mainline
|
#include <UUID.h>
Classes | |
struct | CvRecordPdb70 |
Public Member Functions | |
UUID ()=default | |
UUID (llvm::ArrayRef< uint8_t > bytes) | |
Creates a uuid from the data pointed to by the bytes argument. | |
UUID (CvRecordPdb70 debug_info) | |
Create a UUID from CvRecordPdb70. | |
UUID (const void *bytes, uint32_t num_bytes) | |
Creates a UUID from the data pointed to by the bytes argument. | |
void | Clear () |
void | Dump (Stream &s) const |
llvm::ArrayRef< uint8_t > | GetBytes () const |
operator bool () const | |
bool | IsValid () const |
std::string | GetAsString (llvm::StringRef separator="-") const |
bool | SetFromStringRef (llvm::StringRef str) |
Static Public Member Functions | |
static llvm::StringRef | DecodeUUIDBytesFromString (llvm::StringRef str, llvm::SmallVectorImpl< uint8_t > &uuid_bytes) |
Decode as many UUID bytes as possible from the C string cstr. | |
Private Attributes | |
llvm::SmallVector< uint8_t, 20 > | m_bytes |
Friends | |
bool | operator== (const UUID &LHS, const UUID &RHS) |
bool | operator!= (const UUID &LHS, const UUID &RHS) |
bool | operator< (const UUID &LHS, const UUID &RHS) |
bool | operator<= (const UUID &LHS, const UUID &RHS) |
bool | operator> (const UUID &LHS, const UUID &RHS) |
bool | operator>= (const UUID &LHS, const UUID &RHS) |
|
default |
Referenced by SetFromStringRef(), and UUID().
|
inline |
UUID::UUID | ( | UUID::CvRecordPdb70 | debug_info | ) |
Create a UUID from CvRecordPdb70.
Definition at line 38 of file UUID.cpp.
References lldb_private::UUID::CvRecordPdb70::Age, lldb_private::UUID::CvRecordPdb70::Data1, lldb_private::UUID::CvRecordPdb70::Data2, lldb_private::UUID::CvRecordPdb70::Data3, UUID(), and lldb_private::UUID::CvRecordPdb70::Uuid.
|
inline |
|
inline |
Definition at line 62 of file UUID.h.
References m_bytes.
Referenced by lldb_private::ModuleSpec::Clear(), DynamicLoaderDarwinKernel::KextImageInfo::Clear(), DynamicLoaderFreeBSDKernel::KModImageInfo::Clear(), lldb_private::OptionValueUUID::Clear(), lldb_private::DynamicLoaderDarwin::ImageInfo::Clear(), ObjectFileMachO::GetCorefileMainBinaryInfo(), lldb_private::ObjectFile::GetCorefileMainBinaryInfo(), ObjectFileMachO::GetLLDBSharedCacheUUID(), lldb_private::Target::GetOrCreateModule(), ObjectFileMachO::GetProcessSharedCacheUUID(), DynamicLoaderMacOS::GetSharedCacheInformation(), DynamicLoaderMacOSXDYLD::GetSharedCacheInformation(), lldb_private::DynamicLoader::GetSharedCacheInformation(), lldb_private::minidump::ProcessMinidump::ReadModuleList(), and UUID().
|
static |
Decode as many UUID bytes as possible from the C string cstr.
[in] | str | An llvm::StringRef that points at a UUID string value (no leading spaces). The string must contain only hex characters and optionally can contain the '-' sepearators. |
[in] | uuid_bytes | A buffer of bytes that will contain a full or partially decoded UUID. |
Definition at line 74 of file UUID.cpp.
References xdigit_to_int().
Referenced by lldb_private::OptionValueUUID::AutoComplete(), and SetFromStringRef().
void UUID::Dump | ( | Stream & | s | ) | const |
Definition at line 64 of file UUID.cpp.
References GetAsString(), and lldb_private::Stream::PutCString().
Referenced by CommandObjectTargetSymbolsAdd::AddModuleSymbols(), CommandObjectTargetSymbolsAdd::AddSymbolsForUUID(), CommandObjectTargetModulesAdd::DoExecute(), lldb_private::ModuleSpec::Dump(), DumpModuleUUID(), lldb_private::OptionValueUUID::DumpValue(), lldb_private::Target::GetOrCreateModule(), and UUIDsMatch().
std::string UUID::GetAsString | ( | llvm::StringRef | separator = "-" | ) | const |
Definition at line 49 of file UUID.cpp.
References GetBytes(), and separate().
Referenced by lldb_private::OptionValueUUID::AutoComplete(), CreateAllImageInfosPayload(), SymbolVendorMacOSX::CreateInstance(), CommandObjectTargetModulesLoad::DoExecute(), lldb_private::SymbolLocatorDebugSymbols::DownloadObjectAndSymbolFile(), Dump(), lldb_private::ModuleCache::Get(), lldb_private::ModuleCache::GetAndPut(), lldb_private::Platform::GetCachedSharedModule(), ObjectFileMachO::GetCorefileMainBinaryInfo(), ObjectFileMachO::GetLLDBSharedCacheUUID(), ObjectFileMachO::GetProcessSharedCacheUUID(), lldb_private::ModuleList::GetSharedModule(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServerCommon::Handle_jModulesInfo(), lldb_private::process_gdb_remote::GDBRemoteCommunicationServerCommon::Handle_qModuleInfo(), ProcessMachCore::LoadBinariesViaMetadata(), ProcessMachCore::LoadBinaryViaLowmemUUID(), lldb_private::DynamicLoader::LoadBinaryWithUUIDAndAddress(), ObjectFileMachO::LoadCoreFileImages(), lldb_private::SymbolLocatorDebugSymbols::LocateExecutableObjectFile(), lldb_private::SymbolLocatorDefault::LocateExecutableSymbolFile(), LocateMacOSXFilesUsingDebugSymbols(), lldb_private::ModuleList::LogUUIDAndPaths(), lldb_private::breakpad::operator<<(), lldb_private::DebuggerStats::ReportStatistics(), ObjectFileMachO::SetLoadAddress(), and lldb_private::OptionValueUUID::ToJSON().
|
inline |
Definition at line 66 of file UUID.h.
References m_bytes.
Referenced by GetAsString(), GetFileForModule(), lldb_private::minidump::ProcessMinidump::GetOrCreateModule(), lldb_private::SymbolLocatorDebugSymbols::LocateExecutableObjectFile(), and LocateMacOSXFilesUsingDebugSymbols().
|
inline |
Definition at line 69 of file UUID.h.
References m_bytes.
Referenced by CommandObjectTargetSymbolsAdd::AddModuleSymbols(), lldb_private::OptionValueUUID::AutoComplete(), lldb_private::CacheSignature::CacheSignature(), CreateAllImageInfosPayload(), ProcessKDP::DoConnectRemote(), lldb_private::ModuleSpec::Dump(), DumpModuleUUID(), DynamicLoaderFreeBSDKernel::FindKernelAtLoadAddress(), lldb_private::ModuleList::FindModule(), lldb_private::DynamicLoaderDarwin::FindTargetModuleForImageInfo(), GetFileForModule(), ObjectFileMachO::GetLLDBSharedCacheUUID(), ObjectFileELF::GetModuleSpecifications(), ObjectFilePECOFF::GetModuleSpecifications(), lldb_private::Target::GetOrCreateModule(), lldb_private::process_gdb_remote::GDBRemoteCommunicationClient::GetProcessStandaloneBinary(), lldb_private::Platform::GetRemoteSharedModule(), DynamicLoaderMacOSXDYLD::GetSharedCacheInformation(), lldb_private::ModuleList::GetSharedModule(), ObjectFilePECOFF::GetUUID(), lldb_private::ModuleSpec::GetUUIDPtr(), ProcessMachCore::LoadBinariesViaMetadata(), ProcessMachCore::LoadBinaryViaLowmemUUID(), lldb_private::DynamicLoader::LoadBinaryWithUUIDAndAddress(), ObjectFileMachO::LoadCoreFileImages(), lldb_private::process_gdb_remote::ProcessGDBRemote::LoadStubBinaries(), lldb_private::SymbolLocatorDebugSymbols::LocateExecutableObjectFile(), lldb_private::SymbolLocatorDefault::LocateExecutableSymbolFile(), LocateMacOSXFilesUsingDebugSymbols(), lldb_private::Module::MatchesModuleSpec(), lldb_private::ModuleSpec::operator bool(), operator bool(), DynamicLoaderDarwinKernel::KextImageInfo::operator==(), DynamicLoaderDarwinKernel::ParseKextSummaries(), ObjectFileMachO::ParseSymtab(), DynamicLoaderFreeBSDKernel::KModImageInfo::ReadMemoryModule(), ObjectFileELF::RefineModuleDetailsFromNote(), lldb_private::Platform::ResolveExecutable(), DynamicLoaderDarwinKernel::SearchForKernelNearPC(), and lldb_private::DynamicLoaderDarwin::ImageInfo::UUIDValid().
|
inlineexplicit |
bool UUID::SetFromStringRef | ( | llvm::StringRef | str | ) |
Definition at line 97 of file UUID.cpp.
References DecodeUUIDBytesFromString(), and UUID().
Referenced by lldb::SBTarget::AddModule(), lldb_private::ObjectFileJSON::CreateInstance(), lldb_private::process_gdb_remote::GDBRemoteCommunicationClient::GetCurrentProcessInfo(), lldb_private::ScriptedProcess::GetLoadedDynamicLibrariesInfos(), lldb_private::process_gdb_remote::GDBRemoteCommunicationClient::GetModuleInfo(), lldb_private::ObjectFileJSON::GetModuleSpecifications(), DynamicLoaderMacOS::GetSharedCacheInformation(), CommunicationKDP::GetUUID(), ProcessMachCore::LoadBinariesViaMetadata(), lldb_private::breakpad::InfoRecord::parse(), lldb_private::trace_intel_pt::TraceIntelPTBundleLoader::ParseModule(), ParseModuleSpec(), lldb_private::Property::Property(), and lldb_private::OptionValueUUID::SetValueFromString().
|
private |