From aebdf1bed247b7bb91c3c805090f1a688a79c960 Mon Sep 17 00:00:00 2001 From: Jim Ingham Date: Thu, 7 Jun 2012 19:08:07 +0000 Subject: Add API logging for SBDebugger::MemoryPressureDetected. llvm-svn: 158159 --- lldb/source/API/SBDebugger.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lldb/source/API/SBDebugger.cpp') diff --git a/lldb/source/API/SBDebugger.cpp b/lldb/source/API/SBDebugger.cpp index ce85544dce4..c5574d0d019 100644 --- a/lldb/source/API/SBDebugger.cpp +++ b/lldb/source/API/SBDebugger.cpp @@ -147,7 +147,14 @@ SBDebugger::MemoryPressureDetected () // 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); } -- cgit v1.2.3