Add a setting to force stepping to always run all threads.
Also allow ScriptedThreadPlans to set & get their StopOthers state. <rdar://problem/64229484> Differential Revision: https://reviews.llvm.org/D85265
This commit is contained in:
1 parent
71a1f135e4
commit
d3dfd8cec4
12 files changed
+136
-16
No files matched your search
@@ -25,11 +25,12 @@ using namespace lldb_private;
|
||||
|
||||
// ThreadPlanPython
|
||||
|
||||
ThreadPlanPython::ThreadPlanPython(Thread &thread, const char *class_name,
|
||||
ThreadPlanPython::ThreadPlanPython(Thread &thread, const char *class_name,
|
||||
StructuredDataImpl *args_data)
|
||||
: ThreadPlan(ThreadPlan::eKindPython, "Python based Thread Plan", thread,
|
||||
eVoteNoOpinion, eVoteNoOpinion),
|
||||
m_class_name(class_name), m_args_data(args_data), m_did_push(false) {
|
||||
m_class_name(class_name), m_args_data(args_data), m_did_push(false),
|
||||
m_stop_others(false) {
|
||||
SetIsMasterPlan(true);
|
||||
SetOkayToDiscard(true);
|
||||
SetPrivate(false);
|
||||
@@ -162,13 +163,6 @@ lldb::StateType ThreadPlanPython::GetPlanRunState() {
|
||||
}
|
||||
|
||||
// The ones below are not currently exported to Python.
|
||||
|
||||
bool ThreadPlanPython::StopOthers() {
|
||||
// For now Python plans run all threads, but we should add some controls for
|
||||
// this.
|
||||
return false;
|
||||
}
|
||||
|
||||
void ThreadPlanPython::GetDescription(Stream *s, lldb::DescriptionLevel level) {
|
||||
s->Printf("Python thread plan implemented by class %s.",
|
||||
m_class_name.c_str());
|
||||
|
||||
Reference in new issue
Block a user