[Lldb-commits] [lldb] lldb] Fix two issues causing TestEvents.py flakiness (PR #194438)

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Mon Apr 27 13:56:30 PDT 2026


================
@@ -4481,7 +4481,9 @@ bool Process::ProcessEventData::ForwardEventToPendingListeners(
 
   // For state changed events, if the update state is zero, we are handling
   // this on the private state thread.  We should wait for the public event.
-  return m_update_state == 1;
+  // After the primary listener processes it, m_update_state becomes 2, which
+  // is when we forward to pending (secondary) listeners.
+  return m_update_state >= 1;
----------------
JDevlieghere wrote:

Yes, you're right. This should be `>` instead of `>=`.

https://github.com/llvm/llvm-project/pull/194438


More information about the lldb-commits mailing list