summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>2013-08-06 23:08:59 +0000
committerJason Molenda <jmolenda@apple.com>2013-08-06 23:08:59 +0000
commit3f032ff2c521a2a4c452af05c4011db63ae0204d (patch)
tree7e2cc239c9d760155c5fd4c42de0477027ae9609
parent13e6ccf341145080ae7cc94c9148368ed3f11402 (diff)
downloadbcm5719-llvm-3f032ff2c521a2a4c452af05c4011db63ae0204d.tar.gz
bcm5719-llvm-3f032ff2c521a2a4c452af05c4011db63ae0204d.zip
Test to see if logging is enabled before printing
to a log channel in StopInfoBreakpoint::PerformAction(). <rdar://problem/14651751> llvm-svn: 187833
-rw-r--r--lldb/source/Target/StopInfo.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/lldb/source/Target/StopInfo.cpp b/lldb/source/Target/StopInfo.cpp
index 2479368011b..81b9d866f71 100644
--- a/lldb/source/Target/StopInfo.cpp
+++ b/lldb/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;
OpenPOWER on IntegriCloud