[Lldb-commits] [lldb] 71b4d74 - [lldb] Fixup PopPlan assert
David Spickett via lldb-commits
lldb-commits at lists.llvm.org
Thu Dec 14 08:55:55 PST 2023
Author: David Spickett
Date: 2023-12-14T16:55:07Z
New Revision: 71b4d7498ffecca5957fa0a63b1abf141d7b8441
URL: https://github.com/llvm/llvm-project/commit/71b4d7498ffecca5957fa0a63b1abf141d7b8441
DIFF: https://github.com/llvm/llvm-project/commit/71b4d7498ffecca5957fa0a63b1abf141d7b8441.diff
LOG: [lldb] Fixup PopPlan assert
Fixes 481bb62e50317cf20df9493aad842790162ac3e7.
Added:
Modified:
lldb/source/Target/Thread.cpp
Removed:
################################################################################
diff --git a/lldb/source/Target/Thread.cpp b/lldb/source/Target/Thread.cpp
index 11aff37ac8c63..4801e3e58d9ef 100644
--- a/lldb/source/Target/Thread.cpp
+++ b/lldb/source/Target/Thread.cpp
@@ -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();
More information about the lldb-commits
mailing list