Test to see if logging is enabled before printing

to a log channel in StopInfoBreakpoint::PerformAction().
<rdar://problem/14651751> 

llvm-svn: 187833
This commit is contained in:
Jason Molenda 2013-08-06 23:08:59 +00:00
parent 13e6ccf341
commit 3f032ff2c5
1 changed files with 4 additions and 1 deletions

View File

@ -324,7 +324,10 @@ protected:
if (!thread_sp->IsValid())
{
// This shouldn't ever happen, but just in case, don't do more harm.
if (log)
{
log->Printf ("PerformAction got called with an invalid thread.");
}
m_should_stop = true;
m_should_stop_is_valid = true;
return;