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
This commit is contained in:
Jim Ingham
2014-05-05 02:26:40 +00:00
parent e8a7afef86
commit 1624a2d3c8
30 changed files with 224 additions and 105 deletions

View File

@@ -5037,13 +5037,13 @@ Process::SettingsTerminate ()
Thread::SettingsTerminate ();
}
ExecutionResults
ExpressionResults
Process::RunThreadPlan (ExecutionContext &exe_ctx,
lldb::ThreadPlanSP &thread_plan_sp,
const EvaluateExpressionOptions &options,
Stream &errors)
{
ExecutionResults return_value = eExecutionSetupError;
ExpressionResults return_value = eExecutionSetupError;
if (thread_plan_sp.get() == NULL)
{
@@ -5939,7 +5939,7 @@ Process::RunThreadPlan (ExecutionContext &exe_ctx,
}
const char *
Process::ExecutionResultAsCString (ExecutionResults result)
Process::ExecutionResultAsCString (ExpressionResults result)
{
const char *result_name;
@@ -5960,6 +5960,12 @@ Process::ExecutionResultAsCString (ExecutionResults result)
case eExecutionSetupError:
result_name = "eExecutionSetupError";
break;
case eExecutionParseError:
result_name = "eExecutionParseError";
break;
case eExecutionResultUnavailable:
result_name = "eExecutionResultUnavailable";
break;
case eExecutionTimedOut:
result_name = "eExecutionTimedOut";
break;