Fixed a potential hang while trying to execute
authorSean Callanan <scallanan@apple.com>
Thu, 5 Jan 2012 02:00:14 +0000 (02:00 +0000)
committerSean Callanan <scallanan@apple.com>
Thu, 5 Jan 2012 02:00:14 +0000 (02:00 +0000)
a function in the inferior.

llvm-svn: 147592

lldb/source/Target/Process.cpp

index 50bcb7a..c673118 100644 (file)
@@ -3796,7 +3796,7 @@ Process::RunThreadPlan (ExecutionContext &exe_ctx,
             real_timeout.OffsetWithMicroSeconds(500000);
             timeout_ptr = &real_timeout;
             
-            got_event = listener.WaitForEvent(NULL, event_sp);
+            got_event = listener.WaitForEvent(timeout_ptr, event_sp);
             if (!got_event) 
             {
                 if (log)