I'd like to use gdb 7's support for debugging Python "inferior processes".
What do I need to be able to do that?
For example:
What flags does the inferior Python's configure script need to have been run with?
Does the inferior Python process have to be Python 2.7 or newer (I see that's when the part of the gdb support for this that's in Python source tree was committed)? Or is Python 2.7 only needed by the gdb process itself?
What files need to have been installed that might not be packaged by all distributions? For example, on packages.ubuntu.com I don't get any hits for python-gdb.py, which I believe is needed.
It would be very handy to know what's needed on particular distributions. I am particularly interested in what's needed for Ubuntu and Centos.
解决方案
Python seems to need to have been comp