[Lldb-commits] [lldb] r160079 - /lldb/trunk/source/Core/Listener.cpp

Jim Ingham jingham at apple.com
Wed Jul 11 14:40:40 PDT 2012


Author: jingham
Date: Wed Jul 11 16:40:40 2012
New Revision: 160079

URL: http://llvm.org/viewvc/llvm-project?rev=160079&view=rev
Log:
Don't call DoOnRemoval if you are just peeking at events.

Modified:
    lldb/trunk/source/Core/Listener.cpp

Modified: lldb/trunk/source/Core/Listener.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/Listener.cpp?rev=160079&r1=160078&r2=160079&view=diff
==============================================================================
--- lldb/trunk/source/Core/Listener.cpp (original)
+++ lldb/trunk/source/Core/Listener.cpp Wed Jul 11 16:40:40 2012
@@ -304,7 +304,11 @@
         // it so it should be okay to get the next event off the queue here - and it might
         // be useful to do that in the "DoOnRemoval".
         lock.Unlock();
-        event_sp->DoOnRemoval();
+        
+        // Don't call DoOnRemoval if you aren't removing the event...
+        if (remove)
+            event_sp->DoOnRemoval();
+            
         return true;
     }
 





More information about the lldb-commits mailing list