|
LLDB mainline
|
#include <ThreadPlanStepOverBreakpoint.h>
Public Member Functions | |
| ThreadPlanStepOverBreakpoint (Thread &thread) | |
| ~ThreadPlanStepOverBreakpoint () override | |
| void | GetDescription (Stream *s, lldb::DescriptionLevel level) override |
| Print a description of this thread to the stream s. | |
| bool | ValidatePlan (Stream *error) override |
| Returns whether this plan could be successfully created. | |
| bool | ShouldStop (Event *event_ptr) override |
| bool | SupportsResumeOthers () override |
| bool | StopOthers () override |
| lldb::StateType | GetPlanRunState () override |
| bool | WillStop () override |
| void | DidPop () override |
| bool | MischiefManaged () override |
| void | ThreadDestroyed () override |
| void | SetAutoContinue (bool do_it) |
| bool | ShouldAutoContinue (Event *event_ptr) override |
| Returns whether this thread plan overrides the ShouldStop of subsequently processed plans. | |
| bool | IsPlanStale () override |
| lldb::addr_t | GetBreakpointLoadAddress () const |
| void | SetDeferReenableBreakpointSite (bool defer) |
| When set to true, the breakpoint site will NOT be re-enabled directly by this plan. | |
| bool | GetDeferReenableBreakpointSite () const |
| void | SetReenabledBreakpointSite () |
| Mark the breakpoint site as already re-enabled, suppressing any re-enable in DidPop()/ThreadDestroyed(). | |
| Public Member Functions inherited from lldb_private::ThreadPlan | |
| virtual | ~ThreadPlan () |
| const char * | GetName () const |
| Returns the name of this thread plan. | |
| Thread & | GetThread () |
| Returns the Thread that is using this thread plan. | |
| Target & | GetTarget () |
| const Target & | GetTarget () const |
| void | ClearThreadCache () |
| Clear the Thread* cache. | |
| bool | TracerExplainsStop () |
| lldb::StateType | RunState () |
| bool | PlanExplainsStop (Event *event_ptr) |
| virtual Vote | ShouldReportStop (Event *event_ptr) |
| Vote | ShouldReportRun (Event *event_ptr) |
| virtual void | SetStopOthers (bool new_value) |
| virtual bool | ShouldRunBeforePublicStop () |
| bool | WillResume (lldb::StateType resume_state, bool current_plan) |
| bool | IsControllingPlan () |
| virtual bool | IsLeafPlan () |
| bool | SetIsControllingPlan (bool value) |
| virtual bool | OkayToDiscard () |
| void | SetOkayToDiscard (bool value) |
| bool | GetPrivate () |
| void | SetPrivate (bool input) |
| virtual void | DidPush () |
| ThreadPlanKind | GetKind () const |
| bool | IsPlanComplete () |
| void | SetPlanComplete (bool success=true) |
| bool | PlanSucceeded () |
| virtual bool | IsBasePlan () |
| lldb::ThreadPlanTracerSP & | GetThreadPlanTracer () |
| void | SetThreadPlanTracer (lldb::ThreadPlanTracerSP new_tracer_sp) |
| void | DoTraceLog () |
| virtual lldb::ValueObjectSP | GetReturnValueObject () |
| virtual lldb::ExpressionVariableSP | GetExpressionVariable () |
| virtual void | RestoreThreadState () |
| virtual bool | IsVirtualStep () |
| bool | SetIterationCount (size_t count) |
| virtual lldb::RunDirection | GetDirection () const |
| Public Member Functions inherited from lldb_private::UserID | |
| UserID (lldb::user_id_t uid=LLDB_INVALID_UID) | |
| Construct with optional user ID. | |
| ~UserID ()=default | |
| Destructor. | |
| void | Clear () |
| Clears the object state. | |
| lldb::user_id_t | GetID () const |
| Get accessor for the user ID. | |
| void | SetID (lldb::user_id_t uid) |
| Set accessor for the user ID. | |
Protected Member Functions | |
| bool | DoPlanExplainsStop (Event *event_ptr) override |
| bool | DoWillResume (lldb::StateType resume_state, bool current_plan) override |
| void | ReenableBreakpointSite () |
| Protected Member Functions inherited from lldb_private::ThreadPlan | |
| ThreadPlan (ThreadPlanKind kind, const char *name, Thread &thread, Vote report_stop_vote, Vote report_run_vote) | |
| void | PushPlan (lldb::ThreadPlanSP &thread_plan_sp) |
| ThreadPlan * | GetPreviousPlan () |
| lldb::StopInfoSP | GetPrivateStopInfo () |
| void | SetStopInfo (lldb::StopInfoSP stop_reason_sp) |
| bool | IsUsuallyUnexplainedStopReason (lldb::StopReason) |
Private Member Functions | |
| ThreadPlanStepOverBreakpoint (const ThreadPlanStepOverBreakpoint &)=delete | |
| const ThreadPlanStepOverBreakpoint & | operator= (const ThreadPlanStepOverBreakpoint &)=delete |
Private Attributes | |
| lldb::addr_t | m_breakpoint_addr |
| lldb::user_id_t | m_breakpoint_site_id |
| bool | m_auto_continue |
| bool | m_reenabled_breakpoint_site |
| bool | m_defer_reenable_breakpoint_site |
Additional Inherited Members | |
| Public Types inherited from lldb_private::ThreadPlan | |
| enum | ThreadPlanKind { eKindGeneric , eKindNull , eKindBase , eKindCallFunction , eKindPython , eKindStepInstruction , eKindStepOut , eKindStepOverBreakpoint , eKindStepOverRange , eKindStepInRange , eKindRunToAddress , eKindStepThrough , eKindStepUntil , eKindSingleThreadTimeout } |
| Protected Attributes inherited from lldb_private::ThreadPlan | |
| Status | m_status |
| Process & | m_process |
| lldb::tid_t | m_tid |
| Vote | m_report_stop_vote |
| Vote | m_report_run_vote |
| bool | m_takes_iteration_count |
| bool | m_could_not_resolve_hw_bp |
| int32_t | m_iteration_count = 1 |
| Protected Attributes inherited from lldb_private::UserID | |
| lldb::user_id_t | m_uid |
| The user ID that uniquely identifies an object. | |
Definition at line 17 of file ThreadPlanStepOverBreakpoint.h.
| ThreadPlanStepOverBreakpoint::ThreadPlanStepOverBreakpoint | ( | Thread & | thread | ) |
Definition at line 24 of file ThreadPlanStepOverBreakpoint.cpp.
References lldb_private::ThreadPlan::eKindStepOverBreakpoint, lldb_private::eVoteNo, lldb_private::eVoteNoOpinion, LLDB_INVALID_ADDRESS, m_auto_continue, m_breakpoint_addr, m_breakpoint_site_id, m_defer_reenable_breakpoint_site, m_reenabled_breakpoint_site, and lldb_private::ThreadPlan::ThreadPlan().
Referenced by operator=(), and ThreadPlanStepOverBreakpoint().
|
overridedefault |
References error().
|
privatedelete |
References ThreadPlanStepOverBreakpoint().
|
overridevirtual |
Reimplemented from lldb_private::ThreadPlan.
Definition at line 136 of file ThreadPlanStepOverBreakpoint.cpp.
References ReenableBreakpointSite().
Implements lldb_private::ThreadPlan.
Definition at line 51 of file ThreadPlanStepOverBreakpoint.cpp.
References lldb::eStopReasonBreakpoint, lldb::eStopReasonNone, lldb::eStopReasonTrace, lldb_private::GetLog(), lldb_private::ThreadPlan::GetPrivateStopInfo(), lldb_private::Thread::GetRegisterContext(), lldb_private::ThreadPlan::GetThread(), LLDB_LOG, LLDB_LOGF, m_breakpoint_addr, SetAutoContinue(), lldb_private::Step, and lldb_private::Thread::StopReasonAsString().
|
overrideprotectedvirtual |
Reimplemented from lldb_private::ThreadPlan.
Definition at line 118 of file ThreadPlanStepOverBreakpoint.cpp.
References m_breakpoint_addr, lldb_private::ThreadPlan::m_process, and m_reenabled_breakpoint_site.
|
inline |
Definition at line 37 of file ThreadPlanStepOverBreakpoint.h.
References m_breakpoint_addr.
Referenced by lldb_private::Thread::SetupToStepOverBreakpointIfNeeded(), and lldb_private::ThreadList::WillResume().
|
inline |
Definition at line 48 of file ThreadPlanStepOverBreakpoint.h.
References m_defer_reenable_breakpoint_site.
|
overridevirtual |
Print a description of this thread to the stream s.
thread. Don't expect that the result of GetThread is valid in the description method. This might get called when the underlying Thread has not been reported, so we only know the TID and not the thread.
| [in] | s | The stream to which to print the description. |
| [in] | level | The level of description desired. Note that eDescriptionLevelBrief will be used in the stop message printed when the plan is complete. |
Implements lldb_private::ThreadPlan.
Definition at line 43 of file ThreadPlanStepOverBreakpoint.cpp.
References m_breakpoint_addr, m_breakpoint_site_id, and lldb_private::Stream::Printf().
|
overridevirtual |
Implements lldb_private::ThreadPlan.
Definition at line 114 of file ThreadPlanStepOverBreakpoint.cpp.
References lldb::eStateStepping.
|
overridevirtual |
Reimplemented from lldb_private::ThreadPlan.
Definition at line 186 of file ThreadPlanStepOverBreakpoint.cpp.
References lldb_private::Thread::GetRegisterContext(), lldb_private::ThreadPlan::GetThread(), and m_breakpoint_addr.
|
overridevirtual |
Reimplemented from lldb_private::ThreadPlan.
Definition at line 138 of file ThreadPlanStepOverBreakpoint.cpp.
References lldb_private::GetLog(), lldb_private::Thread::GetRegisterContext(), lldb_private::ThreadPlan::GetThread(), LLDB_LOGF, m_breakpoint_addr, lldb_private::ThreadPlan::MischiefManaged(), ReenableBreakpointSite(), and lldb_private::Step.
|
privatedelete |
References ThreadPlanStepOverBreakpoint().
|
protected |
Definition at line 156 of file ThreadPlanStepOverBreakpoint.cpp.
References lldb_private::UserID::GetID(), lldb_private::ThreadPlan::GetThread(), m_breakpoint_addr, m_defer_reenable_breakpoint_site, lldb_private::ThreadPlan::m_process, and m_reenabled_breakpoint_site.
Referenced by DidPop(), MischiefManaged(), ThreadDestroyed(), and WillStop().
| void ThreadPlanStepOverBreakpoint::SetAutoContinue | ( | bool | do_it | ) |
Definition at line 178 of file ThreadPlanStepOverBreakpoint.cpp.
References m_auto_continue.
Referenced by DoPlanExplainsStop(), and lldb_private::Thread::SetupToStepOverBreakpointIfNeeded().
|
inline |
When set to true, the breakpoint site will NOT be re-enabled directly by this plan.
Instead, the plan will call ThreadList::ThreadFinishedSteppingOverBreakpoint() when it completes, allowing ThreadList to track all threads stepping over the same breakpoint and only re-enable it when ALL threads have finished.
Definition at line 44 of file ThreadPlanStepOverBreakpoint.h.
References m_defer_reenable_breakpoint_site.
Referenced by lldb_private::ThreadList::WillResume().
|
inline |
Mark the breakpoint site as already re-enabled, suppressing any re-enable in DidPop()/ThreadDestroyed().
Used when discarding plans during WillResume cleanup to avoid spurious breakpoint toggles.
Definition at line 55 of file ThreadPlanStepOverBreakpoint.h.
References m_reenabled_breakpoint_site.
Returns whether this thread plan overrides the ShouldStop of subsequently processed plans.
When processing the thread plan stack, this function gives plans the ability to continue - even when subsequent plans return true from ShouldStop.
Reimplemented from lldb_private::ThreadPlan.
Definition at line 182 of file ThreadPlanStepOverBreakpoint.cpp.
References m_auto_continue.
Referenced by ShouldStop().
Implements lldb_private::ThreadPlan.
Definition at line 101 of file ThreadPlanStepOverBreakpoint.cpp.
References ShouldAutoContinue().
|
overridevirtual |
Reimplemented from lldb_private::ThreadPlan.
Definition at line 105 of file ThreadPlanStepOverBreakpoint.cpp.
|
overridevirtual |
Reimplemented from lldb_private::ThreadPlan.
Definition at line 112 of file ThreadPlanStepOverBreakpoint.cpp.
|
overridevirtual |
Reimplemented from lldb_private::ThreadPlan.
Definition at line 174 of file ThreadPlanStepOverBreakpoint.cpp.
References ReenableBreakpointSite().
Returns whether this plan could be successfully created.
| [in] | error | A stream to which to print some reason why the plan could not be created. Can be NULL. |
Implements lldb_private::ThreadPlan.
Definition at line 49 of file ThreadPlanStepOverBreakpoint.cpp.
References error().
|
overridevirtual |
Implements lldb_private::ThreadPlan.
Definition at line 131 of file ThreadPlanStepOverBreakpoint.cpp.
References ReenableBreakpointSite().
|
private |
Definition at line 66 of file ThreadPlanStepOverBreakpoint.h.
Referenced by SetAutoContinue(), ShouldAutoContinue(), and ThreadPlanStepOverBreakpoint().
|
private |
Definition at line 64 of file ThreadPlanStepOverBreakpoint.h.
Referenced by DoPlanExplainsStop(), DoWillResume(), GetBreakpointLoadAddress(), GetDescription(), IsPlanStale(), MischiefManaged(), ReenableBreakpointSite(), and ThreadPlanStepOverBreakpoint().
|
private |
Definition at line 65 of file ThreadPlanStepOverBreakpoint.h.
Referenced by GetDescription(), and ThreadPlanStepOverBreakpoint().
|
private |
Definition at line 68 of file ThreadPlanStepOverBreakpoint.h.
Referenced by GetDeferReenableBreakpointSite(), ReenableBreakpointSite(), SetDeferReenableBreakpointSite(), and ThreadPlanStepOverBreakpoint().
|
private |
Definition at line 67 of file ThreadPlanStepOverBreakpoint.h.
Referenced by DoWillResume(), ReenableBreakpointSite(), SetReenabledBreakpointSite(), and ThreadPlanStepOverBreakpoint().