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 | 3f032ff2c521a2a4c452af05c4011db63ae0204d (patch) | |
| tree | 7e2cc239c9d760155c5fd4c42de0477027ae9609 | |
| parent | 13e6ccf341145080ae7cc94c9148368ed3f11402 (diff) | |
| download | bcm5719-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.cpp | 5 |
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; |

