Fixed a potential hang while trying to execute

a function in the inferior.

llvm-svn: 147592
This commit is contained in:
Sean Callanan 2012-01-05 02:00:14 +00:00
parent 8fca6b268b
commit c1b312a5c3
1 changed files with 1 additions and 1 deletions

View 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)