File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -588,7 +588,6 @@ bool ThreadList::WillResume() {
588
588
if (thread_sp->SetupForResume ()) {
589
589
// You can't say "stop others" and also want yourself to be suspended.
590
590
assert (thread_sp->GetCurrentPlan ()->RunState () != eStateSuspended);
591
- run_me_only_list.AddThread (thread_sp);
592
591
thread_to_run = thread_sp;
593
592
if (thread_sp->ShouldRunBeforePublicStop ()) {
594
593
// This takes precedence, so if we find one of these, service it:
@@ -599,7 +598,7 @@ bool ThreadList::WillResume() {
599
598
}
600
599
}
601
600
602
- if (run_me_only_list. GetSize ( false ) > 0 ) {
601
+ if (thread_to_run != nullptr ) {
603
602
Log *log = GetLog (LLDBLog::Step);
604
603
if (log && log->GetVerbose ())
605
604
LLDB_LOGF (log, " Turning on notification of new threads while single "
@@ -615,7 +614,7 @@ bool ThreadList::WillResume() {
615
614
616
615
bool need_to_resume = true ;
617
616
618
- if (run_me_only_list. GetSize ( false ) == 0 ) {
617
+ if (thread_to_run == nullptr ) {
619
618
// Everybody runs as they wish:
620
619
for (pos = m_threads.begin (); pos != end; ++pos) {
621
620
ThreadSP thread_sp (*pos);
You can’t perform that action at this time.
0 commit comments