From d4439aa9ed02cd7445d2edff4e30a5472bc379c1 Mon Sep 17 00:00:00 2001 From: Enrico Granata Date: Wed, 5 Sep 2012 20:41:26 +0000 Subject: Implementing an Options class for EvaluateExpression() in order to make the signature more compact and make it easy to 'just run an expression' llvm-svn: 163239 --- lldb/source/Commands/CommandObjectExpression.cpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'lldb/source/Commands/CommandObjectExpression.cpp') diff --git a/lldb/source/Commands/CommandObjectExpression.cpp b/lldb/source/Commands/CommandObjectExpression.cpp index d192c07..23c9dc1 100644 --- a/lldb/source/Commands/CommandObjectExpression.cpp +++ b/lldb/source/Commands/CommandObjectExpression.cpp @@ -298,15 +298,17 @@ CommandObjectExpression::EvaluateExpression break; } + Target::EvaluateExpressionOptions options; + options.SetCoerceToId(m_command_options.print_object) + .SetUnwindOnError(m_command_options.unwind_on_error) + .SetKeepInMemory(keep_in_memory) + .SetUseDynamic(use_dynamic) + .SetSingleThreadTimeoutUsec(0); + exe_results = target->EvaluateExpression (expr, m_interpreter.GetExecutionContext().GetFramePtr(), - eExecutionPolicyOnlyWhenNeeded, - m_command_options.print_object, - m_command_options.unwind_on_error, - keep_in_memory, - use_dynamic, result_valobj_sp, - 0 /* no timeout */); + options); if (exe_results == eExecutionInterrupted && !m_command_options.unwind_on_error) { -- cgit v1.1