diff options
author | Jim Ingham <jingham@apple.com> | 2014-02-28 02:52:06 +0000 |
---|---|---|
committer | Jim Ingham <jingham@apple.com> | 2014-02-28 02:52:06 +0000 |
commit | 286fb1ef32243f29c984b4559b1a1207c8af96cd (patch) | |
tree | bc39f81d73c8031654444ef231eb5ffae1d0728d /lldb/source/Target/Process.cpp | |
parent | a51f0f8367acb79177abfb93e5b3533b490448cf (diff) | |
download | bcm5719-llvm-286fb1ef32243f29c984b4559b1a1207c8af96cd.tar.gz bcm5719-llvm-286fb1ef32243f29c984b4559b1a1207c8af96cd.zip |
Plumb the EvaluateExpressionOptions::{Set,Get}StopOthers through the SB API, and make it work in RunThreadPlan.
Also remove SetStopOthers from the ThreadPlanCallFunction, because if the value you have doesn't match what is
in the EvaluateExpressionOptions the plan was passed when created it won't work correctly.
llvm-svn: 202464
Diffstat (limited to 'lldb/source/Target/Process.cpp')
-rw-r--r-- | lldb/source/Target/Process.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lldb/source/Target/Process.cpp b/lldb/source/Target/Process.cpp index 7a7172fa5c1..b7879028514 100644 --- a/lldb/source/Target/Process.cpp +++ b/lldb/source/Target/Process.cpp @@ -5118,7 +5118,12 @@ Process::RunThreadPlan (ExecutionContext &exe_ctx, TimeValue final_timeout = one_thread_timeout; uint32_t timeout_usec = options.GetTimeoutUsec(); - if (options.GetTryAllThreads()) + if (!options.GetStopOthers()) + { + before_first_timeout = false; + final_timeout.OffsetWithMicroSeconds(timeout_usec); + } + else if (options.GetTryAllThreads()) { // If we are running all threads then we take half the time to run all threads, bounded by // .25 sec. |