LLDB mainline
Classes | Public Member Functions | Protected Attributes | List of all members
lldb_private::UserID Class Reference

A mix in class that contains a generic user ID. More...

#include "lldb/Core/UserID.h"

Inheritance diagram for lldb_private::UserID:
Inheritance graph
[legend]

Classes

class  IDMatches
 Unary predicate function object that can search for a matching user ID. More...
 

Public Member Functions

 UserID (lldb::user_id_t uid=LLDB_INVALID_UID)
 Construct with optional user ID.
 
 ~UserID ()=default
 Destructor.
 
void Clear ()
 Clears the object state.
 
lldb::user_id_t GetID () const
 Get accessor for the user ID.
 
void SetID (lldb::user_id_t uid)
 Set accessor for the user ID.
 

Protected Attributes

lldb::user_id_t m_uid
 The user ID that uniquely identifies an object.
 

Detailed Description

A mix in class that contains a generic user ID.

UserID is designed as a mix in class that can contain an integer based unique identifier for a variety of objects in lldb.

The value for this identifier is chosen by each parser plug-in. A value should be chosen that makes sense for each kind of object and should allow quick access to further and more in depth parsing.

Symbol table entries can use this to store the original symbol table index, functions can use it to store the symbol table index or the DWARF offset.

Definition at line 31 of file UserID.h.

Constructor & Destructor Documentation

◆ UserID()

lldb_private::UserID::UserID ( lldb::user_id_t  uid = LLDB_INVALID_UID)
inline

Construct with optional user ID.

Definition at line 33 of file UserID.h.

◆ ~UserID()

lldb_private::UserID::~UserID ( )
default

Destructor.

Member Function Documentation

◆ Clear()

void lldb_private::UserID::Clear ( )
inline

Clears the object state.

Clears the object contents back to a default invalid state.

Definition at line 41 of file UserID.h.

References LLDB_INVALID_UID, and m_uid.

◆ GetID()

lldb::user_id_t lldb_private::UserID::GetID ( ) const
inline

Get accessor for the user ID.

Returns
The user ID.

Definition at line 47 of file UserID.h.

References m_uid.

Referenced by lldb_private::ClangExpressionDeclMap::AddOneFunction(), lldb_private::Block::AddRange(), lldb_private::ThreadPlanStackMap::AddThread(), lldb_private::AppleThreadPlanStepThroughDirectDispatch::AppleThreadPlanStepThroughDirectDispatch(), lldb_private::process_gdb_remote::ProcessGDBRemote::CalculateThreadStopInfo(), lldb_private::TargetProperties::CheckJITObjectsDir(), PDBASTParser::CreateLLDBTypeFromPDBType(), lldb_private::process_gdb_remote::ThreadGDBRemote::CreateRegisterContextForFrame(), lldb_private::StopInfoMachException::CreateStopReasonWithMachException(), lldb_private::trace_intel_pt::TraceIntelPT::Decode(), lldb_private::trace_intel_pt::TraceIntelPTMultiCpuDecoder::Decode(), lldb_private::ProcessWindows::DisableWatchpoint(), lldb_private::Thread::DiscardThreadPlans(), lldb_private::Thread::DiscardThreadPlansUpToPlan(), CommandObjectThreadStepWithTypeAndScope::DoExecute(), CommandObjectThreadContinue::DoExecute(), CommandObjectThreadUntil::DoExecute(), CommandObjectThreadSelect::DoExecute(), lldb_private::CommandObjectIterateOverThreads::DoExecute(), lldb_private::CommandObjectMultipleThreads::DoExecute(), lldb_private::LLVMUserExpression::DoExecute(), lldb_private::ThreadPlanNull::DoPlanExplainsStop(), lldb_private::Section::Dump(), lldb_private::StackID::Dump(), lldb_private::Variable::Dump(), lldb_private::Block::Dump(), lldb_private::SymbolContext::Dump(), lldb_private::Block::DumpSymbolContext(), lldb_private::CompileUnit::DumpSymbolContext(), lldb_private::Function::DumpSymbolContext(), lldb_private::trace_intel_pt::TraceIntelPT::DumpTraceInfo(), lldb_private::trace_intel_pt::TraceIntelPT::DumpTraceInfoAsJson(), lldb_private::ProcessWindows::EnableWatchpoint(), lldb_private::Block::FindBlockByID(), lldb_private::FormatEntity::Format(), lldb_private::Function::GetCallEdges(), lldb_private::Function::GetCompilerContext(), lldb_private::plugin::dwarf::SymbolFileDWARFDebugMap::GetCompileUnit(), lldb_private::plugin::dwarf::SymbolFileDWARFDebugMap::GetCompUnitInfo(), lldb_private::AppleGetQueuesHandler::GetCurrentQueues(), lldb_private::Variable::GetDecl(), lldb_private::Block::GetDeclContext(), lldb_private::Function::GetDeclContext(), lldb_private::Variable::GetDeclContext(), lldb::SBBlock::GetDescription(), lldb::SBFunction::GetDescription(), lldb_private::SymbolContext::GetDescription(), lldb_private::plugin::dwarf::SymbolFileDWARF::GetDWARFCompileUnit(), lldb_private::plugin::dwarf::SymbolFileDWARF::GetDwoSymbolFileForCompileUnit(), lldb_private::ValueObject::GetID(), lldb_private::AppleGetItemInfoHandler::GetItemInfo(), lldb_private::breakpad::SymbolFileBreakpad::GetOrCreateFunction(), lldb_private::SymbolContext::GetParentOfInlinedScope(), lldb_private::AppleGetPendingItemsHandler::GetPendingItems(), lldb_private::Thread::GetPlans(), lldb_private::Thread::GetProtocolID(), lldb_private::trace_intel_pt::TraceIntelPT::GetRawTraceSize(), lldb_private::StackFrameList::GetStatus(), lldb_private::Thread::GetStatus(), GetStopInfoForHardwareBP(), lldb_private::RegisterContext::GetThreadID(), lldb_private::AppleGetThreadItemInfoHandler::GetThreadItemInfo(), lldb_private::process_gdb_remote::ProcessGDBRemote::GetThreadStopInfoFromJSON(), lldb_private::SymbolFileType::GetType(), SymbolFilePDB::GetTypes(), lldb_private::npdb::GetVariableLocationInfo(), lldb_private::Debugger::HandleDestroyCallback(), lldb_private::Debugger::HandleProgressEvent(), IOHandlerLuaInterpreter::IOHandlerLuaInterpreter(), LogInitInfo(), DynamicLoaderMacOS::NotifyBreakpointHit(), DynamicLoaderMacOSXDYLD::NotifyBreakpointHit(), lldb_private::operator!=(), lldb_private::UserID::IDMatches::operator()(), lldb_private::operator<<(), lldb_private::operator==(), OutputWriterCLI::OutputWriterCLI(), lldb_private::plugin::dwarf::SymbolFileDWARF::ParseBlocksRecursive(), lldb_private::breakpad::SymbolFileBreakpad::ParseBlocksRecursive(), lldb_private::npdb::SymbolFileNativePDB::ParseBlocksRecursive(), SymbolFilePDB::ParseBlocksRecursive(), lldb_private::SymbolFileOnDemand::ParseCallEdgesInFunction(), lldb_private::plugin::dwarf::SymbolFileDWARF::ParseCallEdgesInFunction(), lldb_private::plugin::dwarf::SymbolFileDWARFDebugMap::ParseCallEdgesInFunction(), lldb_private::plugin::dwarf::SymbolFileDWARF::ParseCompileUnit(), SymbolFilePDB::ParseCompileUnitLineTable(), DWARFASTParserClang::ParseCXXMethod(), lldb_private::npdb::SymbolFileNativePDB::ParseFunctions(), SymbolFilePDB::ParseFunctions(), lldb_private::npdb::SymbolFileNativePDB::ParseLanguage(), SymbolFilePDB::ParseLanguage(), lldb_private::breakpad::SymbolFileBreakpad::ParseLineTable(), lldb_private::npdb::SymbolFileNativePDB::ParseLineTable(), lldb_private::breakpad::SymbolFileBreakpad::ParseSupportFiles(), SymbolFilePDB::ParseSupportFiles(), lldb_private::npdb::SymbolFileNativePDB::ParseSupportFiles(), ObjectFileELF::ParseSymbolTable(), ObjectFileELF::ParseSymtab(), SymbolFilePDB::ParseTypes(), lldb_private::npdb::SymbolFileNativePDB::ParseVariablesForCompileUnit(), SymbolFilePDB::ParseVariablesForContext(), lldb_private::plugin::dwarf::SymbolFileDWARF::ParseVariablesForContext(), lldb_private::npdb::SymbolFileNativePDB::ParseVariablesForContext(), lldb_private::plugin::dwarf::SymbolFileDWARF::ParseVariablesInFunctionContextRecursive(), lldb_private::StopInfoBreakpoint::PerformAction(), lldb_private::StopInfoWatchpoint::PerformAction(), ABIMacOSX_arm64::PrepareTrivialCall(), ABISysV_arm64::PrepareTrivialCall(), ABISysV_mips::PrepareTrivialCall(), ABISysV_mips64::PrepareTrivialCall(), ABISysV_ppc::PrepareTrivialCall(), ABISysV_ppc64::PrepareTrivialCall(), ABISysV_s390x::PrepareTrivialCall(), ABISysV_x86_64::PrepareTrivialCall(), ABIWindows_x86_64::PrepareTrivialCall(), lldb_private::Type::ResolveCompilerType(), lldb::SBThread::ResumeNewPlan(), lldb_private::Thread::ReturnFromFrameWithIndex(), lldb_private::Process::RunThreadPlan(), lldb_private::StackFrameList::SetDefaultFileAndLineToSelectedFrame(), lldb_private::Thread::SetStopInfo(), lldb_private::Thread::ShouldReportRun(), lldb_private::Thread::ShouldReportStop(), lldb_private::Thread::ShouldStop(), lldb_private::Thread::StepIn(), lldb_private::Thread::StepOut(), lldb::SBThread::StepOutOfFrame(), lldb_private::Thread::StepOver(), lldb_private::Thread::Thread(), lldb_private::process_gdb_remote::ThreadGDBRemote::ThreadGDBRemote(), ThreadKDP::ThreadKDP(), lldb_private::ThreadSpec::TIDMatches(), lldb_private::AppleObjCRuntimeV2::WarnIfNoClassesCached(), lldb_private::AppleObjCRuntimeV2::WarnIfNoExpandedSharedCache(), lldb_private::process_gdb_remote::GDBRemoteRegisterContext::WriteAllRegisterValues(), lldb_private::HistoryThread::~HistoryThread(), lldb_private::Thread::~Thread(), lldb_private::process_gdb_remote::ThreadGDBRemote::~ThreadGDBRemote(), and ThreadKDP::~ThreadKDP().

◆ SetID()

void lldb_private::UserID::SetID ( lldb::user_id_t  uid)
inline

Set accessor for the user ID.

Parameters
[in]uidThe new user ID.

Definition at line 53 of file UserID.h.

References m_uid.

Referenced by lldb_private::process_gdb_remote::GDBRemoteRegisterContext::ReadAllRegisterValues(), and lldb_private::ThreadPlan::ThreadPlan().

Member Data Documentation

◆ m_uid

lldb::user_id_t lldb_private::UserID::m_uid
protected

The user ID that uniquely identifies an object.

Definition at line 77 of file UserID.h.

Referenced by Clear(), GetID(), and SetID().


The documentation for this class was generated from the following file: