mirror of
https://github.com/intel/llvm.git
synced 2026-01-17 06:40:01 +08:00
Check for errors in Resume before waiting for the resume to complete.
llvm-svn: 111216
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user