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

"lldb/Target/ExecutionContext.h" A class that contains an execution context. More...

#include <ExecutionContext.h>

Public Member Functions

 ExecutionContext ()
 Default Constructor.
 
 ExecutionContext (const ExecutionContext &rhs)
 
 ExecutionContext (Target *t, bool fill_current_process_thread_frame=true)
 
 ExecutionContext (const lldb::TargetSP &target_sp, bool get_process)
 
 ExecutionContext (const lldb::ProcessSP &process_sp)
 
 ExecutionContext (const lldb::ThreadSP &thread_sp)
 
 ExecutionContext (const lldb::StackFrameSP &frame_sp)
 
 ExecutionContext (const lldb::TargetWP &target_wp, bool get_process)
 
 ExecutionContext (const lldb::ProcessWP &process_wp)
 
 ExecutionContext (const lldb::ThreadWP &thread_wp)
 
 ExecutionContext (const lldb::StackFrameWP &frame_wp)
 
 ExecutionContext (const ExecutionContextRef &exe_ctx_ref)
 
 ExecutionContext (const ExecutionContextRef *exe_ctx_ref, bool thread_and_frame_only_if_stopped=false)
 
 ExecutionContext (const ExecutionContextRef &exe_ctx_ref, std::unique_lock< std::recursive_mutex > &locker)
 
 ExecutionContext (const ExecutionContextRef *exe_ctx_ref, std::unique_lock< std::recursive_mutex > &locker)
 
 ExecutionContext (ExecutionContextScope *exe_scope)
 
 ExecutionContext (ExecutionContextScope &exe_scope)
 
 ExecutionContext (Process *process, Thread *thread=nullptr, StackFrame *frame=nullptr)
 Construct with process, thread, and frame index.
 
 ~ExecutionContext ()
 
ExecutionContextoperator= (const ExecutionContext &rhs)
 
bool operator== (const ExecutionContext &rhs) const
 
bool operator!= (const ExecutionContext &rhs) const
 
void Clear ()
 Clear the object's state.
 
RegisterContextGetRegisterContext () const
 
ExecutionContextScopeGetBestExecutionContextScope () const
 
uint32_t GetAddressByteSize () const
 
lldb::ByteOrder GetByteOrder () const
 
TargetGetTargetPtr () const
 Returns a pointer to the target object.
 
ProcessGetProcessPtr () const
 Returns a pointer to the process object.
 
ThreadGetThreadPtr () const
 Returns a pointer to the thread object.
 
StackFrameGetFramePtr () const
 Returns a pointer to the frame object.
 
TargetGetTargetRef () const
 Returns a reference to the target object.
 
ProcessGetProcessRef () const
 Returns a reference to the process object.
 
ThreadGetThreadRef () const
 Returns a reference to the thread object.
 
StackFrameGetFrameRef () const
 Returns a reference to the thread object.
 
const lldb::TargetSPGetTargetSP () const
 Get accessor to get the target shared pointer.
 
const lldb::ProcessSPGetProcessSP () const
 Get accessor to get the process shared pointer.
 
const lldb::ThreadSPGetThreadSP () const
 Get accessor to get the thread shared pointer.
 
const lldb::StackFrameSPGetFrameSP () const
 Get accessor to get the frame shared pointer.
 
void SetTargetSP (const lldb::TargetSP &target_sp)
 Set accessor to set only the target shared pointer.
 
void SetProcessSP (const lldb::ProcessSP &process_sp)
 Set accessor to set only the process shared pointer.
 
void SetThreadSP (const lldb::ThreadSP &thread_sp)
 Set accessor to set only the thread shared pointer.
 
void SetFrameSP (const lldb::StackFrameSP &frame_sp)
 Set accessor to set only the frame shared pointer.
 
void SetTargetPtr (Target *target)
 Set accessor to set only the target shared pointer from a target pointer.
 
void SetProcessPtr (Process *process)
 Set accessor to set only the process shared pointer from a process pointer.
 
void SetThreadPtr (Thread *thread)
 Set accessor to set only the thread shared pointer from a thread pointer.
 
void SetFramePtr (StackFrame *frame)
 Set accessor to set only the frame shared pointer from a frame pointer.
 
void SetContext (const lldb::TargetSP &target_sp, bool get_process)
 
void SetContext (const lldb::ProcessSP &process_sp)
 
void SetContext (const lldb::ThreadSP &thread_sp)
 
void SetContext (const lldb::StackFrameSP &frame_sp)
 
bool HasTargetScope () const
 Returns true the ExecutionContext object contains a valid target.
 
bool HasProcessScope () const
 Returns true the ExecutionContext object contains a valid target and process.
 
bool HasThreadScope () const
 Returns true the ExecutionContext object contains a valid target, process, and thread.
 
bool HasFrameScope () const
 Returns true the ExecutionContext object contains a valid target, process, thread and frame.
 

Protected Attributes

lldb::TargetSP m_target_sp
 The target that owns the process/thread/frame.
 
lldb::ProcessSP m_process_sp
 The process that owns the thread/frame.
 
lldb::ThreadSP m_thread_sp
 The thread that owns the frame.
 
lldb::StackFrameSP m_frame_sp
 The stack frame in thread.
 

Detailed Description

"lldb/Target/ExecutionContext.h" A class that contains an execution context.

This baton object can be passed into any function that requires a context that specifies a target, process, thread and frame. These objects are designed to be used for short term execution context object storage while a function might be trying to evaluate something that requires a thread or frame. ExecutionContextRef objects can be used to initialize one of these objects to turn the weak execution context object references to the target, process, thread and frame into strong references (shared pointers) so that functions can guarantee that these objects won't go away in the middle of a function.

ExecutionContext objects should be used as short lived objects (typically on the stack) in order to lock down an execution context for local use and for passing down to other functions that also require specific contexts. They should NOT be used for long term storage, for long term storage use ExecutionContextRef objects.

Definition at line 292 of file ExecutionContext.h.

Constructor & Destructor Documentation

◆ ExecutionContext() [1/18]

ExecutionContext::ExecutionContext ( )

Default Constructor.

Definition at line 19 of file ExecutionContext.cpp.

◆ ExecutionContext() [2/18]

ExecutionContext::ExecutionContext ( const ExecutionContext rhs)
default

◆ ExecutionContext() [3/18]

ExecutionContext::ExecutionContext ( Target t,
bool  fill_current_process_thread_frame = true 
)

◆ ExecutionContext() [4/18]

ExecutionContext::ExecutionContext ( const lldb::TargetSP target_sp,
bool  get_process 
)

Definition at line 24 of file ExecutionContext.cpp.

References SetContext().

◆ ExecutionContext() [5/18]

ExecutionContext::ExecutionContext ( const lldb::ProcessSP process_sp)

Definition at line 31 of file ExecutionContext.cpp.

References SetContext().

◆ ExecutionContext() [6/18]

ExecutionContext::ExecutionContext ( const lldb::ThreadSP thread_sp)

Definition at line 37 of file ExecutionContext.cpp.

References SetContext().

◆ ExecutionContext() [7/18]

ExecutionContext::ExecutionContext ( const lldb::StackFrameSP frame_sp)

Definition at line 43 of file ExecutionContext.cpp.

References SetContext().

◆ ExecutionContext() [8/18]

ExecutionContext::ExecutionContext ( const lldb::TargetWP target_wp,
bool  get_process 
)

Definition at line 49 of file ExecutionContext.cpp.

References SetContext().

◆ ExecutionContext() [9/18]

ExecutionContext::ExecutionContext ( const lldb::ProcessWP process_wp)

Definition at line 57 of file ExecutionContext.cpp.

References SetContext().

◆ ExecutionContext() [10/18]

ExecutionContext::ExecutionContext ( const lldb::ThreadWP thread_wp)

Definition at line 64 of file ExecutionContext.cpp.

References SetContext().

◆ ExecutionContext() [11/18]

ExecutionContext::ExecutionContext ( const lldb::StackFrameWP frame_wp)

Definition at line 71 of file ExecutionContext.cpp.

References SetContext().

◆ ExecutionContext() [12/18]

ExecutionContext::ExecutionContext ( const ExecutionContextRef exe_ctx_ref)

Definition at line 108 of file ExecutionContext.cpp.

◆ ExecutionContext() [13/18]

ExecutionContext::ExecutionContext ( const ExecutionContextRef exe_ctx_ref,
bool  thread_and_frame_only_if_stopped = false 
)

◆ ExecutionContext() [14/18]

ExecutionContext::ExecutionContext ( const ExecutionContextRef exe_ctx_ref,
std::unique_lock< std::recursive_mutex > &  locker 
)

◆ ExecutionContext() [15/18]

ExecutionContext::ExecutionContext ( const ExecutionContextRef exe_ctx_ref,
std::unique_lock< std::recursive_mutex > &  locker 
)

◆ ExecutionContext() [16/18]

ExecutionContext::ExecutionContext ( ExecutionContextScope exe_scope)

◆ ExecutionContext() [17/18]

ExecutionContext::ExecutionContext ( ExecutionContextScope exe_scope)

◆ ExecutionContext() [18/18]

ExecutionContext::ExecutionContext ( Process process,
Thread thread = nullptr,
StackFrame frame = nullptr 
)

Construct with process, thread, and frame index.

Initialize with process p, thread t, and frame index f.

Parameters
[in]processThe process for this execution context.
[in]threadThe thread for this execution context.
[in]frameThe frame index for this execution context.

Definition at line 95 of file ExecutionContext.cpp.

References lldb_private::Process::GetTarget(), m_frame_sp, m_process_sp, m_target_sp, and m_thread_sp.

◆ ~ExecutionContext()

ExecutionContext::~ExecutionContext ( )
default

Member Function Documentation

◆ Clear()

void ExecutionContext::Clear ( )

Clear the object's state.

Sets the process and thread to nullptr, and the frame index to an invalid value.

Definition at line 166 of file ExecutionContext.cpp.

References m_frame_sp, m_process_sp, m_target_sp, and m_thread_sp.

Referenced by lldb_private::Target::CalculateExecutionContext(), lldb_private::CommandObject::Cleanup(), and CommandObjectCommandsScriptImport::DoExecute().

◆ GetAddressByteSize()

uint32_t ExecutionContext::GetAddressByteSize ( ) const

◆ GetBestExecutionContextScope()

ExecutionContextScope * ExecutionContext::GetBestExecutionContextScope ( ) const

Definition at line 215 of file ExecutionContext.cpp.

References m_frame_sp, m_process_sp, m_target_sp, and m_thread_sp.

Referenced by lldb_private::ClangExpressionDeclMap::AddPersistentVariable(), lldb_private::ValueObject::AddressOf(), lldb_private::ValueObjectConstResultImpl::AddressOf(), lldb_private::Watchpoint::CaptureWatchedValue(), lldb_private::ValueObject::Cast(), lldb_private::ValueObject::CastPointerType(), lldb_private::ClangUserExpression::Complete(), lldb_private::ValueObject::CreateConstantValue(), lldb_private::ValueObject::CreateValueObjectFromAddress(), lldb_private::ValueObject::CreateValueObjectFromData(), lldb_private::formatters::CXXFunctionPointerSummaryProvider(), CommandObjectTargetVariable::DoExecute(), CommandObjectMemoryRead::DoExecute(), CommandObjectMemoryFind::DoExecute(), CommandObjectSourceList::DoExecute(), lldb_private::CommandObjectDWIMPrint::DoExecute(), lldb_private::StackFrame::Dump(), DumpAddressAndContent(), CommandObjectTargetVariable::DumpGlobalVariableList(), CommandObjectRegisterRead::DumpRegister(), lldb_private::UserExpression::Evaluate(), ExtractLibcxxStringInfo(), lldb_private::LLVMUserExpression::FinalizeJITExecution(), lldb_private::FormatEntity::Format(), lldb_private::TypeFormatImpl_Format::FormatObject(), lldb_private::TypeFormatImpl_EnumType::FormatObject(), lldb_private::ValueObjectConstResult::GetByteSize(), lldb_private::ValueObjectMemory::GetByteSize(), lldb_private::ValueObjectVariable::GetByteSize(), lldb_private::TypeSystemClang::GetChildCompilerTypeAtIndex(), lldb_private::CPlusPlusLanguage::GetFunctionDisplayName(), lldb_private::AppleObjCRuntime::GetObjectDescription(), lldb_private::ValueObject::GetPointeeData(), lldb_private::FormatManager::GetPossibleMatches(), lldb_private::ValueObject::GetSyntheticBase(), lldb_private::ValueObject::GetSyntheticChildAtOffset(), lldb_private::Value::GetValueAsData(), lldb_private::Value::GetValueByteSize(), lldb_private::ClangUtilityFunction::Install(), LoadValueFromConsecutiveGPRRegisters(), LookupAddressInModule(), LookupFileAndLineInModule(), LookupFunctionInModule(), LookupSymbolInModule(), lldb_private::Type::ReadFromMemory(), lldb_private::Value::ResolveValue(), lldb_private::ClangUserExpression::TryParse(), lldb_private::ValueObjectChild::UpdateValue(), and lldb_private::Watchpoint::WatchedValueReportable().

◆ GetByteOrder()

lldb::ByteOrder ExecutionContext::GetByteOrder ( ) const

◆ GetFramePtr()

StackFrame * lldb_private::ExecutionContext::GetFramePtr ( ) const
inline

Returns a pointer to the frame object.

The returned pointer might be nullptr. Calling HasFrameScope(), can help to pre-validate this pointer so that this accessor can freely be used without having to check for nullptr each time.

See also
ExecutionContext::HasFrameScope() const

Definition at line 408 of file ExecutionContext.h.

References m_frame_sp.

Referenced by CommandObjectTargetSymbolsAdd::AddSymbolsForFrame(), lldb_private::Variable::AutoComplete(), lldb_private::CommandObject::CheckRequirements(), lldb::SBFrame::Disassemble(), CommandObjectTargetVariable::DoExecute(), CommandObjectThreadJump::DoExecute(), CommandObjectFrameVariable::DoExecute(), CommandObjectMemoryRead::DoExecute(), CommandObjectMemoryFind::DoExecute(), lldb_private::CommandObjectDWIMPrint::DoExecute(), lldb_private::OptionArgParser::DoToAddress(), CommandObjectSourceInfo::DumpLinesForFrame(), lldb_private::UserExpression::Evaluate(), lldb_private::DWARFExpressionList::Evaluate(), lldb_private::DWARFExpression::Evaluate(), Evaluate_DW_OP_entry_value(), lldb::SBFrame::EvaluateExpression(), lldb::SBTarget::EvaluateExpression(), lldb::SBValue::EvaluateExpression(), lldb_private::Target::StopHook::ExecutionContextPasses(), lldb::SBFrame::FindRegister(), lldb::SBFrame::FindValue(), lldb::SBFrame::FindVariable(), lldb_private::FormatEntity::Format(), lldb_private::StringSummaryFormat::FormatObject(), lldb::SBFrame::GetBlock(), lldb::SBFrame::GetCFA(), lldb::SBFrame::GetCompileUnit(), lldb_private::CommandObjectDisassemble::GetCurrentFunctionRanges(), lldb_private::CommandObjectDisassemble::GetCurrentLineRanges(), CommandObjectBreakpointSet::GetDefaultFile(), lldb::SBFrame::GetDescription(), lldb::SBFrame::GetDescriptionWithFormat(), lldb::SBFrame::GetDisplayFunctionName(), lldb::SBFrame::GetFP(), lldb::SBFrame::GetFrameBlock(), lldb::SBFrame::GetFrameID(), lldb::SBFrame::GetFunction(), lldb::SBFrame::GetFunctionName(), lldb::SBFrame::GetLineEntry(), lldb::SBFrame::GetModule(), GetModuleConfig(), lldb_private::AppleObjCRuntime::GetObjectDescription(), lldb::SBFrame::GetPC(), lldb::SBFrame::GetPCAddress(), lldb_private::CommandObjectDisassemble::GetPCRanges(), lldb::SBFrame::GetRegisters(), lldb::SBFrame::GetSP(), lldb::SBFrame::GetSymbol(), lldb::SBFrame::GetSymbolContext(), lldb_private::ClangExpressionSourceCode::GetText(), lldb::SBFrame::GetValueForVariablePath(), lldb::SBFrame::GetVariables(), lldb::SBFrame::GuessLanguage(), lldb::SBFrame::IsArtificial(), lldb::SBFrame::IsInlined(), lldb_private::ValueObjectVariable::IsInScope(), lldb_private::Thread::JumpToLine(), lldb_private::CommandInterpreter::PreprocessToken(), lldb_private::Disassembler::PrintInstructions(), lldb_private::ClangUserExpression::ScanContext(), lldb::SBFrame::SetPC(), SetupDeclVendor(), lldb_private::ValueObjectRegisterSet::UpdateValue(), lldb_private::ValueObjectRegister::UpdateValue(), and lldb_private::ClangExpressionDeclMap::WillParse().

◆ GetFrameRef()

StackFrame & ExecutionContext::GetFrameRef ( ) const

Returns a reference to the thread object.

Clients should call HasFrameScope() prior to calling this function to ensure that this ExecutionContext object contains a valid target.

See also
ExecutionContext::HasFrameScope() const

Definition at line 240 of file ExecutionContext.cpp.

References m_frame_sp.

Referenced by CommandObjectFrameInfo::DoExecute().

◆ GetFrameSP()

const lldb::StackFrameSP & lldb_private::ExecutionContext::GetFrameSP ( ) const
inline

◆ GetProcessPtr()

Process * ExecutionContext::GetProcessPtr ( ) const

Returns a pointer to the process object.

The returned pointer might be nullptr. Calling HasProcessScope(), HasThreadScope(), or HasFrameScope() can help to pre-validate this pointer so that this accessor can freely be used without having to check for nullptr each time.

See also
ExecutionContext::HasProcessScope() const
ExecutionContext::HasThreadScope() const
ExecutionContext::HasFrameScope() const

Definition at line 207 of file ExecutionContext.cpp.

References m_process_sp, and m_target_sp.

Referenced by CommandObjectTargetSymbolsAdd::AddSymbolsForFrame(), CommandObjectTargetSymbolsAdd::AddSymbolsForStack(), lldb_private::CommandObjectIterateOverThreads::BucketThread(), lldb_private::ValueObject::CalculateDynamicValue(), lldb_private::CommandObject::CheckRequirements(), lldb_private::formatters::CXXFunctionPointerSummaryProvider(), lldb_private::StopInfoMachException::DeterminePtrauthFailure(), lldb::SBFrame::Disassemble(), lldb_private::IRExecutionUnit::DisassembleFunction(), CommandObjectTargetModulesLoad::DoExecute(), CommandObjectTargetSymbolsAdd::DoExecute(), CommandObjectThreadPlanPrune::DoExecute(), CommandObjectFrameRecognizerInfo::DoExecute(), CommandObjectMemoryFind::DoExecute(), CommandObjectMemoryWrite::DoExecute(), CommandObjectMemoryTagRead::DoExecute(), CommandObjectMemoryTagWrite::DoExecute(), CommandObjectProcessAttach::DoExecute(), CommandObjectProcessContinue::DoExecute(), CommandObjectProcessDetach::DoExecute(), CommandObjectProcessConnect::DoExecute(), CommandObjectProcessLoad::DoExecute(), CommandObjectProcessUnload::DoExecute(), CommandObjectProcessSignal::DoExecute(), CommandObjectProcessInterrupt::DoExecute(), CommandObjectProcessKill::DoExecute(), CommandObjectProcessStatus::DoExecute(), CommandObjectTargetModulesShowUnwind::DoExecute(), CommandObjectThreadStepWithTypeAndScope::DoExecute(), CommandObjectThreadContinue::DoExecute(), CommandObjectThreadUntil::DoExecute(), CommandObjectThreadSelect::DoExecute(), CommandObjectThreadList::DoExecute(), CommandObjectThreadPlanList::DoExecute(), lldb_private::CommandObjectIterateOverThreads::DoExecute(), CommandObjectProcessKDPPacketSend::DoExecute(), lldb_private::ctf::CommandObjectThreadTraceExportCTF::DoExecute(), CommandObjectProcessLaunch::DoExecute(), lldb_private::LLVMUserExpression::DoExecute(), lldb_private::ValueObjectVariable::DoUpdateChildrenAddressType(), lldb_private::Address::Dump(), CommandObjectRegisterRead::DumpRegister(), lldb_private::Thread::DumpUsingFormat(), lldb_private::UserExpression::Evaluate(), lldb_private::DWARFExpression::Evaluate(), lldb::SBFrame::EvaluateExpression(), lldb::SBTarget::EvaluateExpression(), lldb_private::FunctionCaller::ExecuteFunction(), lldb_private::FunctionCaller::FetchFunctionResults(), lldb_private::CPPLanguageRuntime::FindLibCppStdFunctionCallableInfo(), lldb::SBFrame::FindRegister(), lldb::SBFrame::FindValue(), lldb::SBFrame::FindVariable(), lldb_private::FormatEntity::Format(), lldb_private::TypeSystemClang::GetBitSize(), lldb::SBFrame::GetBlock(), lldb_private::TypeSystemClang::GetChildCompilerTypeAtIndex(), lldb_private::ObjCLanguageRuntime::GetClassDescriptor(), lldb_private::AppleObjCRuntimeV2::GetClassDescriptor(), lldb::SBFrame::GetCompileUnit(), lldb_private::CommandObjectDisassemble::GetCurrentFunctionRanges(), lldb_private::CommandObjectDisassemble::GetCurrentLineRanges(), lldb_private::CommandObject::GetDefaultThread(), lldb::SBFrame::GetDescription(), lldb::SBFrame::GetDescriptionWithFormat(), lldb::SBFrame::GetDisplayFunctionName(), lldb_private::ValueObjectConstResult::GetDynamicValue(), lldb::SBThread::GetExtendedBacktraceThread(), lldb::SBFrame::GetFP(), lldb::SBThread::GetFrameAtIndex(), lldb::SBFrame::GetFrameBlock(), lldb_private::RegisterContextUnwind::GetFullUnwindPlanForFrame(), lldb::SBFrame::GetFunction(), lldb::SBFrame::GetFunctionName(), lldb::SBThread::GetInfoItemByPathAsString(), lldb::SBFrame::GetLineEntry(), lldb::SBFrame::GetModule(), lldb::SBThread::GetName(), lldb::SBThread::GetNumFrames(), lldb_private::ValueObject::GetObjectDescription(), lldb_private::AppleObjCRuntime::GetObjectDescription(), lldb::SBFrame::GetPC(), lldb::SBFrame::GetPCAddress(), lldb_private::CommandObjectDisassemble::GetPCRanges(), lldb_private::ValueObject::GetPointeeData(), ProcessOptionValueProperties::GetPropertyAtIndex(), CommandObjectProcessPlugin::GetProxyCommandObject(), lldb::SBThread::GetQueue(), lldb::SBThread::GetQueueID(), lldb::SBThread::GetQueueName(), lldb::SBFrame::GetRegisters(), ABIMacOSX_arm64::GetReturnValueObjectImpl(), ABISysV_arm64::GetReturnValueObjectImpl(), ABISysV_mips::GetReturnValueObjectImpl(), ABISysV_mips64::GetReturnValueObjectImpl(), lldb::SBThread::GetSelectedFrame(), lldb::SBFrame::GetSP(), lldb_private::Thread::GetStatus(), lldb::SBThread::GetStopDescription(), lldb::SBThread::GetStopReason(), lldb::SBThread::GetStopReasonDataAtIndex(), lldb::SBThread::GetStopReasonDataCount(), lldb::SBThread::GetStopReturnValue(), lldb::SBFrame::GetSymbol(), lldb::SBFrame::GetSymbolContext(), lldb_private::ClangExpressionDeclMap::GetTargetInfo(), lldb_private::Value::GetValueAsData(), lldb::SBFrame::GetValueForVariablePath(), lldb::SBFrame::GetVariables(), GetVBaseBitOffset(), lldb_private::ItaniumABILanguageRuntime::GetVTableInfo(), lldb::SBFrame::GuessLanguage(), CommandObjectProcessUnload::HandleArgumentCompletion(), CommandObjectProcessSignal::HandleArgumentCompletion(), CommandObjectThreadBacktrace::HandleOneThread(), CommandObjectThreadInfo::HandleOneThread(), CommandObjectThreadException::HandleOneThread(), CommandObjectThreadSiginfo::HandleOneThread(), CommandObjectThreadPlanList::HandleOneThread(), CommandObjectTraceDumpInfo::HandleOneThread(), lldb_private::RegisterContextUnwind::InitializeNonZerothFrame(), lldb_private::RegisterContextUnwind::InitializeZerothFrame(), lldb_private::FunctionCaller::InsertFunction(), lldb_private::ClangUtilityFunction::Install(), lldb_private::ClangDynamicCheckerFunctions::Install(), IRInterpreter::Interpret(), lldb_private::CommandInterpreter::IOHandlerInterrupt(), lldb::SBFrame::IsInlined(), lldb_private::ValueObject::IsPossibleDynamicType(), lldb_private::formatters::LibcxxFunctionSummaryProvider(), DynamicLoaderMacOS::NotifyBreakpointHit(), DynamicLoaderMacOSXDYLD::NotifyBreakpointHit(), lldb::SBFrame::operator bool(), lldb::SBThread::operator bool(), lldb_private::ClangUserExpression::Parse(), lldb_private::StopInfoBreakpoint::PerformAction(), lldb_private::ClangExpressionParser::PrepareForExecution(), lldb::SBBreakpointCallbackBaton::PrivateBreakpointHitCallback(), lldb_private::RegisterContextUnwind::PropagateTrapHandlerFlagFromUnwindPlan(), lldb_private::process_gdb_remote::GDBRemoteRegisterContext::ReadAllRegisterValues(), lldb_private::RegisterContextUnwind::ReadFrameAddress(), lldb_private::Type::ReadFromMemory(), lldb_private::process_gdb_remote::GDBRemoteRegisterContext::ReadRegisterBytes(), lldb_private::AppleObjCTrampolineHandler::AppleObjCVTables::RefreshTrampolines(), lldb::SBThread::Resume(), lldb::SBThread::ResumeNewPlan(), lldb_private::Process::RunThreadPlan(), lldb_private::RegisterContextUnwind::SavedLocationForRegister(), lldb_private::ValueObject::SetData(), lldb::SBFrame::SetPC(), lldb::SBThread::SetSelectedFrame(), lldb_private::ValueObject::SetValueFromCString(), lldb::SBThread::Suspend(), lldb_private::ValueObject::EvaluationPoint::SyncWithProcessState(), lldb_private::CommandCompletions::ThreadIDs(), lldb_private::CommandCompletions::ThreadIndexes(), lldb_private::OptionArgParser::ToAddress(), lldb_private::ValueObjectDynamicValue::UpdateValue(), lldb_private::ValueObjectMemory::UpdateValue(), lldb_private::ValueObjectRegister::UpdateValue(), lldb_private::ValueObjectVariable::UpdateValue(), lldb_private::ClangExpressionDeclMap::WillParse(), lldb_private::process_gdb_remote::GDBRemoteRegisterContext::WriteAllRegisterValues(), lldb_private::FunctionCaller::WriteFunctionArguments(), lldb_private::FunctionCaller::WriteFunctionWrapper(), and lldb_private::process_gdb_remote::GDBRemoteRegisterContext::WriteRegisterBytes().

◆ GetProcessRef()

Process & ExecutionContext::GetProcessRef ( ) const

◆ GetProcessSP()

const lldb::ProcessSP & lldb_private::ExecutionContext::GetProcessSP ( ) const
inline

◆ GetRegisterContext()

RegisterContext * ExecutionContext::GetRegisterContext ( ) const

◆ GetTargetPtr()

Target * ExecutionContext::GetTargetPtr ( ) const

Returns a pointer to the target object.

The returned pointer might be nullptr. Calling HasTargetScope(), HasProcessScope(), HasThreadScope(), or HasFrameScope() can help to pre- validate this pointer so that this accessor can freely be used without having to check for nullptr each time.

See also
ExecutionContext::HasTargetScope() const
ExecutionContext::HasProcessScope() const
ExecutionContext::HasThreadScope() const
ExecutionContext::HasFrameScope() const

Definition at line 199 of file ExecutionContext.cpp.

References m_process_sp, and m_target_sp.

Referenced by lldb_private::ClangExpressionDeclMap::AddPersistentVariable(), CommandObjectTargetSymbolsAdd::AddSymbolsForFile(), lldb_private::OptionValueUUID::AutoComplete(), lldb_private::ScriptInterpreterLua::BreakpointCallbackFunction(), lldb_private::BreakpointOptions::BreakpointOptionsCallbackFunction(), InstructionLLVMC::CalculateMnemonicOperandsAndComment(), CalculateSymbolInfo(), lldb_private::CommandObject::CheckRequirements(), lldb_private::StopInfoMachException::CreateStopReasonWithMachException(), lldb_private::formatters::CXXFunctionPointerSummaryProvider(), lldb_private::StopInfoMachException::DeterminePtrauthFailure(), lldb_private::StackFrame::Disassemble(), lldb::SBFrame::Disassemble(), lldb_private::Disassembler::Disassemble(), lldb_private::IRExecutionUnit::DisassembleFunction(), CommandObjectSourceList::DisplayFunctionSource(), CommandObjectPlatformProcessLaunch::DoExecute(), CommandObjectTargetShowLaunchEnvironment::DoExecute(), CommandObjectTargetVariable::DoExecute(), CommandObjectTargetSymbolsAdd::DoExecute(), CommandObjectThreadJump::DoExecute(), CommandObjectMemoryRead::DoExecute(), CommandObjectProcessContinue::DoExecute(), CommandObjectSourceInfo::DoExecute(), CommandObjectSourceList::DoExecute(), CommandObjectStatsDump::DoExecute(), CommandObjectTargetModulesDumpLineTable::DoExecute(), CommandObjectTargetModulesShowUnwind::DoExecute(), lldb_private::CommandObjectDWIMPrint::DoExecute(), CommandObjectThreadReturn::DoExecute(), lldb_private::OptionArgParser::DoToAddress(), CommandObjectTargetSymbolsAdd::DownloadObjectAndSymbolFile(), lldb_private::Address::Dump(), lldb_private::StackFrame::Dump(), DumpCompileUnitLineTable(), CommandObjectSourceInfo::DumpFileLinesInCompUnit(), CommandObjectSourceInfo::DumpLinesForAddress(), CommandObjectSourceInfo::DumpLinesForFile(), CommandObjectSourceInfo::DumpLinesInFunctions(), CommandObjectSourceInfo::DumpLinesInSymbolContexts(), DumpModuleSections(), DumpModuleSymtab(), OutputWriterCLI::DumpSegmentContext(), lldb_private::StackFrame::DumpUsingSettingsFormat(), lldb::SBInstruction::EmulateWithFrame(), lldb_private::UserExpression::Evaluate(), lldb_private::DWARFExpressionList::Evaluate(), lldb_private::DWARFExpression::Evaluate(), lldb::SBFrame::EvaluateExpression(), lldb::SBTarget::EvaluateExpression(), lldb_private::UserExpression::Execute(), lldb_private::FunctionCaller::ExecuteFunction(), lldb::SBFrame::FindRegister(), lldb::SBFrame::FindValue(), lldb::SBFrame::FindVariable(), UnwindAssembly_x86::FirstNonPrologueInsn(), lldb_private::FormatEntity::Format(), lldb_private::IRExecutionUnit::GetArchitecture(), lldb::SBFrame::GetBlock(), lldb_private::IndirectCallEdge::GetCallee(), lldb_private::ValueObjectRegister::GetCompilerTypeImpl(), lldb::SBFrame::GetCompileUnit(), lldb_private::CommandObject::GetDefaultThread(), lldb_private::StopInfoMachException::GetDescription(), lldb::SBFrame::GetDescription(), lldb::SBFrame::GetDescriptionWithFormat(), lldb::SBFrame::GetDisplayFunctionName(), lldb::SBFrame::GetFP(), lldb_private::StackFrame::GetFrameBaseValue(), lldb::SBFrame::GetFrameBlock(), lldb_private::RegisterContextUnwind::GetFullUnwindPlanForFrame(), lldb::SBFrame::GetFunction(), lldb::SBFrame::GetFunctionName(), lldb_private::IRExecutionUnit::GetJITModule(), lldb::SBFrame::GetLineEntry(), lldb::SBFrame::GetModule(), GetModuleConfig(), lldb_private::AppleObjCRuntime::GetObjectDescription(), lldb::SBFrame::GetPC(), lldb::SBFrame::GetPCAddress(), lldb_private::CommandInterpreter::GetPlatform(), lldb_private::ValueObject::GetPointeeData(), lldb::SBFrame::GetRegisters(), ABIMacOSX_arm64::GetReturnValueObjectImpl(), ABISysV_arm64::GetReturnValueObjectImpl(), ABISysV_mips::GetReturnValueObjectImpl(), ABISysV_mips64::GetReturnValueObjectImpl(), ABISysV_ppc::GetReturnValueObjectImpl(), ABISysV_x86_64::GetReturnValueObjectImpl(), ABIWindows_x86_64::GetReturnValueObjectImpl(), lldb::SBFrame::GetSP(), lldb_private::StackFrame::GetStatus(), lldb_private::Thread::GetStatus(), lldb::SBFrame::GetSymbol(), lldb::SBFrame::GetSymbolContext(), CommandObjectSourceInfo::GetSymbolContextsForAddress(), lldb_private::ClangExpressionDeclMap::ParserVars::GetTarget(), lldb_private::Target::GetTargetFromContexts(), lldb_private::ClangExpressionDeclMap::GetTargetInfo(), lldb_private::ClangExpressionSourceCode::GetText(), lldb_private::Value::GetValueAsData(), lldb::SBFrame::GetValueForVariablePath(), lldb::SBFrame::GetVariables(), lldb::SBFrame::GuessLanguage(), CommandObjectTargetModulesSearchPathsInsert::HandleArgumentCompletion(), lldb_private::Target::StopHookScripted::HandleStop(), lldb_private::Target::StopHookCommandLine::HandleStop(), lldb_private::RegisterContextUnwind::InitializeNonZerothFrame(), lldb_private::RegisterContextUnwind::InitializeZerothFrame(), lldb_private::ClangUtilityFunction::Install(), IRInterpreter::Interpret(), lldb::SBFrame::IsInlined(), lldb_private::Thread::JumpToLine(), LookupAddressInModule(), lldb_private::CommandCompletions::ModuleUUIDs(), lldb::SBFrame::operator bool(), lldb::SBThread::operator bool(), lldb_private::CommandObjectDisassemble::CommandOptions::OptionParsingStarting(), lldb_private::ClangUserExpression::Parse(), lldb_private::CommandInterpreter::PreprocessToken(), ReadAddress(), lldb_private::ValueObject::ReadPointedString(), ResolveLoadAddress(), lldb_private::RegisterContextUnwind::SavedLocationForRegister(), lldb_private::ClangUserExpression::ScanContext(), lldb::SBFrame::SetPC(), lldb_private::ClangUserExpression::SetupPersistentState(), lldb_private::AppleThreadPlanStepThroughObjCTrampoline::ShouldStop(), lldb::SBThread::StepOverUntil(), DisassemblerLLVMC::SymbolLookup(), lldb_private::ValueObject::EvaluationPoint::SyncWithProcessState(), lldb_private::ValueObjectDynamicValue::UpdateValue(), lldb_private::ValueObjectMemory::UpdateValue(), lldb_private::ValueObjectVariable::UpdateValue(), lldb_private::ScriptInterpreterLua::WatchpointCallbackFunction(), lldb_private::CommandCompletions::WatchPointIDs(), lldb_private::ClangExpressionDeclMap::WillParse(), and lldb_private::FunctionCaller::WriteFunctionArguments().

◆ GetTargetRef()

Target & ExecutionContext::GetTargetRef ( ) const

Returns a reference to the target object.

Clients should call HasTargetScope(), HasProcessScope(), HasThreadScope(), or HasFrameScope() prior to calling this function to ensure that this ExecutionContext object contains a valid target.

See also
ExecutionContext::HasTargetScope() const
ExecutionContext::HasProcessScope() const
ExecutionContext::HasThreadScope() const
ExecutionContext::HasFrameScope() const

Definition at line 225 of file ExecutionContext.cpp.

References m_target_sp.

Referenced by lldb_private::ClangUserExpression::AddArguments(), CalculateDisass(), lldb_private::AppleObjCRuntimeV2::DynamicClassInfoExtractor::ComputeHelper(), lldb_private::Disassembler::Disassemble(), lldb_private::InstructionList::Dump(), CommandObjectRegisterRead::DumpRegister(), lldb_private::Thread::DumpUsingSettingsFormat(), Evaluate_DW_OP_entry_value(), lldb_private::Debugger::FormatDisassemblerAddress(), lldb_private::AppleObjCRuntimeV2::SharedCacheClassInfoExtractor::GetClassInfoUtilityFunctionImpl(), lldb_private::AppleObjCRuntimeV2::DynamicClassInfoExtractor::GetClassInfoUtilityFunctionImpl(), lldb_private::RegisterContextUnwind::GetFullUnwindPlanForFrame(), lldb_private::Function::GetInstructions(), lldb_private::Symbol::GetInstructions(), lldb_private::Value::GetValueAsData(), lldb_private::ClangDynamicCheckerFunctions::Install(), lldb_private::StopInfoBreakpoint::PerformAction(), lldb_private::StopInfoWatchpoint::PerformAction(), lldb_private::Disassembler::PrintInstructions(), lldb::SBBreakpointCallbackBaton::PrivateBreakpointHitCallback(), lldb_private::AppleObjCTrampolineHandler::SetupDispatchFunction(), lldb_private::AppleGetItemInfoHandler::SetupGetItemInfoFunction(), lldb_private::AppleGetPendingItemsHandler::SetupGetPendingItemsFunction(), lldb_private::AppleGetQueuesHandler::SetupGetQueuesFunction(), and lldb_private::AppleGetThreadItemInfoHandler::SetupGetThreadItemInfoFunction().

◆ GetTargetSP()

const lldb::TargetSP & lldb_private::ExecutionContext::GetTargetSP ( ) const
inline

Get accessor to get the target shared pointer.

The returned shared pointer is not guaranteed to be valid.

Definition at line 454 of file ExecutionContext.h.

References m_target_sp.

Referenced by lldb_private::ValueObject::CreateValueObjectFromExpression(), CommandObjectSourceList::DisplayFunctionSource(), CommandObjectTraceDumpFunctionCalls::DoExecute(), CommandObjectTraceDumpInstructions::DoExecute(), lldb_private::ctf::CommandObjectThreadTraceExportCTF::DoExecute(), lldb_private::Instruction::Dump(), CommandObjectRegisterRead::DumpRegister(), lldb_private::Disassembler::ElideMixedSourceAndDisassemblyLine(), lldb_private::ValueObject::EvaluationPoint::EvaluationPoint(), lldb::SBFrame::GetVariables(), CommandObjectTraceDumpInfo::HandleOneThread(), lldb_private::Thread::JumpToLine(), lldb_private::UserExpression::LockAndCheckContext(), lldb_private::ExecutionContextRef::operator=(), lldb_private::OptionGroupValueObjectDisplay::OptionParsingStarting(), ThreadStepScopeOptionGroup::OptionParsingStarting(), lldb_private::Options::Parse(), lldb_private::OptionGroupFormat::ParserGDBFormatLetter(), lldb_private::ClangExpressionParser::PrepareForExecution(), lldb_private::Disassembler::PrintInstructions(), lldb_private::ClangUtilityFunction::ClangUtilityFunctionHelper::ResetDeclMap(), lldb_private::ClangUserExpression::ClangUserExpressionHelper::ResetDeclMap(), lldb_private::CommandObjectDisassemble::CommandOptions::SetOptionValue(), CommandObjectPlatformProcessList::CommandOptions::SetOptionValue(), lldb_private::CommandOptionsProcessLaunch::SetOptionValue(), lldb_private::Debugger::SetPropertyValue(), lldb_private::Watchpoint::SetupVariableWatchpointDisabler(), lldb_private::CommandCompletions::StopHookIDs(), and lldb_private::ClangExpressionDeclMap::WillParse().

◆ GetThreadPtr()

Thread * lldb_private::ExecutionContext::GetThreadPtr ( ) const
inline

Returns a pointer to the thread object.

The returned pointer might be nullptr. Calling HasThreadScope() or HasFrameScope() can help to pre-validate this pointer so that this accessor can freely be used without having to check for nullptr each time.

See also
ExecutionContext::HasThreadScope() const
ExecutionContext::HasFrameScope() const

Definition at line 399 of file ExecutionContext.h.

References m_thread_sp.

Referenced by CommandObjectTargetSymbolsAdd::AddSymbolsForStack(), lldb_private::CommandObject::CheckRequirements(), lldb_private::StopInfoMachException::DeterminePtrauthFailure(), CommandObjectThreadJump::DoExecute(), CommandObjectThreadPlanDiscard::DoExecute(), CommandObjectFrameDiagnose::DoExecute(), CommandObjectFrameSelect::DoExecute(), CommandObjectFrameRecognizerInfo::DoExecute(), lldb_private::CommandObjectIterateOverThreads::DoExecute(), CommandObjectThreadReturn::DoExecute(), lldb_private::DWARFExpression::Evaluate(), Evaluate_DW_OP_entry_value(), lldb_private::FormatEntity::Format(), lldb_private::CommandObject::GetDefaultThread(), lldb::SBThread::GetDescription(), lldb::SBThread::GetDescriptionWithFormat(), lldb::SBThread::GetFrameAtIndex(), lldb::SBThread::GetInfoItemByPathAsString(), lldb::SBThread::GetName(), lldb::SBThread::GetNumFrames(), lldb_private::AppleObjCRuntime::GetObjectDescription(), ThreadOptionValueProperties::GetPropertyAtIndex(), lldb::SBThread::GetQueue(), lldb::SBThread::GetQueueID(), lldb::SBThread::GetQueueName(), lldb::SBThread::GetSelectedFrame(), lldb::SBThread::GetStatus(), lldb::SBThread::GetStopDescription(), lldb::SBThread::GetStopReason(), lldb::SBThread::GetStopReasonDataAtIndex(), lldb::SBThread::GetStopReasonDataCount(), lldb::SBThread::GetStopReasonExtendedBacktraces(), lldb::SBThread::GetStopReasonExtendedInfoAsJSON(), lldb::SBThread::GetStopReturnValue(), lldb_private::FunctionCaller::GetThreadPlanToCallFunction(), CommandObjectThreadPlanDiscard::HandleArgumentCompletion(), IRInterpreter::Interpret(), lldb_private::REPL::IOHandlerInputComplete(), lldb::SBThread::IsStopped(), lldb::SBThread::IsSuspended(), lldb::SBThread::JumpToLine(), lldb::SBBreakpointCallbackBaton::PrivateBreakpointHitCallback(), lldb_private::process_gdb_remote::GDBRemoteRegisterContext::ReadAllRegisterValues(), lldb_private::process_gdb_remote::GDBRemoteRegisterContext::ReadRegisterBytes(), lldb::SBThread::Resume(), lldb::SBThread::ResumeNewPlan(), lldb::SBThread::ReturnFromFrame(), lldb_private::Process::RunThreadPlan(), lldb::SBThread::RunToAddress(), lldb::SBThread::SetSelectedFrame(), lldb::SBThread::StepInstruction(), lldb::SBThread::StepInto(), lldb::SBThread::StepOut(), lldb::SBThread::StepOutOfFrame(), lldb::SBThread::StepOver(), lldb::SBThread::StepOverUntil(), lldb::SBThread::StepUsingScriptedThreadPlan(), lldb::SBThread::Suspend(), lldb::SBThread::UnwindInnermostExpression(), lldb_private::ClangExpressionDeclMap::WillParse(), lldb_private::process_gdb_remote::GDBRemoteRegisterContext::WriteAllRegisterValues(), and lldb_private::process_gdb_remote::GDBRemoteRegisterContext::WriteRegisterBytes().

◆ GetThreadRef()

Thread & ExecutionContext::GetThreadRef ( ) const

◆ GetThreadSP()

const lldb::ThreadSP & lldb_private::ExecutionContext::GetThreadSP ( ) const
inline

◆ HasFrameScope()

bool ExecutionContext::HasFrameScope ( ) const

Returns true the ExecutionContext object contains a valid target, process, thread and frame.

This function can be called after initializing an ExecutionContext object, and if it returns true, calls to GetTargetPtr(), GetTargetRef(), GetProcessPtr(), GetProcessRef(), GetThreadPtr(), GetThreadRef(), GetFramePtr(), and GetFrameRef() do not need to be checked for validity.

Definition at line 392 of file ExecutionContext.cpp.

References HasThreadScope(), and m_frame_sp.

Referenced by lldb_private::CommandObject::CheckRequirements().

◆ HasProcessScope()

bool ExecutionContext::HasProcessScope ( ) const

◆ HasTargetScope()

bool ExecutionContext::HasTargetScope ( ) const

◆ HasThreadScope()

bool ExecutionContext::HasThreadScope ( ) const

Returns true the ExecutionContext object contains a valid target, process, and thread.

This function can be called after initializing an ExecutionContext object, and if it returns true, calls to GetTargetPtr(), GetTargetRef(), GetProcessPtr(), GetProcessRef(), GetThreadPtr(), and GetThreadRef() do not need to be checked for validity.

Definition at line 388 of file ExecutionContext.cpp.

References HasProcessScope(), and m_thread_sp.

Referenced by lldb_private::CommandObject::CheckRequirements(), lldb_private::StopInfoMachException::DeterminePtrauthFailure(), lldb_private::LLVMUserExpression::DoExecute(), lldb::SBThread::GetDescription(), lldb::SBThread::GetDescriptionWithFormat(), lldb::SBThread::GetExtendedBacktraceThread(), lldb::SBThread::GetFrameAtIndex(), lldb::SBThread::GetInfoItemByPathAsString(), lldb::SBThread::GetName(), lldb::SBThread::GetNumFrames(), lldb::SBThread::GetProcess(), lldb::SBThread::GetQueue(), lldb::SBThread::GetQueueID(), lldb::SBThread::GetQueueName(), lldb::SBThread::GetSelectedFrame(), lldb::SBThread::GetStatus(), lldb::SBThread::GetStopDescription(), lldb::SBThread::GetStopReason(), lldb::SBThread::GetStopReasonDataAtIndex(), lldb::SBThread::GetStopReasonDataCount(), lldb::SBThread::GetStopReasonExtendedBacktraces(), lldb::SBThread::GetStopReasonExtendedInfoAsJSON(), lldb::SBThread::GetStopReturnValue(), CommandObjectThreadPlanDiscard::HandleArgumentCompletion(), HasFrameScope(), lldb::SBThread::IsStopped(), lldb::SBThread::IsSuspended(), lldb::SBThread::JumpToLine(), lldb::SBThread::Resume(), lldb::SBThread::ReturnFromFrame(), lldb_private::ClangExpressionParser::RunStaticInitializers(), lldb::SBThread::RunToAddress(), lldb::SBThread::SetSelectedFrame(), lldb::SBThread::StepInstruction(), lldb::SBThread::StepInto(), lldb::SBThread::StepOut(), lldb::SBThread::StepOutOfFrame(), lldb::SBThread::StepOver(), lldb::SBThread::StepOverUntil(), lldb::SBThread::StepUsingScriptedThreadPlan(), lldb::SBThread::Suspend(), and lldb::SBThread::UnwindInnermostExpression().

◆ operator!=()

bool ExecutionContext::operator!= ( const ExecutionContext rhs) const

Definition at line 376 of file ExecutionContext.cpp.

◆ operator=()

ExecutionContext & ExecutionContext::operator= ( const ExecutionContext rhs)

Definition at line 346 of file ExecutionContext.cpp.

References m_frame_sp, m_process_sp, m_target_sp, and m_thread_sp.

◆ operator==()

bool ExecutionContext::operator== ( const ExecutionContext rhs) const

Definition at line 356 of file ExecutionContext.cpp.

References m_frame_sp, m_process_sp, m_target_sp, and m_thread_sp.

◆ SetContext() [1/4]

void ExecutionContext::SetContext ( const lldb::ProcessSP process_sp)

Definition at line 300 of file ExecutionContext.cpp.

References m_frame_sp, m_process_sp, m_target_sp, and m_thread_sp.

◆ SetContext() [2/4]

void ExecutionContext::SetContext ( const lldb::StackFrameSP frame_sp)

Definition at line 325 of file ExecutionContext.cpp.

References m_frame_sp, m_process_sp, m_target_sp, and m_thread_sp.

◆ SetContext() [3/4]

void ExecutionContext::SetContext ( const lldb::TargetSP target_sp,
bool  get_process 
)

◆ SetContext() [4/4]

void ExecutionContext::SetContext ( const lldb::ThreadSP thread_sp)

Definition at line 310 of file ExecutionContext.cpp.

References m_frame_sp, m_process_sp, m_target_sp, and m_thread_sp.

◆ SetFramePtr()

void ExecutionContext::SetFramePtr ( StackFrame frame)

Set accessor to set only the frame shared pointer from a frame pointer.

Definition at line 282 of file ExecutionContext.cpp.

References m_frame_sp.

Referenced by lldb_private::Process::CalculateExecutionContext(), and lldb_private::StackFrameList::SynthesizeTailCallFrames().

◆ SetFrameSP()

void ExecutionContext::SetFrameSP ( const lldb::StackFrameSP frame_sp)

◆ SetProcessPtr()

void ExecutionContext::SetProcessPtr ( Process process)

Set accessor to set only the process shared pointer from a process pointer.

Definition at line 268 of file ExecutionContext.cpp.

References m_process_sp.

Referenced by lldb_private::Process::CalculateExecutionContext().

◆ SetProcessSP()

void ExecutionContext::SetProcessSP ( const lldb::ProcessSP process_sp)

Set accessor to set only the process shared pointer.

Definition at line 249 of file ExecutionContext.cpp.

References m_process_sp.

Referenced by lldb::SBInstruction::GetComment(), lldb::SBInstruction::GetControlFlowKind(), lldb::SBInstruction::GetMnemonic(), and lldb::SBInstruction::GetOperands().

◆ SetTargetPtr()

void ExecutionContext::SetTargetPtr ( Target target)

Set accessor to set only the target shared pointer from a target pointer.

Definition at line 261 of file ExecutionContext.cpp.

References m_target_sp.

Referenced by lldb_private::Process::CalculateExecutionContext(), and lldb_private::Target::CalculateExecutionContext().

◆ SetTargetSP()

void ExecutionContext::SetTargetSP ( const lldb::TargetSP target_sp)

Set accessor to set only the target shared pointer.

Definition at line 245 of file ExecutionContext.cpp.

References m_target_sp.

◆ SetThreadPtr()

void ExecutionContext::SetThreadPtr ( Thread thread)

Set accessor to set only the thread shared pointer from a thread pointer.

Definition at line 275 of file ExecutionContext.cpp.

References m_thread_sp.

Referenced by lldb_private::Process::CalculateExecutionContext().

◆ SetThreadSP()

void ExecutionContext::SetThreadSP ( const lldb::ThreadSP thread_sp)

Set accessor to set only the thread shared pointer.

Definition at line 253 of file ExecutionContext.cpp.

References m_thread_sp.

Referenced by lldb_private::AppleObjCRuntime::GetObjectDescription().

Member Data Documentation

◆ m_frame_sp

lldb::StackFrameSP lldb_private::ExecutionContext::m_frame_sp
protected

◆ m_process_sp

lldb::ProcessSP lldb_private::ExecutionContext::m_process_sp
protected

◆ m_target_sp

lldb::TargetSP lldb_private::ExecutionContext::m_target_sp
protected

◆ m_thread_sp

lldb::ThreadSP lldb_private::ExecutionContext::m_thread_sp
protected

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