Add API logging for SBDebugger::MemoryPressureDetected.

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@158159 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/API/SBDebugger.cpp b/source/API/SBDebugger.cpp
index ce85544..c5574d0 100644
--- a/source/API/SBDebugger.cpp
+++ b/source/API/SBDebugger.cpp
@@ -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);
 }