summaryrefslogtreecommitdiffstats
path: root/lldb/scripts/Python/interface/SBValue.i
diff options
context:
space:
mode:
authorEnrico Granata <egranata@apple.com>2014-12-08 23:13:56 +0000
committerEnrico Granata <egranata@apple.com>2014-12-08 23:13:56 +0000
commit0c10a85000074f1e8ac0fa88c853ede7b45818d4 (patch)
treedde9dd18ac5ece1dcde76e8e67638baa44d270ed /lldb/scripts/Python/interface/SBValue.i
parentf5b4d655d2de3fcc7b89eb33aef5a95e01aefdb9 (diff)
downloadbcm5719-llvm-0c10a85000074f1e8ac0fa88c853ede7b45818d4.tar.gz
bcm5719-llvm-0c10a85000074f1e8ac0fa88c853ede7b45818d4.zip
Add the ability for an SBValue to create a persisted version of itself.
Such a persisted version is equivalent to evaluating the value via the expression evaluator, and holding on to the $n result of the expression, except this API can be used on SBValues that do not obviously come from an expression (e.g. are the result of a memory lookup) Expose this via SBValue::Persist() in our public API layer, and ValueObject::Persist() in the lldb_private layer Includes testcase Fixes rdar://19136664 llvm-svn: 223711
Diffstat (limited to 'lldb/scripts/Python/interface/SBValue.i')
-rw-r--r--lldb/scripts/Python/interface/SBValue.i3
1 files changed, 3 insertions, 0 deletions
diff --git a/lldb/scripts/Python/interface/SBValue.i b/lldb/scripts/Python/interface/SBValue.i
index 728dae93249..03938077275 100644
--- a/lldb/scripts/Python/interface/SBValue.i
+++ b/lldb/scripts/Python/interface/SBValue.i
@@ -413,6 +413,9 @@ public:
lldb::SBAddress
GetAddress();
+ lldb::SBValue
+ Persist ();
+
%feature("docstring", "Returns an expression path for this value."
) GetExpressionPath;
bool
OpenPOWER on IntegriCloud