[Lldb-commits] [lldb] r124086 - /lldb/trunk/source/Core/Broadcaster.cpp

Jim Ingham jingham at apple.com
Sun Jan 23 13:20:20 PST 2011


Author: jingham
Date: Sun Jan 23 15:20:20 2011
New Revision: 124086

URL: http://llvm.org/viewvc/llvm-project?rev=124086&view=rev
Log:
A little less noise, please.

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

Modified: lldb/trunk/source/Core/Broadcaster.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/Broadcaster.cpp?rev=124086&r1=124085&r2=124086&view=diff
==============================================================================
--- lldb/trunk/source/Core/Broadcaster.cpp (original)
+++ lldb/trunk/source/Core/Broadcaster.cpp Sun Jan 23 15:20:20 2011
@@ -214,7 +214,7 @@
     const uint32_t event_type = event_sp->GetType();
 
     Mutex::Locker event_types_locker(m_listeners_mutex);
-    LogSP log(lldb_private::GetLogIfAnyCategoriesSet (LIBLLDB_LOG_EVENTS | LIBLLDB_LOG_PROCESS));
+    LogSP log(lldb_private::GetLogIfAnyCategoriesSet (LIBLLDB_LOG_EVENTS));
     if (log)
     {
         StreamString event_description;
@@ -229,6 +229,11 @@
 
     if (m_hijacking_listener != NULL && m_hijacking_mask & event_type)
     {
+        // FIXME: REMOVE THIS EXTRA LOGGING
+        LogSP log_process(lldb_private::GetLogIfAnyCategoriesSet (LIBLLDB_LOG_PROCESS));
+        if (log_process)
+            log_process->Printf ("Hijacking event delivery for Broadcaster(\"%s\").", m_broadcaster_name.AsCString(""));
+            
         if (unique && m_hijacking_listener->PeekAtNextEventForBroadcasterWithType (this, event_type))
             return;
         m_hijacking_listener->AddEvent (event_sp);





More information about the lldb-commits mailing list