This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mcobden
Recipients mcobden
Date 2013-03-27.14:32:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1364394738.16.0.265916302461.issue17558@psf.upfronthosting.co.za>
In-reply-to
Content
I've made some tweaks to the libpython.py util functions to better pick up python frames when using a normal python interpreter.

It's not by any means perfect, but it works on my ubuntu-shipped python interpreter (with debugging symbols installed, but not running the debug interpreter).

It works by finding the top frame via the thread state struct, and then going up the frame stack, comparing the stack pointer to a stack pointer in the C context.

I'd appreciate some feedback/advice :)

https://gist.github.com/leth/5254239/revisions
History
Date User Action Args
2013-03-27 14:32:18mcobdensetrecipients: + mcobden
2013-03-27 14:32:18mcobdensetmessageid: <1364394738.16.0.265916302461.issue17558@psf.upfronthosting.co.za>
2013-03-27 14:32:18mcobdenlinkissue17558 messages
2013-03-27 14:32:17mcobdencreate