LLDB  mainline
Classes | Public Types | Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Friends | List of all members
lldb_private::Thread Class Referenceabstract

#include <Thread.h>

Inheritance diagram for lldb_private::Thread:
Inheritance graph
[legend]
Collaboration diagram for lldb_private::Thread:
Collaboration graph
[legend]

Classes

class  ThreadEventData
 
struct  ThreadStateCheckpoint
 

Public Types

enum  {
  eBroadcastBitStackChanged = (1 << 0), eBroadcastBitThreadSuspended = (1 << 1), eBroadcastBitThreadResumed = (1 << 2), eBroadcastBitSelectedFrameChanged = (1 << 3),
  eBroadcastBitThreadSelected = (1 << 4)
}
 Broadcaster event bits definitions. More...
 

Public Member Functions

ConstStringGetBroadcasterClass () const override
 
 Thread (Process &process, lldb::tid_t tid, bool use_invalid_index_id=false)
 Constructor. More...
 
 ~Thread () override
 
lldb::ProcessSP GetProcess () const
 
int GetResumeSignal () const
 
void SetResumeSignal (int signal)
 
lldb::StateType GetState () const
 
void SetState (lldb::StateType state)
 
void SetResumeState (lldb::StateType state, bool override_suspend=false)
 Sets the USER resume state for this thread. More...
 
lldb::StateType GetResumeState () const
 Gets the USER resume state for this thread. More...
 
void SetupForResume ()
 
bool ShouldResume (lldb::StateType resume_state)
 
virtual void WillResume (lldb::StateType resume_state)
 
virtual void DidResume ()
 
virtual void DidStop ()
 
virtual void RefreshStateAfterStop ()=0
 
void WillStop ()
 
bool ShouldStop (Event *event_ptr)
 
Vote ShouldReportStop (Event *event_ptr)
 
Vote ShouldReportRun (Event *event_ptr)
 
void Flush ()
 
virtual bool MatchesSpec (const ThreadSpec *spec)
 
lldb::StopInfoSP GetStopInfo ()
 
lldb::StopReason GetStopReason ()
 
bool StopInfoIsUpToDate () const
 
void SetStopInfoToNothing ()
 
bool ThreadStoppedForAReason ()
 
virtual const char * GetInfo ()
 
StructuredData::ObjectSP GetExtendedInfo ()
 Retrieve a dictionary of information about this thread. More...
 
virtual const char * GetName ()
 
virtual void SetName (const char *name)
 
virtual lldb_private::LazyBool GetAssociatedWithLibdispatchQueue ()
 Whether this thread can be associated with a libdispatch queue. More...
 
virtual void SetAssociatedWithLibdispatchQueue (lldb_private::LazyBool associated_with_libdispatch_queue)
 
virtual lldb::queue_id_t GetQueueID ()
 Retrieve the Queue ID for the queue currently using this Thread. More...
 
virtual void SetQueueID (lldb::queue_id_t new_val)
 
virtual const char * GetQueueName ()
 Retrieve the Queue name for the queue currently using this Thread. More...
 
virtual void SetQueueName (const char *name)
 
virtual lldb::QueueKind GetQueueKind ()
 Retrieve the Queue kind for the queue currently using this Thread. More...
 
virtual void SetQueueKind (lldb::QueueKind kind)
 
virtual lldb::QueueSP GetQueue ()
 Retrieve the Queue for this thread, if any. More...
 
virtual lldb::addr_t GetQueueLibdispatchQueueAddress ()
 Retrieve the address of the libdispatch_queue_t struct for queue currently using this Thread. More...
 
virtual void SetQueueLibdispatchQueueAddress (lldb::addr_t dispatch_queue_t)
 
virtual bool ThreadHasQueueInformation () const
 Whether this Thread already has all the Queue information cached or not. More...
 
virtual uint32_t GetStackFrameCount ()
 
virtual lldb::StackFrameSP GetStackFrameAtIndex (uint32_t idx)
 
virtual lldb::StackFrameSP GetFrameWithConcreteFrameIndex (uint32_t unwind_idx)
 
bool DecrementCurrentInlinedDepth ()
 
uint32_t GetCurrentInlinedDepth ()
 
Status ReturnFromFrameWithIndex (uint32_t frame_idx, lldb::ValueObjectSP return_value_sp, bool broadcast=false)
 
Status ReturnFromFrame (lldb::StackFrameSP frame_sp, lldb::ValueObjectSP return_value_sp, bool broadcast=false)
 
Status JumpToLine (const FileSpec &file, uint32_t line, bool can_leave_function, std::string *warnings=nullptr)
 
virtual lldb::StackFrameSP GetFrameWithStackID (const StackID &stack_id)
 
uint32_t GetSelectedFrameIndex ()
 
lldb::StackFrameSP GetSelectedFrame ()
 
uint32_t SetSelectedFrame (lldb_private::StackFrame *frame, bool broadcast=false)
 
bool SetSelectedFrameByIndex (uint32_t frame_idx, bool broadcast=false)
 
bool SetSelectedFrameByIndexNoisily (uint32_t frame_idx, Stream &output_stream)
 
void SetDefaultFileAndLineToSelectedFrame ()
 
virtual lldb::RegisterContextSP GetRegisterContext ()=0
 
virtual lldb::RegisterContextSP CreateRegisterContextForFrame (StackFrame *frame)=0
 
virtual void ClearStackFrames ()
 
virtual bool SetBackingThread (const lldb::ThreadSP &thread_sp)
 
virtual lldb::ThreadSP GetBackingThread () const
 
virtual void ClearBackingThread ()
 
void DumpUsingSettingsFormat (Stream &strm, uint32_t frame_idx, bool stop_format)
 
bool GetDescription (Stream &s, lldb::DescriptionLevel level, bool print_json_thread, bool print_json_stopinfo)
 
virtual Status StepIn (bool source_step, LazyBool step_in_avoids_code_without_debug_info=eLazyBoolCalculate, LazyBool step_out_avoids_code_without_debug_info=eLazyBoolCalculate)
 Default implementation for stepping into. More...
 
virtual Status StepOver (bool source_step, LazyBool step_out_avoids_code_without_debug_info=eLazyBoolCalculate)
 Default implementation for stepping over. More...
 
virtual Status StepOut ()
 Default implementation for stepping out. More...
 
virtual lldb::addr_t GetThreadPointer ()
 Retrieves the per-thread data area. More...
 
virtual lldb::addr_t GetThreadLocalData (const lldb::ModuleSP module, lldb::addr_t tls_file_addr)
 Retrieves the per-module TLS block for a thread. More...
 
virtual bool SafeToCallFunctions ()
 Check whether this thread is safe to run functions. More...
 
virtual lldb::ThreadPlanSP QueueFundamentalPlan (bool abort_other_plans)
 Queues the base plan for a thread. More...
 
virtual lldb::ThreadPlanSP QueueThreadPlanForStepSingleInstruction (bool step_over, bool abort_other_plans, bool stop_other_threads, Status &status)
 Queues the plan used to step one instruction from the current PC of thread. More...
 
virtual lldb::ThreadPlanSP QueueThreadPlanForStepOverRange (bool abort_other_plans, const AddressRange &range, const SymbolContext &addr_context, lldb::RunMode stop_other_threads, Status &status, LazyBool step_out_avoids_code_without_debug_info=eLazyBoolCalculate)
 Queues the plan used to step through an address range, stepping over function calls. More...
 
virtual lldb::ThreadPlanSP QueueThreadPlanForStepOverRange (bool abort_other_plans, const LineEntry &line_entry, const SymbolContext &addr_context, lldb::RunMode stop_other_threads, Status &status, LazyBool step_out_avoids_code_without_debug_info=eLazyBoolCalculate)
 
virtual lldb::ThreadPlanSP QueueThreadPlanForStepInRange (bool abort_other_plans, const AddressRange &range, const SymbolContext &addr_context, const char *step_in_target, lldb::RunMode stop_other_threads, Status &status, LazyBool step_in_avoids_code_without_debug_info=eLazyBoolCalculate, LazyBool step_out_avoids_code_without_debug_info=eLazyBoolCalculate)
 Queues the plan used to step through an address range, stepping into functions. More...
 
virtual lldb::ThreadPlanSP QueueThreadPlanForStepInRange (bool abort_other_plans, const LineEntry &line_entry, const SymbolContext &addr_context, const char *step_in_target, lldb::RunMode stop_other_threads, Status &status, LazyBool step_in_avoids_code_without_debug_info=eLazyBoolCalculate, LazyBool step_out_avoids_code_without_debug_info=eLazyBoolCalculate)
 
virtual lldb::ThreadPlanSP QueueThreadPlanForStepOut (bool abort_other_plans, SymbolContext *addr_context, bool first_insn, bool stop_other_threads, Vote stop_vote, Vote run_vote, uint32_t frame_idx, Status &status, LazyBool step_out_avoids_code_without_debug_info=eLazyBoolCalculate)
 Queue the plan used to step out of the function at the current PC of thread. More...
 
virtual lldb::ThreadPlanSP QueueThreadPlanForStepOutNoShouldStop (bool abort_other_plans, SymbolContext *addr_context, bool first_insn, bool stop_other_threads, Vote stop_vote, Vote run_vote, uint32_t frame_idx, Status &status, bool continue_to_next_branch=false)
 Queue the plan used to step out of the function at the current PC of a thread. More...
 
virtual lldb::ThreadPlanSP QueueThreadPlanForStepThrough (StackID &return_stack_id, bool abort_other_plans, bool stop_other_threads, Status &status)
 Gets the plan used to step through the code that steps from a function call site at the current PC into the actual function call. More...
 
virtual lldb::ThreadPlanSP QueueThreadPlanForRunToAddress (bool abort_other_plans, Address &target_addr, bool stop_other_threads, Status &status)
 Gets the plan used to continue from the current PC. More...
 
virtual lldb::ThreadPlanSP QueueThreadPlanForStepUntil (bool abort_other_plans, lldb::addr_t *address_list, size_t num_addresses, bool stop_others, uint32_t frame_idx, Status &status)
 
virtual lldb::ThreadPlanSP QueueThreadPlanForStepScripted (bool abort_other_plans, const char *class_name, bool stop_other_threads, Status &status)
 
ThreadPlanGetCurrentPlan ()
 Gets the plan which will execute next on the plan stack. More...
 
Status UnwindInnermostExpression ()
 Unwinds the thread stack for the innermost expression plan currently on the thread plan stack. More...
 
lldb::ThreadPlanSP GetCompletedPlan ()
 Gets the outer-most plan that was popped off the plan stack in the most recent stop. More...
 
lldb::ValueObjectSP GetReturnValueObject ()
 Gets the outer-most return value from the completed plans. More...
 
lldb::ExpressionVariableSP GetExpressionVariable ()
 Gets the outer-most expression variable from the completed plans. More...
 
bool IsThreadPlanDone (ThreadPlan *plan)
 Checks whether the given plan is in the completed plans for this stop. More...
 
bool WasThreadPlanDiscarded (ThreadPlan *plan)
 Checks whether the given plan is in the discarded plans for this stop. More...
 
bool CompletedPlanOverridesBreakpoint ()
 Check if we have completed plan to override breakpoint stop reason. More...
 
Status QueueThreadPlan (lldb::ThreadPlanSP &plan_sp, bool abort_other_plans)
 Queues a generic thread plan. More...
 
void DiscardThreadPlans (bool force)
 Discards the plans queued on the plan stack of the current thread. More...
 
void DiscardThreadPlansUpToPlan (lldb::ThreadPlanSP &up_to_plan_sp)
 Discards the plans queued on the plan stack of the current thread up to and including up_to_plan_sp. More...
 
void DiscardThreadPlansUpToPlan (ThreadPlan *up_to_plan_ptr)
 
bool DiscardUserThreadPlansUpToIndex (uint32_t thread_index)
 Discards the plans queued on the plan stack of the current thread up to and including the plan in that matches thread_index counting only the non-Private plans. More...
 
void DumpThreadPlans (Stream *s, lldb::DescriptionLevel desc_level=lldb::eDescriptionLevelVerbose, bool include_internal=true, bool ignore_boring=false) const
 Prints the current plan stack. More...
 
virtual bool CheckpointThreadState (ThreadStateCheckpoint &saved_state)
 
virtual bool RestoreRegisterStateFromCheckpoint (ThreadStateCheckpoint &saved_state)
 
virtual bool RestoreThreadStateFromCheckpoint (ThreadStateCheckpoint &saved_state)
 
void EnableTracer (bool value, bool single_step)
 
void SetTracer (lldb::ThreadPlanTracerSP &tracer_sp)
 
uint32_t GetIndexID () const
 
virtual uint32_t GetExtendedBacktraceOriginatingIndexID ()
 
virtual lldb::user_id_t GetProtocolID () const
 
lldb::TargetSP CalculateTarget () override
 
lldb::ProcessSP CalculateProcess () override
 
lldb::ThreadSP CalculateThread () override
 
lldb::StackFrameSP CalculateStackFrame () override
 
void CalculateExecutionContext (ExecutionContext &exe_ctx) override
 Reconstruct the object's execution context into sc. More...
 
lldb::StackFrameSP GetStackFrameSPForStackFramePtr (StackFrame *stack_frame_ptr)
 
size_t GetStatus (Stream &strm, uint32_t start_frame, uint32_t num_frames, uint32_t num_frames_with_source, bool stop_format, bool only_stacks=false)
 
size_t GetStackFrameStatus (Stream &strm, uint32_t first_frame, uint32_t num_frames, bool show_frame_info, uint32_t num_frames_with_source)
 
bool IsValid () const
 
virtual lldb::StopInfoSP GetPrivateStopInfo ()
 
virtual bool CalculateStopInfo ()=0
 
lldb::StateType GetTemporaryResumeState () const
 
void SetStopInfo (const lldb::StopInfoSP &stop_info_sp)
 
void ResetStopInfo ()
 
void SetShouldReportStop (Vote vote)
 
virtual void SetExtendedBacktraceToken (uint64_t token)
 Sets the extended backtrace token for this thread. More...
 
virtual uint64_t GetExtendedBacktraceToken ()
 Gets the extended backtrace token for this thread. More...
 
lldb::ValueObjectSP GetCurrentException ()
 
lldb::ThreadSP GetCurrentExceptionBacktrace ()
 
- Public Member Functions inherited from lldb_private::ThreadProperties
 ThreadProperties (bool is_global)
 
 ~ThreadProperties () override
 
const RegularExpressionGetSymbolsToAvoidRegexp ()
 The regular expression returned determines symbols that this thread won't stop in during "step-in" operations. More...
 
FileSpecList GetLibrariesToAvoid () const
 
bool GetTraceEnabledState () const
 
bool GetStepInAvoidsNoDebug () const
 
bool GetStepOutAvoidsNoDebug () const
 
uint64_t GetMaxBacktraceDepth () const
 
- Public Member Functions inherited from lldb_private::Properties
 Properties ()
 
 Properties (const lldb::OptionValuePropertiesSP &collection_sp)
 
virtual ~Properties ()
 
virtual lldb::OptionValuePropertiesSP GetValueProperties () const
 
virtual lldb::OptionValueSP GetPropertyValue (const ExecutionContext *exe_ctx, llvm::StringRef property_path, bool will_modify, Status &error) const
 
virtual Status SetPropertyValue (const ExecutionContext *exe_ctx, VarSetOperationType op, llvm::StringRef property_path, llvm::StringRef value)
 
virtual Status DumpPropertyValue (const ExecutionContext *exe_ctx, Stream &strm, llvm::StringRef property_path, uint32_t dump_mask)
 
virtual void DumpAllPropertyValues (const ExecutionContext *exe_ctx, Stream &strm, uint32_t dump_mask)
 
virtual void DumpAllDescriptions (CommandInterpreter &interpreter, Stream &strm) const
 
size_t Apropos (llvm::StringRef keyword, std::vector< const Property *> &matching_properties) const
 
lldb::OptionValuePropertiesSP GetSubProperty (const ExecutionContext *exe_ctx, ConstString name)
 
- Public Member Functions inherited from lldb_private::UserID
 UserID (lldb::user_id_t uid=LLDB_INVALID_UID)
 Construct with optional user ID. More...
 
 ~UserID ()
 Destructor. More...
 
void Clear ()
 Clears the object state. More...
 
lldb::user_id_t GetID () const
 Get accessor for the user ID. More...
 
void SetID (lldb::user_id_t uid)
 Set accessor for the user ID. More...
 
- Public Member Functions inherited from lldb_private::ExecutionContextScope
virtual ~ExecutionContextScope ()
 
- Public Member Functions inherited from lldb_private::Broadcaster
 Broadcaster (lldb::BroadcasterManagerSP manager_sp, const char *name)
 Construct with a broadcaster with a name. More...
 
virtual ~Broadcaster ()
 Destructor. More...
 
void CheckInWithManager ()
 
void BroadcastEvent (lldb::EventSP &event_sp)
 Broadcast an event which has no associated data. More...
 
void BroadcastEventIfUnique (lldb::EventSP &event_sp)
 
void BroadcastEvent (uint32_t event_type, const lldb::EventDataSP &event_data_sp)
 
void BroadcastEvent (uint32_t event_type, EventData *event_data=nullptr)
 
void BroadcastEventIfUnique (uint32_t event_type, EventData *event_data=nullptr)
 
void Clear ()
 
virtual void AddInitialEventsToListener (const lldb::ListenerSP &listener_sp, uint32_t requested_events)
 
uint32_t AddListener (const lldb::ListenerSP &listener_sp, uint32_t event_mask)
 Listen for any events specified by event_mask. More...
 
ConstString GetBroadcasterName ()
 Get the NULL terminated C string name of this Broadcaster object. More...
 
bool GetEventNames (Stream &s, const uint32_t event_mask, bool prefix_with_broadcaster_name) const
 Get the event name(s) for one or more event bits. More...
 
void SetEventName (uint32_t event_mask, const char *name)
 Set the name for an event bit. More...
 
const char * GetEventName (uint32_t event_mask) const
 
bool EventTypeHasListeners (uint32_t event_type)
 
bool RemoveListener (const lldb::ListenerSP &listener_sp, uint32_t event_mask=UINT32_MAX)
 Removes a Listener from this broadcasters list and frees the event bits specified by event_mask that were previously acquired by listener (assuming listener was listening to this object) for other listener objects to use. More...
 
bool HijackBroadcaster (const lldb::ListenerSP &listener_sp, uint32_t event_mask=UINT32_MAX)
 Provides a simple mechanism to temporarily redirect events from broadcaster. More...
 
bool IsHijackedForEvent (uint32_t event_mask)
 
void RestoreBroadcaster ()
 Restore the state of the Broadcaster from a previous hijack attempt. More...
 
lldb::BroadcasterManagerSP GetManager ()
 

Static Public Member Functions

static ConstStringGetStaticBroadcasterClass ()
 
static void SettingsInitialize ()
 
static void SettingsTerminate ()
 
static const ThreadPropertiesSPGetGlobalProperties ()
 
static const char * RunModeAsCString (lldb::RunMode mode)
 
static const char * StopReasonAsCString (lldb::StopReason reason)
 
- Static Public Member Functions inherited from lldb_private::Properties
static const char * GetExperimentalSettingsName ()
 
static bool IsSettingExperimental (llvm::StringRef setting)
 

Protected Types

typedef std::vector< lldb::ThreadPlanSP > plan_stack
 
- Protected Types inherited from lldb_private::Broadcaster
typedef std::shared_ptr< BroadcasterImplBroadcasterImplSP
 
typedef std::weak_ptr< BroadcasterImplBroadcasterImplWP
 

Protected Member Functions

virtual void DestroyThread ()
 
void PushPlan (lldb::ThreadPlanSP &plan_sp)
 
void PopPlan ()
 
void DiscardPlan ()
 
ThreadPlanGetPreviousPlan (ThreadPlan *plan)
 
virtual lldb_private::UnwindGetUnwinder ()
 
virtual bool IsStillAtLastBreakpointHit ()
 
virtual bool IsOperatingSystemPluginThread () const
 
virtual lldb_private::StructuredData::ObjectSP FetchThreadExtendedInfo ()
 
lldb::StackFrameListSP GetStackFrameList ()
 
void SetTemporaryResumeState (lldb::StateType new_state)
 
void FunctionOptimizationWarning (lldb_private::StackFrame *frame)
 
- Protected Member Functions inherited from lldb_private::Broadcaster
BroadcasterImplSP GetBroadcasterImpl ()
 
const char * GetHijackingListenerName ()
 

Protected Attributes

lldb::ProcessWP m_process_wp
 The process that owns this thread. More...
 
lldb::StopInfoSP m_stop_info_sp
 The private stop reason for this thread. More...
 
uint32_t m_stop_info_stop_id
 
uint32_t m_stop_info_override_stop_id
 
const uint32_t m_index_id
 A unique 1 based index assigned to each thread for easy UI/command line access. More...
 
lldb::RegisterContextSP m_reg_context_sp
 The register context for this thread's current register state. More...
 
lldb::StateType m_state
 The state of our process. More...
 
std::recursive_mutex m_state_mutex
 Multithreaded protection for m_state. More...
 
plan_stack m_plan_stack
 The stack of plans this thread is executing. More...
 
plan_stack m_completed_plan_stack
 Plans that have been completed by this stop. More...
 
plan_stack m_discarded_plan_stack
 Plans that have been discarded by this stop. More...
 
std::recursive_mutex m_frame_mutex
 Multithreaded protection for m_state. More...
 
lldb::StackFrameListSP m_curr_frames_sp
 The stack frames that get lazily populated after a thread stops. More...
 
lldb::StackFrameListSP m_prev_frames_sp
 The previous stack frames from the last time this thread stopped. More...
 
int m_resume_signal
 The signal that should be used when continuing this thread. More...
 
lldb::StateType m_resume_state
 This state is used to force a thread to be suspended from outside the ThreadPlan logic. More...
 
lldb::StateType m_temporary_resume_state
 This state records what the thread was told to do by the thread plan logic for the current resume. More...
 
std::unique_ptr< lldb_private::Unwindm_unwinder_up
 It gets set in Thread::ShouldResume. More...
 
bool m_destroy_called
 
LazyBool m_override_should_notify
 
- Protected Attributes inherited from lldb_private::Properties
lldb::OptionValuePropertiesSP m_collection_sp
 
- Protected Attributes inherited from lldb_private::UserID
lldb::user_id_t m_uid
 The user ID that uniquely identifies an object. More...
 

Friends

class ThreadPlan
 
class ThreadList
 
class ThreadEventData
 
class StackFrameList
 
class StackFrame
 
class OperatingSystem
 

Detailed Description

Definition at line 59 of file Thread.h.

Member Typedef Documentation

◆ plan_stack

typedef std::vector<lldb::ThreadPlanSP> lldb_private::Thread::plan_stack
protected

Definition at line 1180 of file Thread.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Broadcaster event bits definitions.

Enumerator
eBroadcastBitStackChanged 
eBroadcastBitThreadSuspended 
eBroadcastBitThreadResumed 
eBroadcastBitSelectedFrameChanged 
eBroadcastBitThreadSelected 

Definition at line 66 of file Thread.h.

Constructor & Destructor Documentation

◆ Thread()

Thread::Thread ( Process process,
lldb::tid_t  tid,
bool  use_invalid_index_id = false 
)

Constructor.

Parameters
[in]process
[in]tid
[in]use_invalid_index_idOptional parameter, defaults to false. The only subclass that is likely to set use_invalid_index_id == true is the HistoryThread class. In that case, the Thread we are constructing represents a thread from earlier in the program execution. We may have the tid of the original thread that they represent but we don't want to reuse the IndexID of that thread, or create a new one. If a client wants to know the original thread's IndexID, they should use Thread::GetExtendedBacktraceOriginatingIndexID().

Definition at line 242 of file Thread.cpp.

References lldb_private::Broadcaster::CheckInWithManager(), lldb_private::UserID::GetID(), lldb_private::GetLogIfAllCategoriesSet(), LIBLLDB_LOG_OBJECT, lldb_private::Log::Printf(), and QueueFundamentalPlan().

◆ ~Thread()

Thread::~Thread ( )
override

If you hit this assert, it means your derived class forgot to call DoDestroy in its destructor.

Definition at line 268 of file Thread.cpp.

References lldb_private::UserID::GetID(), lldb_private::GetLogIfAllCategoriesSet(), LIBLLDB_LOG_OBJECT, m_destroy_called, and lldb_private::Log::Printf().

Member Function Documentation

◆ CalculateExecutionContext()

void Thread::CalculateExecutionContext ( ExecutionContext exe_ctx)
overridevirtual

Reconstruct the object's execution context into sc.

The object should fill in as much of the ExecutionContextScope as it can so function calls that require a execution context can be made for the given object.

Parameters
[out]exe_ctxA reference to an execution context object that gets filled in.

Implements lldb_private::ExecutionContextScope.

Definition at line 1598 of file Thread.cpp.

References lldb_private::ExecutionContext::SetContext().

Referenced by lldb_private::RegisterContext::CalculateExecutionContext(), lldb_private::AppleThreadPlanStepThroughObjCTrampoline::DidPush(), lldb_private::AppleGetQueuesHandler::GetCurrentQueues(), lldb_private::AppleGetItemInfoHandler::GetItemInfo(), lldb_private::AppleGetPendingItemsHandler::GetPendingItems(), lldb_private::AppleGetThreadItemInfoHandler::GetThreadItemInfo(), and lldb_private::AppleThreadPlanStepThroughObjCTrampoline::ShouldStop().

◆ CalculateProcess()

ProcessSP Thread::CalculateProcess ( )
overridevirtual

◆ CalculateStackFrame()

StackFrameSP Thread::CalculateStackFrame ( )
overridevirtual

Implements lldb_private::ExecutionContextScope.

Definition at line 1596 of file Thread.cpp.

◆ CalculateStopInfo()

virtual bool lldb_private::Thread::CalculateStopInfo ( )
pure virtual

◆ CalculateTarget()

TargetSP Thread::CalculateTarget ( )
overridevirtual

Implements lldb_private::ExecutionContextScope.

Definition at line 1584 of file Thread.cpp.

References GetProcess().

Referenced by lldb_private::RegisterContext::CalculateTarget(), lldb_private::ThreadPlanStepUntil::DoWillResume(), lldb_private::ThreadPlanStepOut::DoWillResume(), lldb_private::UnwindPlan::Dump(), lldb_private::ThreadPlanStepRange::DumpRanges(), lldb_private::AppleGetQueuesHandler::GetCurrentQueues(), lldb_private::ThreadPlanRunToAddress::GetDescription(), lldb_private::ThreadPlanCallFunction::GetDescription(), lldb_private::ThreadPlanCallFunctionUsingABI::GetDescription(), lldb_private::StackFrameList::GetFramesUpTo(), lldb_private::AppleGetItemInfoHandler::GetItemInfo(), lldb_private::ThreadPlanTracer::GetLogStream(), lldb_private::RegisterContext::GetPC(), lldb_private::AppleGetPendingItemsHandler::GetPendingItems(), lldb_private::ABI::GetReturnValueObject(), lldb_private::AppleObjCTrampolineHandler::GetStepThroughDispatchPlan(), lldb_private::DynamicLoaderDarwin::GetStepThroughTrampolinePlan(), lldb_private::CPPLanguageRuntime::GetStepThroughTrampolinePlan(), lldb_private::AppleGetThreadItemInfoHandler::GetThreadItemInfo(), GetUnwinder(), lldb_private::ThreadPlanStepRange::InRange(), lldb_private::ThreadPlanStepRange::InSymbol(), lldb_private::ThreadPlanStepInstruction::IsPlanStale(), lldb_private::ThreadPlanStepRange::IsPlanStale(), lldb_private::ThreadPlanStepOut::MischiefManaged(), lldb_private::ThreadPlanRunToAddress::MischiefManaged(), ABISysV_arm::PrepareTrivialCall(), ABIMacOSX_arm::PrepareTrivialCall(), lldb_private::RegisterContextLLDB::RegisterContextLLDB(), lldb_private::StackFrameList::SetDefaultFileAndLineToSelectedFrame(), lldb_private::ThreadPlanRunToAddress::SetInitialBreakpoints(), lldb_private::RegisterContext::SetPC(), lldb_private::ThreadPlanStepInstruction::ShouldStop(), lldb_private::ThreadPlanStepOverRange::ShouldStop(), lldb_private::ThreadPlanStepInRange::ShouldStop(), lldb_private::ThreadPlanAssemblyTracer::ThreadPlanAssemblyTracer(), lldb_private::ThreadPlanRunToAddress::ThreadPlanRunToAddress(), lldb_private::ThreadPlanStepOut::ThreadPlanStepOut(), lldb_private::ThreadPlanStepThrough::ThreadPlanStepThrough(), lldb_private::ThreadPlanStepUntil::ThreadPlanStepUntil(), lldb_private::ThreadPlanStepUntil::WillStop(), lldb_private::ThreadPlanStepOut::WillStop(), lldb_private::ThreadPlanRunToAddress::~ThreadPlanRunToAddress(), lldb_private::ThreadPlanStepOut::~ThreadPlanStepOut(), and lldb_private::ThreadPlanStepUntil::~ThreadPlanStepUntil().

◆ CalculateThread()

ThreadSP Thread::CalculateThread ( )
overridevirtual

Implements lldb_private::ExecutionContextScope.

Definition at line 1594 of file Thread.cpp.

◆ CheckpointThreadState()

bool Thread::CheckpointThreadState ( ThreadStateCheckpoint saved_state)
virtual

◆ ClearBackingThread()

virtual void lldb_private::Thread::ClearBackingThread ( )
inlinevirtual

Reimplemented in ThreadMemory.

Definition at line 458 of file Thread.h.

References lldb::eDescriptionLevelVerbose, and lldb_private::eLazyBoolCalculate.

◆ ClearStackFrames()

void Thread::ClearStackFrames ( )
virtual

◆ CompletedPlanOverridesBreakpoint()

bool Thread::CompletedPlanOverridesBreakpoint ( )

Check if we have completed plan to override breakpoint stop reason.

Returns
Returns true if completed plan stack is not empty false otherwise.

Definition at line 1153 of file Thread.cpp.

References m_completed_plan_stack.

◆ CreateRegisterContextForFrame()

virtual lldb::RegisterContextSP lldb_private::Thread::CreateRegisterContextForFrame ( StackFrame frame)
pure virtual

◆ DecrementCurrentInlinedDepth()

bool lldb_private::Thread::DecrementCurrentInlinedDepth ( )
inline

◆ DestroyThread()

void Thread::DestroyThread ( )
protectedvirtual

◆ DidResume()

void Thread::DidResume ( )
virtual

Reimplemented in ThreadMemory.

Definition at line 712 of file Thread.cpp.

References LLDB_INVALID_SIGNAL_NUMBER, and SetResumeSignal().

◆ DidStop()

void Thread::DidStop ( )
virtual

Reimplemented in FreeBSDThread, and lldb_private::TargetThreadWindows.

Definition at line 714 of file Thread.cpp.

References lldb::eStateStopped, and SetState().

◆ DiscardPlan()

void Thread::DiscardPlan ( )
protected

◆ DiscardThreadPlans()

void Thread::DiscardThreadPlans ( bool  force)

Discards the plans queued on the plan stack of the current thread.

This is arbitrated by the "Master" ThreadPlans, using the "OkayToDiscard" call.

Definition at line 1285 of file Thread.cpp.

References DiscardPlan(), lldb_private::UserID::GetID(), lldb_private::GetLogIfAllCategoriesSet(), lldb_private::ThreadPlan::IsBasePlan(), LIBLLDB_LOG_STEP, m_plan_stack, and lldb_private::Log::Printf().

Referenced by QueueThreadPlan(), ReturnFromFrame(), and lldb_private::ThreadPlanBase::ShouldStop().

◆ DiscardThreadPlansUpToPlan() [1/2]

void Thread::DiscardThreadPlansUpToPlan ( lldb::ThreadPlanSP &  up_to_plan_sp)

Discards the plans queued on the plan stack of the current thread up to and including up_to_plan_sp.

Definition at line 1249 of file Thread.cpp.

Referenced by DiscardUserThreadPlansUpToIndex(), QueueThreadPlan(), lldb_private::Process::RunThreadPlan(), and UnwindInnermostExpression().

◆ DiscardThreadPlansUpToPlan() [2/2]

void Thread::DiscardThreadPlansUpToPlan ( ThreadPlan up_to_plan_ptr)

◆ DiscardUserThreadPlansUpToIndex()

bool Thread::DiscardUserThreadPlansUpToIndex ( uint32_t  thread_index)

Discards the plans queued on the plan stack of the current thread up to and including the plan in that matches thread_index counting only the non-Private plans.

Parameters
[in]up_to_plan_spDiscard all plans up to and including this user plan given by this index.
Returns
true if there was a thread plan with that user index, false otherwise.

Definition at line 1225 of file Thread.cpp.

References DiscardThreadPlansUpToPlan(), and m_plan_stack.

Referenced by CommandObjectThreadPlanDiscard::DoExecute().

◆ DumpThreadPlans()

void Thread::DumpThreadPlans ( Stream s,
lldb::DescriptionLevel  desc_level = lldb::eDescriptionLevelVerbose,
bool  include_internal = true,
bool  ignore_boring = false 
) const

◆ DumpUsingSettingsFormat()

void Thread::DumpUsingSettingsFormat ( Stream strm,
uint32_t  frame_idx,
bool  stop_format 
)

◆ EnableTracer()

void Thread::EnableTracer ( bool  value,
bool  single_step 
)

Definition at line 1209 of file Thread.cpp.

References m_plan_stack.

◆ FetchThreadExtendedInfo()

virtual lldb_private::StructuredData::ObjectSP lldb_private::Thread::FetchThreadExtendedInfo ( )
inlineprotectedvirtual

Reimplemented in lldb_private::process_gdb_remote::ThreadGDBRemote.

Definition at line 1196 of file Thread.h.

◆ Flush()

void Thread::Flush ( )

Definition at line 2087 of file Thread.cpp.

References ClearStackFrames(), and m_reg_context_sp.

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

◆ FunctionOptimizationWarning()

void Thread::FunctionOptimizationWarning ( lldb_private::StackFrame frame)
protected

◆ GetAssociatedWithLibdispatchQueue()

virtual lldb_private::LazyBool lldb_private::Thread::GetAssociatedWithLibdispatchQueue ( )
inlinevirtual

Whether this thread can be associated with a libdispatch queue.

The Thread may know if it is associated with a libdispatch queue, it may know definitively that it is NOT associated with a libdispatch queue, or it may be unknown whether it is associated with a libdispatch queue.

Returns
eLazyBoolNo if this thread is definitely not associated with a libdispatch queue (e.g. on a non-Darwin system where GCD aka libdispatch is not available).

eLazyBoolYes this thread is associated with a libdispatch queue.

eLazyBoolCalculate this thread may be associated with a libdispatch queue but the thread doesn't know one way or the other.

Reimplemented in lldb_private::process_gdb_remote::ThreadGDBRemote.

Definition at line 297 of file Thread.h.

References lldb_private::eLazyBoolNo.

◆ GetBackingThread()

virtual lldb::ThreadSP lldb_private::Thread::GetBackingThread ( ) const
inlinevirtual

Reimplemented in ThreadMemory.

Definition at line 456 of file Thread.h.

Referenced by ShouldResume().

◆ GetBroadcasterClass()

ConstString& lldb_private::Thread::GetBroadcasterClass ( ) const
inlineoverridevirtual

Reimplemented from lldb_private::Broadcaster.

Definition at line 76 of file Thread.h.

◆ GetCompletedPlan()

ThreadPlanSP Thread::GetCompletedPlan ( )

Gets the outer-most plan that was popped off the plan stack in the most recent stop.

Useful for printing the stop reason accurately.

Returns
A pointer to the last completed plan.

Definition at line 1095 of file Thread.cpp.

References m_completed_plan_stack.

Referenced by GetStopInfo(), and HandleStoppedEvent().

◆ GetCurrentException()

ValueObjectSP Thread::GetCurrentException ( )

Definition at line 2206 of file Thread.cpp.

References GetProcess(), and GetStackFrameAtIndex().

Referenced by GetCurrentExceptionBacktrace().

◆ GetCurrentExceptionBacktrace()

ThreadSP Thread::GetCurrentExceptionBacktrace ( )

Definition at line 2222 of file Thread.cpp.

References GetCurrentException(), and GetProcess().

◆ GetCurrentInlinedDepth()

uint32_t lldb_private::Thread::GetCurrentInlinedDepth ( )
inline

◆ GetCurrentPlan()

ThreadPlan * Thread::GetCurrentPlan ( )

Gets the plan which will execute next on the plan stack.

Returns
A pointer to the next executed plan.

Definition at line 1089 of file Thread.cpp.

References m_plan_stack.

Referenced by DiscardThreadPlansUpToPlan(), GetPreviousPlan(), GetPrivateStopInfo(), SetupForResume(), ShouldReportRun(), ShouldReportStop(), ShouldResume(), ShouldStop(), and WillStop().

◆ GetDescription()

bool Thread::GetDescription ( Stream s,
lldb::DescriptionLevel  level,
bool  print_json_thread,
bool  print_json_stopinfo 
)

◆ GetExpressionVariable()

ExpressionVariableSP Thread::GetExpressionVariable ( )

Gets the outer-most expression variable from the completed plans.

Returns
A ExpressionVariableSP, either empty if there is no plan completed an expression during the current stop or the expression variable that was made for the completed expression.

Definition at line 1120 of file Thread.cpp.

References m_completed_plan_stack.

Referenced by GetStopInfo().

◆ GetExtendedBacktraceOriginatingIndexID()

virtual uint32_t lldb_private::Thread::GetExtendedBacktraceOriginatingIndexID ( )
inlinevirtual

Reimplemented in lldb_private::HistoryThread.

Definition at line 1052 of file Thread.h.

◆ GetExtendedBacktraceToken()

virtual uint64_t lldb_private::Thread::GetExtendedBacktraceToken ( )
inlinevirtual

Gets the extended backtrace token for this thread.

Some Thread subclasses may maintain a token to help with providing an extended backtrace. The SystemRuntime plugin will set/request this.

Returns
The token needed by the SystemRuntime to create an extended backtrace. LLDB_INVALID_ADDRESS is returned if no token is available.

Reimplemented in lldb_private::HistoryThread.

Definition at line 1153 of file Thread.h.

References LLDB_INVALID_ADDRESS.

◆ GetExtendedInfo()

StructuredData::ObjectSP lldb_private::Thread::GetExtendedInfo ( )
inline

Retrieve a dictionary of information about this thread.

On Mac OS X systems there may be voucher information. The top level dictionary returned will have an "activity" key and the value of the activity is a dictionary. Keys in that dictionary will be "name" and "id", among others. There may also be "trace_messages" (an array) with each entry in that array being a dictionary (keys include "message" with the text of the trace message).

Definition at line 269 of file Thread.h.

Referenced by lldb_private::FormatEntity::Format(), GetDescription(), and lldb::SBThread::GetInfoItemByPathAsString().

◆ GetFrameWithConcreteFrameIndex()

lldb::StackFrameSP Thread::GetFrameWithConcreteFrameIndex ( uint32_t  unwind_idx)
virtual

Definition at line 1632 of file Thread.cpp.

References GetStackFrameList().

Referenced by lldb_private::RegisterContext::SetPC().

◆ GetFrameWithStackID()

virtual lldb::StackFrameSP lldb_private::Thread::GetFrameWithStackID ( const StackID stack_id)
inlinevirtual

◆ GetGlobalProperties()

const ThreadPropertiesSP & Thread::GetGlobalProperties ( )
static

◆ GetIndexID()

uint32_t Thread::GetIndexID ( ) const

◆ GetInfo()

virtual const char* lldb_private::Thread::GetInfo ( )
inlinevirtual

Reimplemented in FreeBSDThread, and ThreadMemory.

Definition at line 257 of file Thread.h.

◆ GetName()

virtual const char* lldb_private::Thread::GetName ( )
inlinevirtual

◆ GetPreviousPlan()

ThreadPlan * Thread::GetPreviousPlan ( ThreadPlan plan)
protected

◆ GetPrivateStopInfo()

lldb::StopInfoSP Thread::GetPrivateStopInfo ( )
virtual

◆ GetProcess()

lldb::ProcessSP lldb_private::Thread::GetProcess ( ) const
inline

Definition at line 154 of file Thread.h.

Referenced by lldb_private::ThreadPlanStepUntil::AnalyzeStop(), UnwindAssembly_x86::AugmentUnwindPlanFromCallSite(), FreeBSDThread::BreakNotify(), CalculateProcess(), ThreadMemory::CalculateStopInfo(), ThreadMachCore::CalculateStopInfo(), ThreadKDP::CalculateStopInfo(), lldb_private::process_gdb_remote::ThreadGDBRemote::CalculateStopInfo(), ThreadElfCore::CalculateStopInfo(), CalculateTarget(), CheckpointThreadState(), lldb_private::ThreadPlanCallFunction::ConstructorSetup(), ThreadMachCore::CreateRegisterContextForFrame(), lldb_private::minidump::ThreadMinidump::CreateRegisterContextForFrame(), lldb_private::process_gdb_remote::ThreadGDBRemote::CreateRegisterContextForFrame(), ThreadElfCore::CreateRegisterContextForFrame(), lldb_private::StopInfoMachException::CreateStopReasonWithMachException(), lldb_private::AppleGetQueuesHandler::Detach(), lldb_private::AppleGetThreadItemInfoHandler::Detach(), lldb_private::AppleGetItemInfoHandler::Detach(), lldb_private::AppleGetPendingItemsHandler::Detach(), lldb_private::AppleThreadPlanStepThroughObjCTrampoline::DidPush(), lldb_private::ThreadPlanPython::DidPush(), lldb_private::UnwindLLDB::DoCreateRegisterContextForFrame(), CommandObjectThreadBacktrace::DoExtendedBacktrace(), lldb_private::UnwindLLDB::DoGetFrameCount(), lldb_private::UnwindLLDB::DoGetFrameInfoAtIndex(), lldb_private::ThreadPlanStepOut::DoPlanExplainsStop(), lldb_private::ThreadPlanPython::DoPlanExplainsStop(), lldb_private::ThreadPlanStepOverRange::DoWillResume(), lldb_private::ThreadPlanStepOverBreakpoint::DoWillResume(), lldb_private::process_gdb_remote::ThreadGDBRemote::FetchThreadExtendedInfo(), lldb_private::FormatEntity::Format(), FreeBSDThread::FreeBSDThread(), FunctionOptimizationWarning(), lldb_private::process_gdb_remote::GDBRemoteRegisterContext::GDBRemoteRegisterContext(), ABIMacOSX_i386::GetArgumentValues(), ABISysV_i386::GetArgumentValues(), GetByteOrderAndAddrSize(), GetCurrentException(), GetCurrentExceptionBacktrace(), lldb_private::HistoryThread::GetExtendedBacktraceOriginatingIndexID(), UnwindAssembly_x86::GetFastUnwindPlan(), lldb_private::ThreadPlanStepRange::GetInstructionsForAddress(), FreeBSDThread::GetMonitor(), FreeBSDThread::GetName(), UnwindAssembly_x86::GetNonCallSiteUnwindPlanFromAssembly(), UnwindAssemblyInstEmulation::GetNonCallSiteUnwindPlanFromAssembly(), lldb_private::ThreadPlanPython::GetPlanRunState(), GetPrivateStopInfo(), lldb_private::process_gdb_remote::ThreadGDBRemote::GetQueue(), lldb_private::process_gdb_remote::ThreadGDBRemote::GetQueueID(), lldb_private::process_gdb_remote::ThreadGDBRemote::GetQueueKind(), lldb_private::process_gdb_remote::ThreadGDBRemote::GetQueueLibdispatchQueueAddress(), lldb_private::process_gdb_remote::ThreadGDBRemote::GetQueueName(), lldb_private::ThreadPlanCallUserExpression::GetRealStopInfo(), lldb_private::HistoryThread::GetRegisterContext(), FreeBSDThread::GetRegisterContext(), lldb_private::process_gdb_remote::GDBRemoteRegisterContext::GetRegisterInfoAtIndex(), ABIMacOSX_arm::GetReturnValueObjectImpl(), ABISysV_arm::GetReturnValueObjectImpl(), ABISysV_ppc::GetReturnValueObjectSimple(), ABISysV_x86_64::GetReturnValueObjectSimple(), ABISysV_i386::GetReturnValueObjectSimple(), GetReturnValuePassedInMemory(), lldb_private::RegisterContextLLDB::GetStartPC(), GetStatus(), lldb_private::AppleObjCTrampolineHandler::GetStepThroughDispatchPlan(), DynamicLoaderHexagonDYLD::GetStepThroughTrampolinePlan(), lldb_private::DynamicLoaderDarwin::GetStepThroughTrampolinePlan(), DynamicLoaderPOSIXDYLD::GetStepThroughTrampolinePlan(), GetStopInfo(), lldb_private::ThreadPlan::GetTarget(), lldb_private::QueueImpl::GetThreadAtIndex(), GetThreadLocalData(), lldb_private::ThreadPlanStepThrough::HitOurBackstopBreakpoint(), lldb_private::RegisterContext::InvalidateIfNeeded(), ABISysV_arm::IsArmHardFloat(), lldb_private::ThreadPlanPython::IsPlanStale(), IsStillAtLastBreakpointHit(), lldb_private::StopInfoBreakpoint::IsValidForOperatingSystemThread(), lldb_private::ThreadPlanAssemblyTracer::Log(), lldb_private::ThreadPlanStepThrough::LookForPlanToStepThroughFromCurrentPC(), lldb_private::ThreadPlanStepRange::NextRangeBreakpointExplainsStop(), lldb_private::ArchitectureArm::OverrideStopInfo(), ABISysV_x86_64::PrepareTrivialCall(), ABISysV_ppc::PrepareTrivialCall(), ABISysV_ppc64::PrepareTrivialCall(), ABISysV_s390x::PrepareTrivialCall(), lldb_private::ThreadPlanStepOut::QueueInlinedStepPlan(), ReadIntegerArgument(), lldb_private::RegisterContextLLDB::ReadPC(), RegisterContextDarwin_arm64::ReadRegister(), lldb_private::RegisterContext::ReadRegisterValueFromMemory(), lldb_private::ThreadPlanStepOverBreakpoint::ReenableBreakpointSite(), lldb_private::StackFrameList::ResetCurrentInlinedDepth(), ReturnFromFrame(), lldb_private::ClangExpressionParser::RunStaticInitializers(), SafeToCallFunctions(), lldb_private::StackFrameList::SetDefaultFileAndLineToSelectedFrame(), lldb_private::ThreadPlanStepRange::SetNextBranchBreakpoint(), lldb_private::ThreadPlanCallFunctionUsingABI::SetReturnValue(), lldb_private::ThreadPlanCallFunction::SetReturnValue(), SetSelectedFrameByIndexNoisily(), SetStopInfo(), lldb_private::AppleObjCTrampolineHandler::SetupDispatchFunction(), SetupForResume(), ShouldResume(), lldb_private::AppleThreadPlanStepThroughObjCTrampoline::ShouldStop(), lldb_private::ThreadPlanPython::ShouldStop(), StepIn(), StepOut(), StepOver(), StopInfoIsUpToDate(), lldb_private::ThreadPlanAssemblyTracer::ThreadPlanAssemblyTracer(), lldb_private::ThreadPlanRunToAddress::ThreadPlanRunToAddress(), lldb_private::ThreadPlanStepOut::ThreadPlanStepOut(), lldb_private::ThreadPlanStepOverBreakpoint::ThreadPlanStepOverBreakpoint(), lldb_private::ThreadPlanStepThrough::ThreadPlanStepThrough(), FreeBSDThread::TraceNotify(), FrameTreeDelegate::TreeDelegateItemSelected(), lldb_private::UnwindLLDB::UnwindLLDB(), FreeBSDThread::WatchNotify(), lldb_private::process_gdb_remote::ThreadGDBRemote::WillResume(), FreeBSDThread::WillResume(), lldb_private::ThreadPlanStepThrough::WillStop(), lldb_private::process_gdb_remote::GDBRemoteRegisterContext::WriteAllRegisterValues(), lldb_private::RegisterContext::WriteRegisterValueToMemory(), and lldb_private::process_gdb_remote::ThreadGDBRemote::~ThreadGDBRemote().

◆ GetProtocolID()

virtual lldb::user_id_t lldb_private::Thread::GetProtocolID ( ) const
inlinevirtual

◆ GetQueue()

virtual lldb::QueueSP lldb_private::Thread::GetQueue ( )
inlinevirtual

Retrieve the Queue for this thread, if any.

Returns
A QueueSP for the queue that is currently associated with this thread. An empty shared pointer indicates that this thread is not associated with a queue, or libdispatch queues are not supported on this target.

Reimplemented in lldb_private::process_gdb_remote::ThreadGDBRemote.

Definition at line 355 of file Thread.h.

◆ GetQueueID()

virtual lldb::queue_id_t lldb_private::Thread::GetQueueID ( )
inlinevirtual

Retrieve the Queue ID for the queue currently using this Thread.

If this Thread is doing work on behalf of a libdispatch/GCD queue, retrieve the QueueID.

This is a unique identifier for the libdispatch/GCD queue in a process. Often starting at 1 for the initial system-created queues and incrementing, a QueueID will not be reused for a different queue during the lifetime of a process.

Returns
A QueueID if the Thread subclass implements this, else LLDB_INVALID_QUEUE_ID.

Reimplemented in lldb_private::HistoryThread, and lldb_private::process_gdb_remote::ThreadGDBRemote.

Definition at line 317 of file Thread.h.

References LLDB_INVALID_QUEUE_ID.

◆ GetQueueKind()

virtual lldb::QueueKind lldb_private::Thread::GetQueueKind ( )
inlinevirtual

Retrieve the Queue kind for the queue currently using this Thread.

If this Thread is doing work on behalf of a libdispatch/GCD queue, retrieve the Queue kind - either eQueueKindSerial or eQueueKindConcurrent, indicating that this queue processes work items serially or concurrently.

Returns
The Queue kind, if the Thread subclass implements this, else eQueueKindUnknown.

Reimplemented in lldb_private::process_gdb_remote::ThreadGDBRemote.

Definition at line 343 of file Thread.h.

References lldb::eQueueKindUnknown.

◆ GetQueueLibdispatchQueueAddress()

virtual lldb::addr_t lldb_private::Thread::GetQueueLibdispatchQueueAddress ( )
inlinevirtual

Retrieve the address of the libdispatch_queue_t struct for queue currently using this Thread.

If this Thread is doing work on behalf of a libdispatch/GCD queue, retrieve the address of the libdispatch_queue_t structure describing the queue.

This address may be reused for different queues later in the Process lifetime and should not be used to identify a queue uniquely. Use the GetQueueID() call for that.

Returns
The Queue's libdispatch_queue_t address if the Thread subclass implements this, else LLDB_INVALID_ADDRESS.

Reimplemented in lldb_private::process_gdb_remote::ThreadGDBRemote.

Definition at line 371 of file Thread.h.

References LLDB_INVALID_ADDRESS.

◆ GetQueueName()

virtual const char* lldb_private::Thread::GetQueueName ( )
inlinevirtual

Retrieve the Queue name for the queue currently using this Thread.

If this Thread is doing work on behalf of a libdispatch/GCD queue, retrieve the Queue name.

Returns
The Queue name, if the Thread subclass implements this, else nullptr.

Reimplemented in lldb_private::HistoryThread, ThreadMemory, lldb_private::process_gdb_remote::ThreadGDBRemote, and ThreadKDP.

Definition at line 329 of file Thread.h.

Referenced by lldb_private::FormatEntity::Format(), and lldb_private::ThreadSpec::QueueNameMatches().

◆ GetRegisterContext()

virtual lldb::RegisterContextSP lldb_private::Thread::GetRegisterContext ( )
pure virtual

Implemented in ThreadElfCore, lldb_private::process_gdb_remote::ThreadGDBRemote, FreeBSDThread, lldb_private::HistoryThread, lldb_private::TargetThreadWindows, ThreadKDP, lldb_private::minidump::ThreadMinidump, ThreadMachCore, and ThreadMemory.

Referenced by lldb_private::ThreadPlanRunToAddress::AtOurAddress(), UnwindAssembly_x86::AugmentUnwindPlanFromCallSite(), lldb_private::ThreadPlanCallFunction::ConstructorSetup(), RegisterContextMacOSXFrameBackchain::ConvertRegisterKindToRegisterNumber(), lldb_private::RegisterContextLLDB::ConvertRegisterKindToRegisterNumber(), lldb_private::RegisterContext::CopyFromRegisterContext(), RegisterContextDarwin_x86_64_Mach::Create_LC_THREAD(), RegisterContextDarwin_i386_Mach::Create_LC_THREAD(), RegisterContextDarwin_arm_Mach::Create_LC_THREAD(), RegisterContextDarwin_arm64_Mach::Create_LC_THREAD(), lldb_private::StopInfoMachException::CreateStopReasonWithMachException(), UnwindMacOSXFrameBackchain::DoCreateRegisterContextForFrame(), lldb_private::UnwindLLDB::DoCreateRegisterContextForFrame(), lldb_private::ThreadPlanStepOverBreakpoint::DoPlanExplainsStop(), lldb_private::ThreadPlanStepOverRange::DoWillResume(), ABIMacOSX_arm::GetArgumentValues(), ABISysV_arm::GetArgumentValues(), ABISysV_arm64::GetArgumentValues(), ABISysV_ppc::GetArgumentValues(), ABIMacOSX_i386::GetArgumentValues(), ABISysV_s390x::GetArgumentValues(), ABISysV_ppc64::GetArgumentValues(), ABISysV_x86_64::GetArgumentValues(), ABIMacOSX_arm64::GetArgumentValues(), ABISysV_i386::GetArgumentValues(), lldb_private::StackFrameList::GetCurrentInlinedDepth(), lldb_private::StackFrameList::GetFramesUpTo(), UnwindAssembly_x86::GetNonCallSiteUnwindPlanFromAssembly(), RegisterContextMacOSXFrameBackchain::GetRegisterCount(), lldb_private::RegisterContextLLDB::GetRegisterCount(), lldb_private::UnwindPlan::GetRegisterInfo(), RegisterContextMacOSXFrameBackchain::GetRegisterInfoAtIndex(), lldb_private::RegisterContextLLDB::GetRegisterInfoAtIndex(), RegisterContextMacOSXFrameBackchain::GetRegisterSet(), lldb_private::RegisterContextLLDB::GetRegisterSet(), RegisterContextMacOSXFrameBackchain::GetRegisterSetCount(), lldb_private::RegisterContextLLDB::GetRegisterSetCount(), ABISysV_mips64::GetReturnValueObjectImpl(), ABISysV_ppc::GetReturnValueObjectImpl(), ABISysV_s390x::GetReturnValueObjectImpl(), ABISysV_x86_64::GetReturnValueObjectImpl(), ABISysV_mips::GetReturnValueObjectImpl(), ABISysV_i386::GetReturnValueObjectImpl(), ABISysV_hexagon::GetReturnValueObjectImpl(), ABIMacOSX_arm::GetReturnValueObjectImpl(), ABISysV_arm::GetReturnValueObjectImpl(), ABIMacOSX_i386::GetReturnValueObjectImpl(), ABISysV_arm64::GetReturnValueObjectImpl(), ABIMacOSX_arm64::GetReturnValueObjectImpl(), ABISysV_s390x::GetReturnValueObjectSimple(), ABISysV_ppc::GetReturnValueObjectSimple(), ABISysV_x86_64::GetReturnValueObjectSimple(), ABISysV_i386::GetReturnValueObjectSimple(), lldb_private::AppleObjCTrampolineHandler::GetStepThroughDispatchPlan(), lldb_private::DynamicLoaderWindowsDYLD::GetStepThroughTrampolinePlan(), lldb_private::CPPLanguageRuntime::GetStepThroughTrampolinePlan(), RegisterNumber::init(), lldb_private::ThreadPlanStepRange::InRange(), lldb_private::ThreadPlanStepRange::InSymbol(), lldb_private::ThreadPlanShouldStopHere::InvokeShouldStopHereCallback(), lldb_private::ThreadPlanStepInstruction::IsPlanStale(), lldb_private::ThreadPlanStepOverBreakpoint::IsPlanStale(), lldb_private::ThreadPlanStepRange::IsPlanStale(), IsStillAtLastBreakpointHit(), lldb_private::RegisterContextLLDB::IsTrapHandlerFrame(), lldb_private::ThreadPlanAssemblyTracer::Log(), lldb_private::ThreadPlanStepThrough::LookForPlanToStepThroughFromCurrentPC(), lldb_private::ThreadPlanStepOverBreakpoint::MischiefManaged(), lldb_private::ArchitectureArm::OverrideStopInfo(), ABISysV_arm64::PrepareTrivialCall(), ABISysV_ppc::PrepareTrivialCall(), ABISysV_arm::PrepareTrivialCall(), ABIMacOSX_arm::PrepareTrivialCall(), ABISysV_ppc64::PrepareTrivialCall(), ABISysV_x86_64::PrepareTrivialCall(), ABISysV_s390x::PrepareTrivialCall(), ABISysV_mips64::PrepareTrivialCall(), ABISysV_mips::PrepareTrivialCall(), ABIMacOSX_i386::PrepareTrivialCall(), ABIMacOSX_arm64::PrepareTrivialCall(), ABISysV_i386::PrepareTrivialCall(), ReadIntegerArgument(), lldb_private::RegisterContextLLDB::ReadRegister(), lldb_private::RegisterContextLLDB::RegisterContextLLDB(), lldb_private::ThreadPlanCallFunction::ReportRegisterState(), lldb_private::StackFrameList::ResetCurrentInlinedDepth(), lldb_private::Process::RunThreadPlan(), lldb_private::StackFrameList::SetCurrentInlinedDepth(), lldb_private::ThreadPlanStepRange::SetNextBranchBreakpoint(), ABISysV_arm::SetReturnValueObject(), ABIMacOSX_arm::SetReturnValueObject(), ABISysV_ppc::SetReturnValueObject(), ABISysV_s390x::SetReturnValueObject(), ABISysV_x86_64::SetReturnValueObject(), ABISysV_ppc64::SetReturnValueObject(), ABISysV_arm64::SetReturnValueObject(), ABIMacOSX_i386::SetReturnValueObject(), ABISysV_mips64::SetReturnValueObject(), ABISysV_mips::SetReturnValueObject(), ABISysV_i386::SetReturnValueObject(), ABIMacOSX_arm64::SetReturnValueObject(), SetupForResume(), lldb_private::ThreadPlanStepInstruction::SetUpState(), lldb_private::ThreadPlanStepInstruction::ShouldStop(), lldb_private::ThreadPlanStepOverRange::ShouldStop(), lldb_private::ThreadPlanStepInRange::ShouldStop(), ShouldStop(), lldb_private::ThreadPlanStepOut::ThreadPlanStepOut(), lldb_private::ThreadPlanStepOverBreakpoint::ThreadPlanStepOverBreakpoint(), lldb_private::ThreadPlanStepThrough::ThreadPlanStepThrough(), lldb_private::ThreadPlanAssemblyTracer::TracingStarted(), lldb_private::ThreadPlan::WillResume(), RegisterContextMacOSXFrameBackchain::WriteAllRegisterValues(), and lldb_private::RegisterContextLLDB::WriteRegister().

◆ GetResumeSignal()

int lldb_private::Thread::GetResumeSignal ( ) const
inline

◆ GetResumeState()

lldb::StateType lldb_private::Thread::GetResumeState ( ) const
inline

Gets the USER resume state for this thread.

This is not the same as what this thread is going to do for any particular step, however if this thread returns eStateSuspended, then the process control logic will never allow this thread to run.

Returns
The User resume state for this thread.

Definition at line 200 of file Thread.h.

Referenced by lldb::SBThread::IsSuspended(), FreeBSDThread::Resume(), SetupForResume(), ShouldReportRun(), ShouldReportStop(), and ShouldStop().

◆ GetReturnValueObject()

ValueObjectSP Thread::GetReturnValueObject ( )

Gets the outer-most return value from the completed plans.

Returns
A ValueObjectSP, either empty if there is no return value, or containing the return value.

Definition at line 1108 of file Thread.cpp.

References m_completed_plan_stack.

Referenced by GetStopInfo().

◆ GetSelectedFrame()

lldb::StackFrameSP Thread::GetSelectedFrame ( )

◆ GetSelectedFrameIndex()

uint32_t lldb_private::Thread::GetSelectedFrameIndex ( )
inline

◆ GetStackFrameAtIndex()

virtual lldb::StackFrameSP lldb_private::Thread::GetStackFrameAtIndex ( uint32_t  idx)
inlinevirtual

Definition at line 395 of file Thread.h.

Referenced by lldb_private::ThreadPlanStepUntil::AnalyzeStop(), CommandObjectIterateOverThreads::BucketThread(), CheckpointThreadState(), lldb_private::ThreadPlanStepRange::CompareCurrentFrameToStartFrame(), lldb_private::ThreadPlanStepInRange::DefaultShouldStopHereCallback(), lldb_private::ThreadPlanShouldStopHere::DefaultShouldStopHereCallback(), lldb_private::ThreadPlanShouldStopHere::DefaultStepFromHereCallback(), CommandObjectBugreportUnwind::DoExecute(), CommandObjectThreadStepWithTypeAndScope::DoExecute(), CommandObjectFrameRecognizerInfo::DoExecute(), CommandObjectThreadUntil::DoExecute(), UnwindMacOSXFrameBackchain::DoGetFrameCount(), lldb_private::ThreadPlanStepOut::DoPlanExplainsStop(), lldb_private::ThreadPlanCallFunction::DoTakedown(), lldb_private::ThreadPlanStepOverRange::DoWillResume(), DumpUsingSettingsFormat(), lldb_private::ThreadPlanStepInRange::FrameMatchesAvoidCriteria(), GetCurrentException(), lldb_private::AppleGetQueuesHandler::GetCurrentQueues(), lldb::SBThread::GetFrameAtIndex(), lldb_private::AppleGetItemInfoHandler::GetItemInfo(), lldb_private::AppleGetPendingItemsHandler::GetPendingItems(), ABISysV_mips64::GetReturnValueObjectImpl(), ABISysV_mips::GetReturnValueObjectImpl(), ABISysV_hexagon::GetReturnValueObjectImpl(), ABISysV_arm::GetReturnValueObjectImpl(), ABIMacOSX_arm::GetReturnValueObjectImpl(), ABIMacOSX_i386::GetReturnValueObjectImpl(), ABISysV_arm64::GetReturnValueObjectImpl(), ABIMacOSX_arm64::GetReturnValueObjectImpl(), ABISysV_s390x::GetReturnValueObjectSimple(), ABISysV_ppc::GetReturnValueObjectSimple(), ABISysV_x86_64::GetReturnValueObjectSimple(), ABISysV_i386::GetReturnValueObjectSimple(), GetStatus(), lldb_private::AppleObjCTrampolineHandler::GetStepThroughDispatchPlan(), DynamicLoaderHexagonDYLD::GetStepThroughTrampolinePlan(), lldb_private::DynamicLoaderDarwin::GetStepThroughTrampolinePlan(), DynamicLoaderPOSIXDYLD::GetStepThroughTrampolinePlan(), lldb_private::CPPLanguageRuntime::GetStepThroughTrampolinePlan(), lldb_private::AppleGetThreadItemInfoHandler::GetThreadItemInfo(), lldb_private::ThreadPlanStepThrough::HitOurBackstopBreakpoint(), lldb_private::InferiorCall(), lldb_private::InferiorCallMmap(), lldb_private::InferiorCallMunmap(), lldb_private::ThreadPlanStepRange::InRange(), lldb_private::ThreadPlanStepInstruction::IsPlanStale(), lldb_private::ThreadPlanStepOut::IsPlanStale(), JumpToLine(), lldb_private::ThreadPlanTracer::Log(), lldb_private::ThreadPlanStepOut::QueueInlinedStepPlan(), RestoreRegisterStateFromCheckpoint(), ReturnFromFrame(), ReturnFromFrameWithIndex(), lldb::SBThread::SetSelectedFrame(), lldb_private::ThreadPlanStepInstruction::SetUpState(), lldb_private::ThreadPlanStepInstruction::ShouldStop(), lldb_private::ThreadPlanStepOverRange::ShouldStop(), lldb_private::ThreadPlanStepOut::ShouldStop(), lldb_private::AppleThreadPlanStepThroughObjCTrampoline::ShouldStop(), lldb_private::ThreadPlanStepInRange::ShouldStop(), StepIn(), lldb::SBThread::StepInto(), lldb::SBThread::StepOver(), StepOver(), lldb::SBThread::StepOverUntil(), lldb_private::ThreadPlanStepOut::ThreadPlanStepOut(), lldb_private::ThreadPlanStepRange::ThreadPlanStepRange(), lldb_private::ThreadPlanStepUntil::ThreadPlanStepUntil(), FrameTreeDelegate::TreeDelegateDrawTreeItem(), and lldb_private::ClangExpressionDeclMap::WillParse().

◆ GetStackFrameCount()

virtual uint32_t lldb_private::Thread::GetStackFrameCount ( )
inlinevirtual

◆ GetStackFrameList()

StackFrameListSP Thread::GetStackFrameList ( )
protected

◆ GetStackFrameSPForStackFramePtr()

lldb::StackFrameSP Thread::GetStackFrameSPForStackFramePtr ( StackFrame stack_frame_ptr)

Definition at line 1856 of file Thread.cpp.

References GetStackFrameList().

◆ GetStackFrameStatus()

size_t Thread::GetStackFrameStatus ( Stream strm,
uint32_t  first_frame,
uint32_t  num_frames,
bool  show_frame_info,
uint32_t  num_frames_with_source 
)

Definition at line 2049 of file Thread.cpp.

References GetStackFrameList().

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

◆ GetState()

StateType Thread::GetState ( ) const

◆ GetStaticBroadcasterClass()

ConstString & Thread::GetStaticBroadcasterClass ( )
static

Definition at line 237 of file Thread.cpp.

Referenced by lldb_private::Debugger::DefaultEventHandler().

◆ GetStatus()

size_t Thread::GetStatus ( Stream strm,
uint32_t  start_frame,
uint32_t  num_frames,
uint32_t  num_frames_with_source,
bool  stop_format,
bool  only_stacks = false 
)

◆ GetStopInfo()

lldb::StopInfoSP Thread::GetStopInfo ( )

◆ GetStopReason()

lldb::StopReason Thread::GetStopReason ( )

Definition at line 455 of file Thread.cpp.

References lldb::eStopReasonNone, and GetStopInfo().

◆ GetTemporaryResumeState()

lldb::StateType lldb_private::Thread::GetTemporaryResumeState ( ) const
inline

◆ GetThreadLocalData()

addr_t Thread::GetThreadLocalData ( const lldb::ModuleSP  module,
lldb::addr_t  tls_file_addr 
)
virtual

Retrieves the per-module TLS block for a thread.

Parameters
[in]moduleThe module to query TLS data for.
[in]tls_file_addrThe thread local address in module
Returns
If the thread has TLS data allocated for the module, the address of the TLS block. Otherwise LLDB_INVALID_ADDRESS is returned.

Definition at line 1832 of file Thread.cpp.

References GetProcess(), lldb_private::DynamicLoader::GetThreadLocalData(), and LLDB_INVALID_ADDRESS.

Referenced by lldb_private::DWARFExpression::Evaluate().

◆ GetThreadPointer()

lldb::addr_t Thread::GetThreadPointer ( )
virtual

Retrieves the per-thread data area.

Most OSs maintain a per-thread pointer (e.g. the FS register on x64), which we return the value of here.

Returns
LLDB_INVALID_ADDRESS if not supported, otherwise the thread pointer value.

Reimplemented in FreeBSDThread.

Definition at line 1830 of file Thread.cpp.

References LLDB_INVALID_ADDRESS.

◆ GetUnwinder()

Unwind * Thread::GetUnwinder ( )
protectedvirtual

◆ IsOperatingSystemPluginThread()

virtual bool lldb_private::Thread::IsOperatingSystemPluginThread ( ) const
inlineprotectedvirtual

Reimplemented in ThreadMemory.

Definition at line 1192 of file Thread.h.

◆ IsStillAtLastBreakpointHit()

bool Thread::IsStillAtLastBreakpointHit ( )
protectedvirtual

◆ IsThreadPlanDone()

bool Thread::IsThreadPlanDone ( ThreadPlan plan)

Checks whether the given plan is in the completed plans for this stop.

Parameters
[in]planPointer to the plan you're checking.
Returns
Returns true if the input plan is in the completed plan stack, false otherwise.

Definition at line 1133 of file Thread.cpp.

References m_completed_plan_stack.

Referenced by lldb_private::Process::RunThreadPlan(), and lldb_private::AppleThreadPlanStepThroughObjCTrampoline::ShouldStop().

◆ IsValid()

bool lldb_private::Thread::IsValid ( ) const
inline

◆ JumpToLine()

Status Thread::JumpToLine ( const FileSpec file,
uint32_t  line,
bool  can_leave_function,
std::string *  warnings = nullptr 
)

◆ MatchesSpec()

bool Thread::MatchesSpec ( const ThreadSpec spec)
virtual

◆ PopPlan()

void Thread::PopPlan ( )
protected

◆ PushPlan()

void Thread::PushPlan ( lldb::ThreadPlanSP &  plan_sp)
protected

◆ QueueFundamentalPlan()

ThreadPlanSP Thread::QueueFundamentalPlan ( bool  abort_other_plans)
virtual

Queues the base plan for a thread.

The version returned by Process does some things that are useful, like handle breakpoints and signals, so if you return a plugin specific one you probably want to call through to the Process one for anything your plugin doesn't explicitly handle.

Parameters
[in]abort_other_planstrue if we discard the currently queued plans and replace them with this one. Otherwise this plan will go on the end of the plan stack.
Returns
A shared pointer to the newly queued thread plan, or nullptr if the plan could not be queued.

Definition at line 1364 of file Thread.cpp.

References QueueThreadPlan().

Referenced by lldb_private::ThreadPlanBase::IsBasePlan(), and Thread().

◆ QueueThreadPlan()

Status Thread::QueueThreadPlan ( lldb::ThreadPlanSP &  plan_sp,
bool  abort_other_plans 
)

◆ QueueThreadPlanForRunToAddress()

ThreadPlanSP Thread::QueueThreadPlanForRunToAddress ( bool  abort_other_plans,
Address target_addr,
bool  stop_other_threads,
Status status 
)
virtual

Gets the plan used to continue from the current PC.

This is a simple plan, mostly useful as a backstop when you are continuing for some particular purpose.

Parameters
[in]abort_other_planstrue if we discard the currently queued plans and replace them with this one. Otherwise this plan will go on the end of the plan stack.
[in]target_addrThe address to which we're running.
[in]stop_other_threadstrue if we will stop other threads while we single step this one.
[out]statusA status with an error if queuing failed.
Returns
A shared pointer to the newly queued thread plan, or nullptr if the plan could not be queued.

Definition at line 1485 of file Thread.cpp.

References QueueThreadPlan().

Referenced by lldb::SBThread::RunToAddress(), and lldb_private::ThreadPlanStepInRange::ShouldStop().

◆ QueueThreadPlanForStepInRange() [1/2]

ThreadPlanSP Thread::QueueThreadPlanForStepInRange ( bool  abort_other_plans,
const AddressRange range,
const SymbolContext addr_context,
const char *  step_in_target,
lldb::RunMode  stop_other_threads,
Status status,
LazyBool  step_in_avoids_code_without_debug_info = eLazyBoolCalculate,
LazyBool  step_out_avoids_code_without_debug_info = eLazyBoolCalculate 
)
virtual

Queues the plan used to step through an address range, stepping into functions.

Parameters
[in]abort_other_planstrue if we discard the currently queued plans and replace them with this one. Otherwise this plan will go on the end of the plan stack.
[in]typeType of step to do, only eStepTypeInto and eStepTypeOver are supported by this plan.
[in]rangeThe address range to step through.
[in]addr_contextWhen dealing with stepping through inlined functions the current PC is not enough information to know what "step" means. For instance a series of nested inline functions might start at the same address. is supposed to be out of.
[in]step_in_targetName if function we are trying to step into. We will step out if we don't land in that function.
[in]stop_other_threadstrue if we will stop other threads while we single step this one.
[out]statusA status with an error if queuing failed.
[in]step_in_avoids_code_without_debug_infoIf eLazyBoolYes we will step out if we step into code with no debug info. If eLazyBoolCalculate we will consult the default set in the thread.
[in]step_out_avoids_code_without_debug_infoIf eLazyBoolYes, if the step over steps out it will continue to step out till it comes to a frame with debug info. If eLazyBoolCalculate, it will consult the default set in the thread.
Returns
A shared pointer to the newly queued thread plan, or nullptr if the plan could not be queued.

Definition at line 1406 of file Thread.cpp.

References QueueThreadPlan(), and lldb_private::ThreadPlanStepInRange::SetStepInTarget().

Referenced by lldb_private::ThreadPlanShouldStopHere::DefaultStepFromHereCallback(), CommandObjectThreadStepWithTypeAndScope::DoExecute(), QueueThreadPlanForStepInRange(), lldb_private::ThreadPlanStepInRange::SetCallbacks(), StepIn(), and lldb::SBThread::StepInto().

◆ QueueThreadPlanForStepInRange() [2/2]

ThreadPlanSP Thread::QueueThreadPlanForStepInRange ( bool  abort_other_plans,
const LineEntry line_entry,
const SymbolContext addr_context,
const char *  step_in_target,
lldb::RunMode  stop_other_threads,
Status status,
LazyBool  step_in_avoids_code_without_debug_info = eLazyBoolCalculate,
LazyBool  step_out_avoids_code_without_debug_info = eLazyBoolCalculate 
)
virtual

◆ QueueThreadPlanForStepOut()

ThreadPlanSP Thread::QueueThreadPlanForStepOut ( bool  abort_other_plans,
SymbolContext addr_context,
bool  first_insn,
bool  stop_other_threads,
Vote  stop_vote,
Vote  run_vote,
uint32_t  frame_idx,
Status status,
LazyBool  step_out_avoids_code_without_debug_info = eLazyBoolCalculate 
)
virtual

Queue the plan used to step out of the function at the current PC of thread.

Parameters
[in]abort_other_planstrue if we discard the currently queued plans and replace them with this one. Otherwise this plan will go on the end of the plan stack.
[in]addr_contextWhen dealing with stepping through inlined functions the current PC is not enough information to know what "step" means. For instance a series of nested inline functions might start at the same address. is supposed to be out of.
[in]first_insntrue if this is the first instruction of a function.
[in]stop_other_threadstrue if we will stop other threads while we single step this one.
[in]stop_vote
[in]run_voteSee standard meanings for the stop & run votes in ThreadPlan.h.
[out]statusA status with an error if queuing failed.
[in]step_out_avoids_code_without_debug_infoIf eLazyBoolYes, if the step over steps out it will continue to step out till it comes to a frame with debug info. If eLazyBoolCalculate, it will consult the default set in the thread.
Returns
A shared pointer to the newly queued thread plan, or nullptr if the plan could not be queued.

Definition at line 1442 of file Thread.cpp.

References QueueThreadPlan().

Referenced by lldb_private::ThreadPlanCallOnFunctionExit::DidPush(), CommandObjectThreadStepWithTypeAndScope::DoExecute(), lldb_private::ThreadPlanStepOut::SetFlagsToDefault(), lldb::SBThread::StepOut(), StepOut(), and lldb::SBThread::StepOutOfFrame().

◆ QueueThreadPlanForStepOutNoShouldStop()

ThreadPlanSP Thread::QueueThreadPlanForStepOutNoShouldStop ( bool  abort_other_plans,
SymbolContext addr_context,
bool  first_insn,
bool  stop_other_threads,
Vote  stop_vote,
Vote  run_vote,
uint32_t  frame_idx,
Status status,
bool  continue_to_next_branch = false 
)
virtual

Queue the plan used to step out of the function at the current PC of a thread.

This version does not consult the should stop here callback, and should only be used by other thread plans when they need to retain control of the step out.

Parameters
[in]abort_other_planstrue if we discard the currently queued plans and replace them with this one. Otherwise this plan will go on the end of the plan stack.
[in]addr_contextWhen dealing with stepping through inlined functions the current PC is not enough information to know what "step" means. For instance a series of nested inline functions might start at the same address. is supposed to be out of.
[in]first_insntrue if this is the first instruction of a function.
[in]stop_other_threadstrue if we will stop other threads while we single step this one.
[in]stop_vote
[in]run_voteSee standard meanings for the stop & run votes in ThreadPlan.h.
[in]frame_idx
[out]statusA status with an error if queuing failed.
[in]continue_to_next_branchNormally this will enqueue a plan that will put a breakpoint on the return address and continue to there. If continue_to_next_branch is true, this is an operation not involving the user – e.g. stepping "next" in a source line and we instruction stepped into another function – so instead of putting a breakpoint on the return address, advance the breakpoint to the end of the source line that is doing the call, or until the next flow control instruction. If the return value from the function call is to be retrieved / displayed to the user, you must stop on the return address. The return value may be stored in volatile registers which are overwritten before the next branch instruction.
Returns
A shared pointer to the newly queued thread plan, or nullptr if the plan could not be queued.

Definition at line 1454 of file Thread.cpp.

References lldb_private::ThreadPlanShouldStopHere::ClearShouldStopHereCallbacks(), lldb_private::eLazyBoolNo, and QueueThreadPlan().

Referenced by lldb_private::ThreadPlanShouldStopHere::DefaultStepFromHereCallback(), lldb_private::ThreadPlanStepInstruction::ShouldStop(), lldb_private::ThreadPlanStepOverRange::ShouldStop(), and lldb_private::AppleThreadPlanStepThroughObjCTrampoline::ShouldStop().

◆ QueueThreadPlanForStepOverRange() [1/2]

ThreadPlanSP Thread::QueueThreadPlanForStepOverRange ( bool  abort_other_plans,
const AddressRange range,
const SymbolContext addr_context,
lldb::RunMode  stop_other_threads,
Status status,
LazyBool  step_out_avoids_code_without_debug_info = eLazyBoolCalculate 
)
virtual

Queues the plan used to step through an address range, stepping over function calls.

Parameters
[in]abort_other_planstrue if we discard the currently queued plans and replace them with this one. Otherwise this plan will go on the end of the plan stack.
[in]typeType of step to do, only eStepTypeInto and eStepTypeOver are supported by this plan.
[in]rangeThe address range to step through.
[in]addr_contextWhen dealing with stepping through inlined functions the current PC is not enough information to know what "step" means. For instance a series of nested inline functions might start at the same address. is supposed to be out of.
[in]stop_other_threadstrue if we will stop other threads while we single step this one.
[out]statusA status with an error if queuing failed.
[in]step_out_avoids_code_without_debug_infoIf eLazyBoolYes, if the step over steps out it will continue to step out till it comes to a frame with debug info. If eLazyBoolCalculate, we will consult the default set in the thread.
Returns
A shared pointer to the newly queued thread plan, or nullptr if the plan could not be queued.

Definition at line 1379 of file Thread.cpp.

References QueueThreadPlan().

Referenced by CommandObjectThreadStepWithTypeAndScope::DoExecute(), QueueThreadPlanForStepOverRange(), lldb_private::ThreadPlanStepInRange::SetCallbacks(), lldb_private::ThreadPlanStepOverRange::ShouldStop(), lldb::SBThread::StepOver(), and StepOver().

◆ QueueThreadPlanForStepOverRange() [2/2]

ThreadPlanSP Thread::QueueThreadPlanForStepOverRange ( bool  abort_other_plans,
const LineEntry line_entry,
const SymbolContext addr_context,
lldb::RunMode  stop_other_threads,
Status status,
LazyBool  step_out_avoids_code_without_debug_info = eLazyBoolCalculate 
)
virtual

◆ QueueThreadPlanForStepScripted()

lldb::ThreadPlanSP Thread::QueueThreadPlanForStepScripted ( bool  abort_other_plans,
const char *  class_name,
bool  stop_other_threads,
Status status 
)
virtual

◆ QueueThreadPlanForStepSingleInstruction()

ThreadPlanSP Thread::QueueThreadPlanForStepSingleInstruction ( bool  step_over,
bool  abort_other_plans,
bool  stop_other_threads,
Status status 
)
virtual

Queues the plan used to step one instruction from the current PC of thread.

Parameters
[in]step_overtrue if we step over calls to functions, false if we step in.
[in]abort_other_planstrue if we discard the currently queued plans and replace them with this one. Otherwise this plan will go on the end of the plan stack.
[in]stop_other_threadstrue if we will stop other threads while we single step this one.
[out]statusA status with an error if queuing failed.
Returns
A shared pointer to the newly queued thread plan, or nullptr if the plan could not be queued.

Definition at line 1370 of file Thread.cpp.

References lldb_private::eVoteNoOpinion, and QueueThreadPlan().

Referenced by CommandObjectThreadStepWithTypeAndScope::DoExecute(), StepIn(), lldb::SBThread::StepInstruction(), lldb::SBThread::StepInto(), lldb::SBThread::StepOver(), and StepOver().

◆ QueueThreadPlanForStepThrough()

ThreadPlanSP Thread::QueueThreadPlanForStepThrough ( StackID return_stack_id,
bool  abort_other_plans,
bool  stop_other_threads,
Status status 
)
virtual

Gets the plan used to step through the code that steps from a function call site at the current PC into the actual function call.

Parameters
[in]return_stack_idThe stack id that we will return to (by setting backstop breakpoints on the return address to that frame) if we fail to step through.
[in]abort_other_planstrue if we discard the currently queued plans and replace them with this one. Otherwise this plan will go on the end of the plan stack.
[in]stop_other_threadstrue if we will stop other threads while we single step this one.
[out]statusA status with an error if queuing failed.
Returns
A shared pointer to the newly queued thread plan, or nullptr if the plan could not be queued.

Definition at line 1472 of file Thread.cpp.

References QueueThreadPlan().

Referenced by lldb_private::ThreadPlanStepOverRange::ShouldStop(), and lldb_private::ThreadPlanStepInRange::ShouldStop().

◆ QueueThreadPlanForStepUntil()

ThreadPlanSP Thread::QueueThreadPlanForStepUntil ( bool  abort_other_plans,
lldb::addr_t address_list,
size_t  num_addresses,
bool  stop_others,
uint32_t  frame_idx,
Status status 
)
virtual

Definition at line 1496 of file Thread.cpp.

References QueueThreadPlan().

Referenced by CommandObjectThreadUntil::DoExecute().

◆ RefreshStateAfterStop()

virtual void lldb_private::Thread::RefreshStateAfterStop ( )
pure virtual

◆ ResetStopInfo()

void Thread::ResetStopInfo ( )

Definition at line 471 of file Thread.cpp.

References m_stop_info_sp.

◆ RestoreRegisterStateFromCheckpoint()

bool Thread::RestoreRegisterStateFromCheckpoint ( ThreadStateCheckpoint saved_state)
virtual

◆ RestoreThreadStateFromCheckpoint()

bool Thread::RestoreThreadStateFromCheckpoint ( ThreadStateCheckpoint saved_state)
virtual

◆ ReturnFromFrame()

Status Thread::ReturnFromFrame ( lldb::StackFrameSP  frame_sp,
lldb::ValueObjectSP  return_value_sp,
bool  broadcast = false 
)

◆ ReturnFromFrameWithIndex()

Status Thread::ReturnFromFrameWithIndex ( uint32_t  frame_idx,
lldb::ValueObjectSP  return_value_sp,
bool  broadcast = false 
)

◆ RunModeAsCString()

const char * Thread::RunModeAsCString ( lldb::RunMode  mode)
static

Definition at line 1892 of file Thread.cpp.

References lldb::eAllThreads, lldb::eOnlyDuringStepping, and lldb::eOnlyThisThread.

◆ SafeToCallFunctions()

bool Thread::SafeToCallFunctions ( )
virtual

Check whether this thread is safe to run functions.

The SystemRuntime may know of certain thread states (functions in process of execution, for instance) which can make it unsafe for functions to be called.

Returns
True if it is safe to call functions on this thread. False if function calls should be avoided on this thread.

Definition at line 1844 of file Thread.cpp.

References GetProcess(), lldb_private::Process::GetSystemRuntime(), and lldb_private::SystemRuntime::SafeToCallFunctionsOnThisThread().

Referenced by lldb_private::AppleGetQueuesHandler::GetCurrentQueues(), lldb_private::AppleGetItemInfoHandler::GetItemInfo(), lldb_private::AppleGetPendingItemsHandler::GetPendingItems(), and lldb_private::AppleGetThreadItemInfoHandler::GetThreadItemInfo().

◆ SetAssociatedWithLibdispatchQueue()

virtual void lldb_private::Thread::SetAssociatedWithLibdispatchQueue ( lldb_private::LazyBool  associated_with_libdispatch_queue)
inlinevirtual

Reimplemented in lldb_private::process_gdb_remote::ThreadGDBRemote.

Definition at line 301 of file Thread.h.

◆ SetBackingThread()

virtual bool lldb_private::Thread::SetBackingThread ( const lldb::ThreadSP &  thread_sp)
inlinevirtual

Reimplemented in ThreadMemory.

Definition at line 452 of file Thread.h.

◆ SetDefaultFileAndLineToSelectedFrame()

void lldb_private::Thread::SetDefaultFileAndLineToSelectedFrame ( )
inline

Definition at line 441 of file Thread.h.

◆ SetExtendedBacktraceToken()

virtual void lldb_private::Thread::SetExtendedBacktraceToken ( uint64_t  token)
inlinevirtual

Sets the extended backtrace token for this thread.

Some Thread subclasses may maintain a token to help with providing an extended backtrace. The SystemRuntime plugin will set/request this.

Parameters
[in]token

Reimplemented in lldb_private::HistoryThread.

Definition at line 1143 of file Thread.h.

◆ SetName()

virtual void lldb_private::Thread::SetName ( const char *  name)
inlinevirtual

◆ SetQueueID()

virtual void lldb_private::Thread::SetQueueID ( lldb::queue_id_t  new_val)
inlinevirtual

Reimplemented in lldb_private::HistoryThread.

Definition at line 319 of file Thread.h.

◆ SetQueueKind()

virtual void lldb_private::Thread::SetQueueKind ( lldb::QueueKind  kind)
inlinevirtual

Definition at line 345 of file Thread.h.

◆ SetQueueLibdispatchQueueAddress()

virtual void lldb_private::Thread::SetQueueLibdispatchQueueAddress ( lldb::addr_t  dispatch_queue_t)
inlinevirtual

Reimplemented in lldb_private::process_gdb_remote::ThreadGDBRemote.

Definition at line 375 of file Thread.h.

◆ SetQueueName()

virtual void lldb_private::Thread::SetQueueName ( const char *  name)
inlinevirtual

Reimplemented in lldb_private::HistoryThread.

Definition at line 331 of file Thread.h.

◆ SetResumeSignal()

void lldb_private::Thread::SetResumeSignal ( int  signal)
inline

Definition at line 158 of file Thread.h.

Referenced by DidResume().

◆ SetResumeState()

void lldb_private::Thread::SetResumeState ( lldb::StateType  state,
bool  override_suspend = false 
)
inline

Sets the USER resume state for this thread.

If you set a thread to suspended with this API, it won't take part in any of the arbitration for ShouldResume, and will stay suspended even when other threads do get to run.

N.B. This is not the state that is used internally by thread plans to implement staying on one thread while stepping over a breakpoint, etc. The is the TemporaryResume state, and if you are implementing some bit of strategy in the stepping machinery you should be using that state and not the user resume state.

If you are just preparing all threads to run, you should not override the threads that are marked as suspended by the debugger. In that case, pass override_suspend = false. If you want to force the thread to run (e.g. the "thread continue" command, or are resetting the state (e.g. in SBThread::Resume()), then pass true to override_suspend.

Returns
The User resume state for this thread.

Definition at line 186 of file Thread.h.

References lldb::eStateSuspended.

Referenced by CommandObjectThreadContinue::DoExecute(), lldb::SBThread::Resume(), and lldb::SBThread::Suspend().

◆ SetSelectedFrame()

uint32_t Thread::SetSelectedFrame ( lldb_private::StackFrame frame,
bool  broadcast = false 
)

◆ SetSelectedFrameByIndex()

bool Thread::SetSelectedFrameByIndex ( uint32_t  frame_idx,
bool  broadcast = false 
)

◆ SetSelectedFrameByIndexNoisily()

bool Thread::SetSelectedFrameByIndexNoisily ( uint32_t  frame_idx,
Stream output_stream 
)

◆ SetShouldReportStop()

void Thread::SetShouldReportStop ( Vote  vote)

◆ SetState()

void Thread::SetState ( lldb::StateType  state)

◆ SetStopInfo()

void Thread::SetStopInfo ( const lldb::StopInfoSP &  stop_info_sp)

◆ SetStopInfoToNothing()

void Thread::SetStopInfoToNothing ( )

◆ SetTemporaryResumeState()

void lldb_private::Thread::SetTemporaryResumeState ( lldb::StateType  new_state)
inlineprotected

Definition at line 1202 of file Thread.h.

Referenced by ShouldResume().

◆ SettingsInitialize()

void Thread::SettingsInitialize ( )
static

Definition at line 1826 of file Thread.cpp.

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

◆ SettingsTerminate()

void Thread::SettingsTerminate ( )
static

Definition at line 1828 of file Thread.cpp.

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

◆ SetTracer()

void Thread::SetTracer ( lldb::ThreadPlanTracerSP &  tracer_sp)

Definition at line 1219 of file Thread.cpp.

References m_plan_stack.

◆ SetupForResume()

void Thread::SetupForResume ( )

◆ ShouldReportRun()

Vote Thread::ShouldReportRun ( Event event_ptr)

◆ ShouldReportStop()

Vote Thread::ShouldReportStop ( Event event_ptr)

◆ ShouldResume()

bool Thread::ShouldResume ( lldb::StateType  resume_state)

◆ ShouldStop()

bool Thread::ShouldStop ( Event event_ptr)

◆ StepIn()

Status Thread::StepIn ( bool  source_step,
LazyBool  step_in_avoids_code_without_debug_info = eLazyBoolCalculate,
LazyBool  step_out_avoids_code_without_debug_info = eLazyBoolCalculate 
)
virtual

Default implementation for stepping into.

This function is designed to be used by commands where the process is publicly stopped.

Parameters
[in]source_stepIf true and the frame has debug info, then do a source level step in, else do a single instruction step in.
[in]step_in_avoids_code_without_debug_infoIf true, then avoid stepping into code that doesn't have debug info, else step into any code regardless of whether it has debug info.
[in]step_out_avoids_code_without_debug_infoIf true, then if you step out to code with no debug info, keep stepping out till you get to code with debug info.
Returns
An error that describes anything that went wrong

Definition at line 2113 of file Thread.cpp.

References lldb::eOnlyThisThread, lldb_private::UserID::GetID(), GetProcess(), GetStackFrameAtIndex(), lldb_private::Process::GetState(), lldb_private::Process::GetThreadList(), QueueThreadPlanForStepInRange(), QueueThreadPlanForStepSingleInstruction(), lldb_private::Process::Resume(), lldb_private::Status::SetErrorString(), lldb_private::ThreadList::SetSelectedThreadByID(), and lldb_private::StateIsStoppedState().

Referenced by ApplicationDelegate::MenuDelegateAction(), and SourceFileWindowDelegate::WindowDelegateHandleChar().

◆ StepOut()

Status Thread::StepOut ( )
virtual

◆ StepOver()

Status Thread::StepOver ( bool  source_step,
LazyBool  step_out_avoids_code_without_debug_info = eLazyBoolCalculate 
)
virtual

Default implementation for stepping over.

This function is designed to be used by commands where the process is publicly stopped.

Parameters
[in]source_stepIf true and the frame has debug info, then do a source level step over, else do a single instruction step over.
Returns
An error that describes anything that went wrong

Definition at line 2149 of file Thread.cpp.

References lldb::eOnlyThisThread, lldb_private::UserID::GetID(), GetProcess(), GetStackFrameAtIndex(), lldb_private::Process::GetState(), lldb_private::Process::GetThreadList(), QueueThreadPlanForStepOverRange(), QueueThreadPlanForStepSingleInstruction(), lldb_private::Process::Resume(), lldb_private::Status::SetErrorString(), lldb_private::ThreadList::SetSelectedThreadByID(), and lldb_private::StateIsStoppedState().

Referenced by ApplicationDelegate::MenuDelegateAction(), and SourceFileWindowDelegate::WindowDelegateHandleChar().

◆ StopInfoIsUpToDate()

bool Thread::StopInfoIsUpToDate ( ) const

Definition at line 462 of file Thread.cpp.

References GetProcess(), and m_stop_info_stop_id.

◆ StopReasonAsCString()

const char * Thread::StopReasonAsCString ( lldb::StopReason  reason)
static

◆ ThreadHasQueueInformation()

virtual bool lldb_private::Thread::ThreadHasQueueInformation ( ) const
inlinevirtual

Whether this Thread already has all the Queue information cached or not.

A Thread may be associated with a libdispatch work Queue at a given public stop event. If so, the thread can satisify requests like GetQueueLibdispatchQueueAddress, GetQueueKind, GetQueueName, and GetQueueID either from information from the remote debug stub when it is initially created, or it can query the SystemRuntime for that information.

This method allows the SystemRuntime to discover if a thread has this information already, instead of calling the thread to get the information and having the thread call the SystemRuntime again.

Reimplemented in lldb_private::process_gdb_remote::ThreadGDBRemote.

Definition at line 389 of file Thread.h.

◆ ThreadStoppedForAReason()

bool Thread::ThreadStoppedForAReason ( void  )

Definition at line 519 of file Thread.cpp.

References GetPrivateStopInfo().

Referenced by ShouldReportStop(), and ShouldStop().

◆ UnwindInnermostExpression()

Status Thread::UnwindInnermostExpression ( )

Unwinds the thread stack for the innermost expression plan currently on the thread plan stack.

Returns
An error if the thread plan could not be unwound.

Definition at line 1347 of file Thread.cpp.

References DiscardThreadPlansUpToPlan(), lldb_private::ThreadPlan::eKindCallFunction, m_plan_stack, and lldb_private::Status::SetErrorString().

Referenced by CommandObjectThreadReturn::DoExecute(), lldb_private::REPL::IOHandlerInputComplete(), and lldb::SBThread::UnwindInnermostExpression().

◆ WasThreadPlanDiscarded()

bool Thread::WasThreadPlanDiscarded ( ThreadPlan plan)

Checks whether the given plan is in the discarded plans for this stop.

Parameters
[in]planPointer to the plan you're checking.
Returns
Returns true if the input plan is in the discarded plan stack, false otherwise.

Definition at line 1143 of file Thread.cpp.

References m_discarded_plan_stack.

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

◆ WillResume()

virtual void lldb_private::Thread::WillResume ( lldb::StateType  resume_state)
inlinevirtual

◆ WillStop()

void Thread::WillStop ( )

Definition at line 592 of file Thread.cpp.

References GetCurrentPlan(), and lldb_private::ThreadPlan::WillStop().

Friends And Related Function Documentation

◆ OperatingSystem

friend class OperatingSystem
friend

Definition at line 1165 of file Thread.h.

◆ StackFrame

friend class StackFrame
friend

Definition at line 1164 of file Thread.h.

◆ StackFrameList

friend class StackFrameList
friend

Definition at line 1163 of file Thread.h.

◆ ThreadEventData

friend class ThreadEventData
friend

Definition at line 1162 of file Thread.h.

Referenced by DestroyThread(), and ReturnFromFrame().

◆ ThreadList

friend class ThreadList
friend

Definition at line 1161 of file Thread.h.

◆ ThreadPlan

friend class ThreadPlan
friend

Definition at line 1160 of file Thread.h.

Member Data Documentation

◆ m_completed_plan_stack

plan_stack lldb_private::Thread::m_completed_plan_stack
protected

◆ m_curr_frames_sp

lldb::StackFrameListSP lldb_private::Thread::m_curr_frames_sp
protected

The stack frames that get lazily populated after a thread stops.

Definition at line 1234 of file Thread.h.

Referenced by ClearStackFrames(), DestroyThread(), and GetStackFrameList().

◆ m_destroy_called

bool lldb_private::Thread::m_destroy_called
protected

Definition at line 1249 of file Thread.h.

Referenced by DestroyThread(), GetPrivateStopInfo(), GetStopInfo(), and ~Thread().

◆ m_discarded_plan_stack

plan_stack lldb_private::Thread::m_discarded_plan_stack
protected

Plans that have been discarded by this stop.

They get deleted when the thread resumes.

Definition at line 1229 of file Thread.h.

Referenced by DestroyThread(), DiscardPlan(), DumpThreadPlans(), ShouldResume(), and WasThreadPlanDiscarded().

◆ m_frame_mutex

std::recursive_mutex lldb_private::Thread::m_frame_mutex
mutableprotected

Multithreaded protection for m_state.

Definition at line 1233 of file Thread.h.

Referenced by ClearStackFrames(), DestroyThread(), and GetStackFrameList().

◆ m_index_id

const uint32_t lldb_private::Thread::m_index_id
protected

A unique 1 based index assigned to each thread for easy UI/command line access.

Definition at line 1218 of file Thread.h.

Referenced by GetIndexID().

◆ m_override_should_notify

LazyBool lldb_private::Thread::m_override_should_notify
protected

Definition at line 1251 of file Thread.h.

Referenced by SetShouldReportStop(), SetStopInfo(), and ShouldResume().

◆ m_plan_stack

plan_stack lldb_private::Thread::m_plan_stack
protected

◆ m_prev_frames_sp

lldb::StackFrameListSP lldb_private::Thread::m_prev_frames_sp
protected

The previous stack frames from the last time this thread stopped.

Definition at line 1236 of file Thread.h.

Referenced by ClearStackFrames(), DestroyThread(), and GetStackFrameList().

◆ m_process_wp

lldb::ProcessWP lldb_private::Thread::m_process_wp
protected

The process that owns this thread.

Definition at line 1209 of file Thread.h.

◆ m_reg_context_sp

lldb::RegisterContextSP lldb_private::Thread::m_reg_context_sp
protected

◆ m_resume_signal

int lldb_private::Thread::m_resume_signal
protected

The signal that should be used when continuing this thread.

Definition at line 1238 of file Thread.h.

◆ m_resume_state

lldb::StateType lldb_private::Thread::m_resume_state
protected

This state is used to force a thread to be suspended from outside the ThreadPlan logic.

Definition at line 1240 of file Thread.h.

◆ m_state

lldb::StateType lldb_private::Thread::m_state
protected

The state of our process.

Definition at line 1222 of file Thread.h.

Referenced by GetState(), and SetState().

◆ m_state_mutex

std::recursive_mutex lldb_private::Thread::m_state_mutex
mutableprotected

Multithreaded protection for m_state.

Definition at line 1224 of file Thread.h.

Referenced by GetState(), and SetState().

◆ m_stop_info_override_stop_id

uint32_t lldb_private::Thread::m_stop_info_override_stop_id
protected

Definition at line 1215 of file Thread.h.

Referenced by GetPrivateStopInfo().

◆ m_stop_info_sp

lldb::StopInfoSP lldb_private::Thread::m_stop_info_sp
protected

◆ m_stop_info_stop_id

uint32_t lldb_private::Thread::m_stop_info_stop_id
protected

◆ m_temporary_resume_state

lldb::StateType lldb_private::Thread::m_temporary_resume_state
protected

This state records what the thread was told to do by the thread plan logic for the current resume.

Definition at line 1243 of file Thread.h.

◆ m_unwinder_up

std::unique_ptr<lldb_private::Unwind> lldb_private::Thread::m_unwinder_up
protected

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