Fixed a potential crash in Process.cpp when we

used a log unchecked.

llvm-svn: 137157
This commit is contained in:
Sean Callanan 2011-08-09 22:07:08 +00:00
parent 406dc1755f
commit 39821ac827
1 changed files with 3 additions and 2 deletions

View File

@ -3724,8 +3724,9 @@ Process::RunThreadPlan (ExecutionContext &exe_ctx,
}
else
{
log->Printf ("Process::RunThreadPlan(): halt failed, I waited and didn't get"
" a stopped event, instead got %s.", StateAsCString(stop_state));
if (log)
log->Printf ("Process::RunThreadPlan(): halt failed, I waited and didn't get"
" a stopped event, instead got %s.", StateAsCString(stop_state));
return_value = eExecutionInterrupted;
break;
}