summaryrefslogtreecommitdiffstats
path: root/lldb/test/functionalities/data-formatter/data-formatter-synthval/myIntSynthProvider.py
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/test/functionalities/data-formatter/data-formatter-synthval/myIntSynthProvider.py')
-rw-r--r--lldb/test/functionalities/data-formatter/data-formatter-synthval/myIntSynthProvider.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/lldb/test/functionalities/data-formatter/data-formatter-synthval/myIntSynthProvider.py b/lldb/test/functionalities/data-formatter/data-formatter-synthval/myIntSynthProvider.py
new file mode 100644
index 00000000000..d37cb0ecc5f
--- /dev/null
+++ b/lldb/test/functionalities/data-formatter/data-formatter-synthval/myIntSynthProvider.py
@@ -0,0 +1,17 @@
+class myIntSynthProvider(object):
+ def __init__(self, valobj, dict):
+ self.valobj = valobj;
+ self.val = self.valobj.GetChildMemberWithName("theValue")
+ def num_children(self):
+ return 0;
+ def get_child_at_index(self, index):
+ return None
+ def get_child_index(self, name):
+ return None
+ def update(self):
+ return False
+ def might_have_children(self):
+ return False
+ def get_value(self):
+ return self.val
+
OpenPOWER on IntegriCloud