diff options
author | Pavel Labath <labath@google.com> | 2016-12-06 11:24:51 +0000 |
---|---|---|
committer | Pavel Labath <labath@google.com> | 2016-12-06 11:24:51 +0000 |
commit | 43d354182f44fac52247a4340462e7471e59a00a (patch) | |
tree | 2caef34124c24c3bf8d636da465758edfdc3cce3 /lldb/source/Commands | |
parent | 9335c020c61addbcb8de944d3f44dbfa4a1abafc (diff) | |
download | bcm5719-llvm-43d354182f44fac52247a4340462e7471e59a00a.tar.gz bcm5719-llvm-43d354182f44fac52247a4340462e7471e59a00a.zip |
Use Timeout<> in EvaluateExpressionOptions class
llvm-svn: 288797
Diffstat (limited to 'lldb/source/Commands')
-rw-r--r-- | lldb/source/Commands/CommandObjectExpression.cpp | 4 | ||||
-rw-r--r-- | lldb/source/Commands/CommandObjectWatchpoint.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lldb/source/Commands/CommandObjectExpression.cpp b/lldb/source/Commands/CommandObjectExpression.cpp index ba477cd5f4c..cfb3a6dd511 100644 --- a/lldb/source/Commands/CommandObjectExpression.cpp +++ b/lldb/source/Commands/CommandObjectExpression.cpp @@ -358,9 +358,9 @@ bool CommandObjectExpression::EvaluateExpression(const char *expr, options.SetGenerateDebugInfo(true); if (m_command_options.timeout > 0) - options.SetTimeoutUsec(m_command_options.timeout); + options.SetTimeout(std::chrono::microseconds(m_command_options.timeout)); else - options.SetTimeoutUsec(0); + options.SetTimeout(llvm::None); ExpressionResults success = target->EvaluateExpression( expr, frame, result_valobj_sp, options, &m_fixed_expression); diff --git a/lldb/source/Commands/CommandObjectWatchpoint.cpp b/lldb/source/Commands/CommandObjectWatchpoint.cpp index f143f5ff28d..baa9f4163a6 100644 --- a/lldb/source/Commands/CommandObjectWatchpoint.cpp +++ b/lldb/source/Commands/CommandObjectWatchpoint.cpp @@ -1100,7 +1100,7 @@ protected: options.SetUnwindOnError(true); options.SetKeepInMemory(false); options.SetTryAllThreads(true); - options.SetTimeoutUsec(0); + options.SetTimeout(llvm::None); ExpressionResults expr_result = target->EvaluateExpression(expr, frame, valobj_sp, options); |