[Lldb-commits] [lldb] r111216 -	/lldb/trunk/source/Expression/ClangFunction.cpp
    Jim Ingham 
    jingham at apple.com
       
    Mon Aug 16 17:35:35 PDT 2010
    
    
  
Author: jingham
Date: Mon Aug 16 19:35:35 2010
New Revision: 111216
URL: http://llvm.org/viewvc/llvm-project?rev=111216&view=rev
Log:
Check for errors in Resume before waiting for the resume to complete.
Modified:
    lldb/trunk/source/Expression/ClangFunction.cpp
Modified: lldb/trunk/source/Expression/ClangFunction.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Expression/ClangFunction.cpp?rev=111216&r1=111215&r2=111216&view=diff
==============================================================================
--- lldb/trunk/source/Expression/ClangFunction.cpp (original)
+++ lldb/trunk/source/Expression/ClangFunction.cpp Mon Aug 16 19:35:35 2010
@@ -515,7 +515,12 @@
         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);
     
    
    
More information about the lldb-commits
mailing list