diff options
| author | Greg Clayton <gclayton@apple.com> | 2013-11-04 19:35:17 +0000 |
|---|---|---|
| committer | Greg Clayton <gclayton@apple.com> | 2013-11-04 19:35:17 +0000 |
| commit | 62afb9f663be1f80d80e3b25ba5fe69245bd28b9 (patch) | |
| tree | e6fa5fdcf76c3390c4a8986098eb2be5d82616b9 /lldb/source/Target/Target.cpp | |
| parent | cfcfee0be4fef4061834a0eabbf33b63074efec3 (diff) | |
| download | bcm5719-llvm-62afb9f663be1f80d80e3b25ba5fe69245bd28b9.tar.gz bcm5719-llvm-62afb9f663be1f80d80e3b25ba5fe69245bd28b9.zip | |
Added a "--debug" option to the "expression" command.
Cleaned up ClangUserExpression::Evaluate() to have only one variant that takes a "const EvaluateExpressionOptions& options" instead of taking many arguments.
The "--debug" option is designed to allow you to debug your expression by stopping at the first instruction (it enables --ignore-breakpoints=true and --unwind-on-error=false) and allowing you to step through your JIT code. It needs to be more integrated with the thread plan, so I am checking this in so Jim Ingham can make it happen.
llvm-svn: 194009
Diffstat (limited to 'lldb/source/Target/Target.cpp')
| -rw-r--r-- | lldb/source/Target/Target.cpp | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/lldb/source/Target/Target.cpp b/lldb/source/Target/Target.cpp index c92a2cc3a4a..f93ae502fd7 100644 --- a/lldb/source/Target/Target.cpp +++ b/lldb/source/Target/Target.cpp @@ -1879,18 +1879,13 @@ Target::EvaluateExpression else { const char *prefix = GetExpressionPrefixContentsAsCString(); - + Error error; execution_results = ClangUserExpression::Evaluate (exe_ctx, - options.GetExecutionPolicy(), - lldb::eLanguageTypeUnknown, - options.DoesCoerceToId() ? ClangUserExpression::eResultTypeId : ClangUserExpression::eResultTypeAny, - options.DoesUnwindOnError(), - options.DoesIgnoreBreakpoints(), - expr_cstr, + options, + expr_cstr, prefix, result_valobj_sp, - options.GetRunOthers(), - options.GetTimeoutUsec()); + error); } m_suppress_stop_hooks = old_suppress_value; |

