forked from OSchip/llvm-project
Fixed a potential crash in Process.cpp when we
used a log unchecked. llvm-svn: 137157
This commit is contained in:
parent
406dc1755f
commit
39821ac827
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue