[Lldb-commits] [lldb] r158159 - /lldb/trunk/source/API/SBDebugger.cpp

Jim Ingham jingham at apple.com
Thu Jun 7 12:08:08 PDT 2012


Author: jingham
Date: Thu Jun  7 14:08:07 2012
New Revision: 158159

URL: http://llvm.org/viewvc/llvm-project?rev=158159&view=rev
Log:
Add API logging for SBDebugger::MemoryPressureDetected.

Modified:
    lldb/trunk/source/API/SBDebugger.cpp

Modified: lldb/trunk/source/API/SBDebugger.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/API/SBDebugger.cpp?rev=158159&r1=158158&r2=158159&view=diff
==============================================================================
--- lldb/trunk/source/API/SBDebugger.cpp (original)
+++ lldb/trunk/source/API/SBDebugger.cpp Thu Jun  7 14:08:07 2012
@@ -147,7 +147,14 @@
     // non-mandatory. We have seen deadlocks with this function when called
     // so we need to safeguard against this until we can determine what is
     // causing the deadlocks.
+    LogSP log (GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
+    
     const bool mandatory = false;
+    if (log)
+    {
+        log->Printf ("SBDebugger::MemoryPressureDetected (), mandatory = %d", mandatory);
+    }
+    
     ModuleList::RemoveOrphanSharedModules(mandatory);
 }
 





More information about the lldb-commits mailing list