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
This commit is contained in:
Jim Ingham
2015-07-07 22:12:17 +00:00
parent 81afca6bf7
commit 763b2b26a0
3 changed files with 20 additions and 0 deletions

View File

@@ -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)