summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2011-01-24 05:36:47 +0000
committerGreg Clayton <gclayton@apple.com>2011-01-24 05:36:47 +0000
commitabcbc8aca8febfd0c9a8310a52c45a8a9e815e75 (patch)
treeafc014b9eacf7cc664e22ad3b6f5c14b04b50f03
parentce5798394f523bd895209602b5de1196d88ad290 (diff)
downloadbcm5719-llvm-abcbc8aca8febfd0c9a8310a52c45a8a9e815e75.tar.gz
bcm5719-llvm-abcbc8aca8febfd0c9a8310a52c45a8a9e815e75.zip
Fix a crasher when you have no log.
llvm-svn: 124109
-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