From 0c10a85000074f1e8ac0fa88c853ede7b45818d4 Mon Sep 17 00:00:00 2001 From: Enrico Granata Date: Mon, 8 Dec 2014 23:13:56 +0000 Subject: 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 --- lldb/scripts/Python/interface/SBValue.i | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lldb/scripts/Python/interface') 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 -- cgit v1.2.3