The initial implementation of the Intel PT support for LLDB came with
some Python support. However, when LLDB was upgraded to more modern versions of
SWIG and Python3, the Intel Pt Python API broke and has not been updated since
then.
This makes me believe that no one has used that API in a looong time.
As a fix, I replicated some fixes done in the core LLDB Python support.
Additionally, I added a test that uses entirely the Intel PT Python API and made
some additional fixes to the existing test.
I'm not fond of the existing API design, so I'll be improving it in following
diffs.
I'm adding this small change, which helped a lot to figure out some issues when loading the intel plugin shared object. I hope you don't mind.