From 801335cc647582c03ceccdaa1138be4ead514eb7 Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Mon, 31 Mar 2014 19:28:14 +0000 Subject: Fix one thread timeout logic This should fix the seemingly-random failures observed on the FreeBSD buildbot. llvm-svn: 205241 --- lldb/source/Target/Process.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lldb/source/Target/Process.cpp') diff --git a/lldb/source/Target/Process.cpp b/lldb/source/Target/Process.cpp index 3231e1edc08..a4ac782de02 100644 --- a/lldb/source/Target/Process.cpp +++ b/lldb/source/Target/Process.cpp @@ -5181,7 +5181,7 @@ Process::RunThreadPlan (ExecutionContext &exe_ctx, // If the overall wait is forever, then we only need to set the one thread timeout: if (timeout_usec == 0) { - if (option_one_thread_timeout == 0) + if (option_one_thread_timeout != 0) one_thread_timeout.OffsetWithMicroSeconds(option_one_thread_timeout); else one_thread_timeout.OffsetWithMicroSeconds(default_one_thread_timeout_usec); -- cgit v1.2.3