Check for errors in Resume before waiting for the resume to complete.

llvm-svn: 111216
This commit is contained in:
Jim Ingham 2010-08-17 00:35:35 +00:00
parent 57a6b999af
commit c55e951523
1 changed files with 6 additions and 1 deletions

View File

@ -515,7 +515,12 @@ ClangFunction::ExecuteFunction (
timeout_ptr = &real_timeout;
}
exe_ctx.process->Resume ();
Error resume_error = exe_ctx.process->Resume ();
if (!resume_error.Success())
{
errors.Printf("Error resuming inferior: \"%s\".\n", resume_error.AsCString());
return eExecutionSetupError;
}
Log *log = lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_STEP);