[issue17558] gdb debugging python frames in optimised interpreters

Marcus Cobden report at bugs.python.org
Wed Mar 27 15:32:18 CET 2013


New submission from Marcus Cobden:

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

----------
components: Demos and Tools
messages: 185337
nosy: mcobden
priority: normal
severity: normal
status: open
title: gdb debugging python frames in optimised interpreters
type: enhancement
versions: Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17558>
_______________________________________


More information about the Python-bugs-list mailing list