[Lldb-commits] [lldb] r275185 - Increase "process load" timeout

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Tue Jul 12 09:06:32 PDT 2016


Author: labath
Date: Tue Jul 12 11:06:31 2016
New Revision: 275185

URL: http://llvm.org/viewvc/llvm-project?rev=275185&view=rev
Log:
Increase "process load" timeout

Loading a dynamic library can take quite a long time, since it triggers a number of
shared-library-event stops for dependent libraries. This is especially true for remote targets
due to communication latency. Increase the default 500ms timeout to account for that.

Committing as obvious.

Modified:
    lldb/trunk/source/Plugins/Platform/POSIX/PlatformPOSIX.cpp

Modified: lldb/trunk/source/Plugins/Platform/POSIX/PlatformPOSIX.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Platform/POSIX/PlatformPOSIX.cpp?rev=275185&r1=275184&r2=275185&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Platform/POSIX/PlatformPOSIX.cpp (original)
+++ lldb/trunk/source/Plugins/Platform/POSIX/PlatformPOSIX.cpp Tue Jul 12 11:06:31 2016
@@ -882,6 +882,7 @@ PlatformPOSIX::EvaluateLibdlExpression(l
     expr_options.SetIgnoreBreakpoints(true);
     expr_options.SetExecutionPolicy(eExecutionPolicyAlways);
     expr_options.SetLanguage(eLanguageTypeC_plus_plus);
+    expr_options.SetTimeoutUsec(2000000); // 2 seconds
 
     Error expr_error;
     UserExpression::Evaluate(exe_ctx,




More information about the lldb-commits mailing list