[lldb] Fixup PopPlan assert

Fixes 481bb62e50.
This commit is contained in:
David Spickett
2023-12-14 16:54:47 +00:00
parent 481bb62e50
commit 71b4d7498f

View File

@@ -723,9 +723,10 @@ void Thread::DidStop() { SetState(eStateStopped); }
ThreadPlanSP p; \
while ((p = GetPlans().GetPlanByIndex(i, false))) \
i++; \
(void)i;
assert(i != 1 && "Cannot pop plan when there is only one plan (the base plan)");
}
(void)i; \
assert(i != 1 && \
"Cannot pop plan when there is only one plan (the base plan)"); \
}
bool Thread::ShouldStop(Event *event_ptr) {
ThreadPlan *current_plan = GetCurrentPlan();