diff options
author | Jason Molenda <jmolenda@apple.com> | 2013-08-06 23:08:59 +0000 |
---|---|---|
committer | Jason Molenda <jmolenda@apple.com> | 2013-08-06 23:08:59 +0000 |
commit | a688acc09a9a3e31a02d34a58f21e034bdebcad4 (patch) | |
tree | ebc66229ef891deff822facc656ce4a76939b5af | |
parent | 4300bb1e6e55c9711f56474d8b0fc02795a86c32 (diff) | |
download | lldb-a688acc09a9a3e31a02d34a58f21e034bdebcad4.tar.gz |
Test to see if logging is enabled before printing
to a log channel in StopInfoBreakpoint::PerformAction().
<rdar://problem/14651751>
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@187833 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | source/Target/StopInfo.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/Target/StopInfo.cpp b/source/Target/StopInfo.cpp index 247936801..81b9d866f 100644 --- a/source/Target/StopInfo.cpp +++ b/source/Target/StopInfo.cpp @@ -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; |