diff options
author | Jim Ingham <jingham@apple.com> | 2015-07-07 22:12:17 +0000 |
---|---|---|
committer | Jim Ingham <jingham@apple.com> | 2015-07-07 22:12:17 +0000 |
commit | 763b2b26a0a1989e43cf41b1bf9f10d2b8713811 (patch) | |
tree | 8b35c16e1437e77e463157152539cd8075d77b9c /lldb/source/API/SBTarget.cpp | |
parent | 81afca6bf7032eb61ba43b32f1380fd9e760c594 (diff) | |
download | bcm5719-llvm-763b2b26a0a1989e43cf41b1bf9f10d2b8713811.tar.gz bcm5719-llvm-763b2b26a0a1989e43cf41b1bf9f10d2b8713811.zip |
Add a version of SBTarget::EvaluateExpression that doesn't require
an options (and makes an appropriate defaulted option for you.)
<rdar://problem/20639202>
llvm-svn: 241632
Diffstat (limited to 'lldb/source/API/SBTarget.cpp')
-rw-r--r-- | lldb/source/API/SBTarget.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lldb/source/API/SBTarget.cpp b/lldb/source/API/SBTarget.cpp index 923885223a5..6597d4e77c7 100644 --- a/lldb/source/API/SBTarget.cpp +++ b/lldb/source/API/SBTarget.cpp @@ -2293,6 +2293,19 @@ SBTarget::FindSymbols (const char *name, lldb::SymbolType symbol_type) } +lldb::SBValue +SBTarget::EvaluateExpression (const char *expr) +{ + TargetSP target_sp(GetSP()); + if (!target_sp) + return SBValue(); + + SBExpressionOptions options; + lldb::DynamicValueType fetch_dynamic_value = target_sp->GetPreferDynamicValue(); + options.SetFetchDynamicValue (fetch_dynamic_value); + options.SetUnwindOnError (true); + return EvaluateExpression(expr, options); +} lldb::SBValue SBTarget::EvaluateExpression (const char *expr, const SBExpressionOptions &options) |