16 lines · python
1import lldb2import lldb.formatters3import lldb.formatters.synth4 5 6class SyntheticChildrenProvider(7 lldb.formatters.synth.PythonObjectSyntheticChildProvider8):9 def __init__(self, value, internal_dict):10 lldb.formatters.synth.PythonObjectSyntheticChildProvider.__init__(11 self, value, internal_dict12 )13 14 def make_children(self):15 return [("ID", 123456), ("Name", "Enrico"), ("Rate", 1.25)]16