mirror of
https://github.com/intel/llvm.git
synced 2026-01-22 07:01:03 +08:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user