summaryrefslogtreecommitdiffstats
path: root/lldb/source/Interpreter/CommandInterpreter.cpp
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2014-05-05 02:26:40 +0000
committerJim Ingham <jingham@apple.com>2014-05-05 02:26:40 +0000
commit1624a2d3c8a9558840b5e17623d232c0aa3c01cd (patch)
treed11f0105a8cca2f3a4c887fbe278b570281ab367 /lldb/source/Interpreter/CommandInterpreter.cpp
parente8a7afef86220229a872b78b5e3dd212574d741a (diff)
downloadbcm5719-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.cpp7
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:
OpenPOWER on IntegriCloud