From 8387e2fafebf78e4840e18be3d75ea7b9432faaa Mon Sep 17 00:00:00 2001 From: Enrico Granata Date: Wed, 8 Oct 2014 20:10:09 +0000 Subject: Add a (Python only) lldb.SBSyntheticValueProvider class to our API surface On a suggestion from Jim Ingham, this class allows you to very easily define synthetic child providers that return a synthetic value (in the sense of r219330), but no children Also, document this new feature in our www docs llvm-svn: 219337 --- lldb/scripts/Python/python-extensions.swig | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'lldb/scripts/Python') diff --git a/lldb/scripts/Python/python-extensions.swig b/lldb/scripts/Python/python-extensions.swig index 9e9feb8a3c7..a1d98dea3b2 100644 --- a/lldb/scripts/Python/python-extensions.swig +++ b/lldb/scripts/Python/python-extensions.swig @@ -1047,3 +1047,27 @@ class value(object): def __neq__(self, other): return not self.__eq__(other) %} + +%pythoncode %{ + +class SBSyntheticValueProvider(object): + def __init__(self,valobj): + pass + + def num_children(self): + return 0 + + def get_child_index(self,name): + return None + + def get_child_at_index(self,idx): + return None + + def update(self): + pass + + def has_children(self): + return False + + +%} \ No newline at end of file -- cgit v1.2.3