[Lldb-commits] [lldb] r187833 - Test to see if logging is enabled before printing
Jason Molenda
jmolenda at apple.com
Tue Aug 6 16:08:59 PDT 2013
Author: jmolenda
Date: Tue Aug 6 18:08:59 2013
New Revision: 187833
URL: http://llvm.org/viewvc/llvm-project?rev=187833&view=rev
Log:
Test to see if logging is enabled before printing
to a log channel in StopInfoBreakpoint::PerformAction().
<rdar://problem/14651751>
Modified:
lldb/trunk/source/Target/StopInfo.cpp
Modified: lldb/trunk/source/Target/StopInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Target/StopInfo.cpp?rev=187833&r1=187832&r2=187833&view=diff
==============================================================================
--- lldb/trunk/source/Target/StopInfo.cpp (original)
+++ lldb/trunk/source/Target/StopInfo.cpp Tue Aug 6 18:08:59 2013
@@ -324,7 +324,10 @@ protected:
if (!thread_sp->IsValid())
{
// This shouldn't ever happen, but just in case, don't do more harm.
- log->Printf ("PerformAction got called with an invalid thread.");
+ if (log)
+ {
+ log->Printf ("PerformAction got called with an invalid thread.");
+ }
m_should_stop = true;
m_should_stop_is_valid = true;
return;
More information about the lldb-commits
mailing list