summaryrefslogtreecommitdiffstats
path: root/lldb/source/Target/ThreadList.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Target/ThreadList.cpp')
-rw-r--r--lldb/source/Target/ThreadList.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/lldb/source/Target/ThreadList.cpp b/lldb/source/Target/ThreadList.cpp
index f217cf6560c..3a54c5747d5 100644
--- a/lldb/source/Target/ThreadList.cpp
+++ b/lldb/source/Target/ThreadList.cpp
@@ -331,9 +331,10 @@ ThreadList::ShouldReportRun (Event *event_ptr)
result = eVoteYes;
break;
case eVoteNo:
- log->Printf ("ThreadList::ShouldReportRun() thread %d (0x%4.4x) says don't report.",
- (*pos)->GetIndexID(),
- (*pos)->GetID());
+ if (log)
+ log->Printf ("ThreadList::ShouldReportRun() thread %d (0x%4.4x) says don't report.",
+ (*pos)->GetIndexID(),
+ (*pos)->GetID());
result = eVoteNo;
break;
}
OpenPOWER on IntegriCloud