Add an helper class lldb.formatters.synth.PythonObjectSyntheticChildProvider
authorEnrico Granata <egranata@apple.com>
Tue, 30 Aug 2016 23:00:02 +0000 (23:00 +0000)
committerEnrico Granata <egranata@apple.com>
Tue, 30 Aug 2016 23:00:02 +0000 (23:00 +0000)
commit42ff957e257c93b9f0ed3450b7f2ca107fb823d8
tree4723f902e2cc43b18c831cf45603e1b63d9ebf58
parentd01704b149df0eecd294019485d46699010c4a2f
Add an helper class lldb.formatters.synth.PythonObjectSyntheticChildProvider

This class enables one to easily write a synthetic child provider by writing a class that returns pairs of names and primitive Python values - the base class then converts those into LLDB SBValues

Comes with a test case

llvm-svn: 280172
lldb/examples/summaries/synth.py [new file with mode: 0644]
lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/pyobjsynthprovider/Makefile [new file with mode: 0644]
lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/pyobjsynthprovider/TestPyObjSynthProvider.py [new file with mode: 0644]
lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/pyobjsynthprovider/main.cpp [new file with mode: 0644]
lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/pyobjsynthprovider/provider.py [new file with mode: 0644]
lldb/scripts/Python/finish-swig-Python-LLDB.sh