Message185337
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 |
|
Date |
User |
Action |
Args |
2013-03-27 14:32:18 | mcobden | set | recipients:
+ mcobden |
2013-03-27 14:32:18 | mcobden | set | messageid: <1364394738.16.0.265916302461.issue17558@psf.upfronthosting.co.za> |
2013-03-27 14:32:18 | mcobden | link | issue17558 messages |
2013-03-27 14:32:17 | mcobden | create | |
|