26 Vote report_stop_vote,
Vote report_run_vote)
88 LLDB_LOG(log,
"returning previous thread plan vote: {0}", prev_vote);
110 return (prev_plan ==
nullptr) ? false : prev_plan->
StopOthers();
132 "%s Thread #%u (0x%p): tid = 0x%4.4" PRIx64
", pc = 0x%8.8" PRIx64
133 ", sp = 0x%8.8" PRIx64
", fp = 0x%8.8" PRIx64
", "
134 "plan = '%s', state = %s, stop others = %d",
137 static_cast<uint64_t
>(
sp),
static_cast<uint64_t
>(
fp),
m_name.c_str(),
141 bool success =
DoWillResume(resume_state, current_plan);
149 static std::atomic<uint32_t> g_nextPlanID{0};
150 return ++g_nextPlanID;
195 s->
PutCString(
"Null thread plan - thread has been destroyed.");
199#ifdef LLDB_CONFIGURATION_DEBUG
201 "error: %s called on thread that has been destroyed (tid = 0x%" PRIx64
202 ", ptid = 0x%" PRIx64
")",
207 "error: %s called on thread that has been destroyed "
208 "(tid = 0x%" PRIx64
", ptid = 0x%" PRIx64
")",
215#ifdef LLDB_CONFIGURATION_DEBUG
217 "error: %s called on thread that has been destroyed (tid = 0x%" PRIx64
218 ", ptid = 0x%" PRIx64
")",
223 "error: %s called on thread that has been destroyed "
224 "(tid = 0x%" PRIx64
", ptid = 0x%" PRIx64
")",
231#ifdef LLDB_CONFIGURATION_DEBUG
233 "error: %s called on thread that has been destroyed (tid = 0x%" PRIx64
234 ", ptid = 0x%" PRIx64
")",
239 "error: %s called on thread that has been destroyed "
240 "(tid = 0x%" PRIx64
", ptid = 0x%" PRIx64
")",
247#ifdef LLDB_CONFIGURATION_DEBUG
249 "error: %s called on thread that has been destroyed (tid = 0x%" PRIx64
250 ", ptid = 0x%" PRIx64
")",
255 "error: %s called on thread that has been destroyed "
256 "(tid = 0x%" PRIx64
", ptid = 0x%" PRIx64
")",
265#ifdef LLDB_CONFIGURATION_DEBUG
267 "error: %s called on thread that has been destroyed (tid = 0x%" PRIx64
268 ", ptid = 0x%" PRIx64
")",
273 "error: %s called on thread that has been destroyed "
274 "(tid = 0x%" PRIx64
", ptid = 0x%" PRIx64
")",
282#ifdef LLDB_CONFIGURATION_DEBUG
284 "error: %s called on thread that has been destroyed (tid = 0x%" PRIx64
285 ", ptid = 0x%" PRIx64
")",
290 "error: %s called on thread that has been destroyed "
291 "(tid = 0x%" PRIx64
", ptid = 0x%" PRIx64
")",
static llvm::raw_ostream & error(Stream &strm)
#define LLDB_LOG(log,...)
The LLDB_LOG* macros defined below are the way to emit log messages.
#define LLDB_LOGF(log,...)
uint64_t GetPC(uint64_t fail_value=LLDB_INVALID_ADDRESS)
uint64_t GetSP(uint64_t fail_value=LLDB_INVALID_ADDRESS)
uint64_t GetFP(uint64_t fail_value=LLDB_INVALID_ADDRESS)
A stream class that can stream formatted output to a file.
size_t PutCString(llvm::StringRef cstr)
Output a C string to the stream.
bool MischiefManaged() override
lldb::StateType GetPlanRunState() override
ThreadPlanNull(Thread &thread)
~ThreadPlanNull() override
bool DoPlanExplainsStop(Event *event_ptr) 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
virtual Vote ShouldReportStop(Event *event_ptr)
virtual bool DoPlanExplainsStop(Event *event_ptr)=0
virtual bool OkayToDiscard()
ThreadPlan(ThreadPlanKind kind, const char *name, Thread &thread, Vote report_stop_vote, Vote report_run_vote)
virtual bool DoWillResume(lldb::StateType resume_state, bool current_plan)
virtual lldb::StateType GetPlanRunState()=0
Vote ShouldReportRun(Event *event_ptr)
bool IsUsuallyUnexplainedStopReason(lldb::StopReason)
LazyBool m_cached_plan_explains_stop
void SetPlanComplete(bool success=true)
Thread & GetThread()
Returns the Thread that is using this thread plan.
bool PlanExplainsStop(Event *event_ptr)
virtual bool StopOthers()
static lldb::user_id_t GetNextID()
bool m_takes_iteration_count
ThreadPlan * GetPreviousPlan()
void ClearThreadCache()
Clear the Thread* cache.
bool WillResume(lldb::StateType resume_state, bool current_plan)
virtual bool MischiefManaged()
bool m_could_not_resolve_hw_bp
lldb::ThreadPlanTracerSP m_tracer_sp
lldb::StateType RunState()
virtual void SetStopOthers(bool new_value)
bool m_is_controlling_plan
void CachePlanExplainsStop(bool does_explain)
std::recursive_mutex m_plan_complete_mutex
virtual lldb::RegisterContextSP GetRegisterContext()=0
A class that represents a running process on the host machine.
Log * GetLog(Cat mask)
Retrieve the Log object for the channel associated with the given log enum.
const char * StateAsCString(lldb::StateType state)
Converts a StateType to a C string.
DescriptionLevel
Description levels for "void GetDescription(Stream *, DescriptionLevel)" calls.
std::shared_ptr< lldb_private::Thread > ThreadSP
StateType
Process and Thread States.
@ eStateRunning
Process or thread is running and can't be examined.
@ eStateStepping
Process or thread is in the process of stepping and can not be examined.
StopReason
Thread stop reasons.
@ eStopReasonInstrumentation
@ eStopReasonExec
Program was re-exec'ed.
@ eStopReasonInterrupt
Thread requested interrupt.
@ eStopReasonThreadExiting
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.