mirror of
https://github.com/intel/llvm.git
synced 2026-01-16 05:32:28 +08:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user