summaryrefslogtreecommitdiffstats
path: root/lldb/source/API/SBValue.cpp
diff options
context:
space:
mode:
authorEnrico Granata <egranata@apple.com>2012-09-05 20:41:26 +0000
committerEnrico Granata <egranata@apple.com>2012-09-05 20:41:26 +0000
commitd4439aa9ed02cd7445d2edff4e30a5472bc379c1 (patch)
tree426849abc4056cc71b8f1553c1ee0a11a8816dc6 /lldb/source/API/SBValue.cpp
parentd0855e180ded62d29faea57635063e8de8687011 (diff)
downloadbcm5719-llvm-d4439aa9ed02cd7445d2edff4e30a5472bc379c1.tar.gz
bcm5719-llvm-d4439aa9ed02cd7445d2edff4e30a5472bc379c1.zip
Implementing an Options class for EvaluateExpression() in order to make the signature more compact and make it easy to 'just run an expression'
llvm-svn: 163239
Diffstat (limited to 'lldb/source/API/SBValue.cpp')
-rw-r--r--lldb/source/API/SBValue.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/lldb/source/API/SBValue.cpp b/lldb/source/API/SBValue.cpp
index 21f24a28993..46f5e07ebdc 100644
--- a/lldb/source/API/SBValue.cpp
+++ b/lldb/source/API/SBValue.cpp
@@ -732,14 +732,12 @@ SBValue::CreateValueFromExpression (const char *name, const char* expression)
Target* target = exe_ctx.GetTargetPtr();
if (target)
{
+ Target::EvaluateExpressionOptions options;
+ options.SetKeepInMemory(true);
target->EvaluateExpression (expression,
exe_ctx.GetFramePtr(),
- eExecutionPolicyOnlyWhenNeeded,
- false, // coerce to id
- true, // unwind on error
- true, // keep in memory
- eNoDynamicValues,
- new_value_sp);
+ new_value_sp,
+ options);
if (new_value_sp)
{
new_value_sp->SetName(ConstString(name));
OpenPOWER on IntegriCloud