diff options
author | Jim Ingham <jingham@apple.com> | 2014-05-05 02:26:40 +0000 |
---|---|---|
committer | Jim Ingham <jingham@apple.com> | 2014-05-05 02:26:40 +0000 |
commit | 1624a2d3c8a9558840b5e17623d232c0aa3c01cd (patch) | |
tree | d11f0105a8cca2f3a4c887fbe278b570281ab367 /lldb/source/Interpreter/CommandInterpreter.cpp | |
parent | e8a7afef86220229a872b78b5e3dd212574d741a (diff) | |
download | bcm5719-llvm-1624a2d3c8a9558840b5e17623d232c0aa3c01cd.tar.gz bcm5719-llvm-1624a2d3c8a9558840b5e17623d232c0aa3c01cd.zip |
Make the Expression Execution result enum available to the SB API layer.
Add a callback that will allow an expression to be cancelled between the
expression evaluation stages (for the ClangUserExpressions.)
<rdar://problem/16790467>, <rdar://problem/16573440>
llvm-svn: 207944
Diffstat (limited to 'lldb/source/Interpreter/CommandInterpreter.cpp')
-rw-r--r-- | lldb/source/Interpreter/CommandInterpreter.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lldb/source/Interpreter/CommandInterpreter.cpp b/lldb/source/Interpreter/CommandInterpreter.cpp index 929fbfb29c4..576700af3d0 100644 --- a/lldb/source/Interpreter/CommandInterpreter.cpp +++ b/lldb/source/Interpreter/CommandInterpreter.cpp @@ -1456,7 +1456,7 @@ CommandInterpreter::PreprocessCommand (std::string &command) options.SetTryAllThreads(true); options.SetTimeoutUsec(0); - ExecutionResults expr_result = target->EvaluateExpression (expr_str.c_str(), + ExpressionResults expr_result = target->EvaluateExpression (expr_str.c_str(), exe_ctx.GetFramePtr(), expr_result_valobj_sp, options); @@ -1499,6 +1499,11 @@ CommandInterpreter::PreprocessCommand (std::string &command) case eExecutionSetupError: error.SetErrorStringWithFormat("expression setup error for the expression '%s'", expr_str.c_str()); break; + case eExecutionParseError: + error.SetErrorStringWithFormat ("expression parse error for the expression '%s'", expr_str.c_str()); + break; + case eExecutionResultUnavailable: + error.SetErrorStringWithFormat ("expression error fetching result for the expression '%s'", expr_str.c_str()); case eExecutionCompleted: break; case eExecutionDiscarded: |