[issue17558] gdb debugging python frames in optimised interpreters

2013-07-09 Thread Marcus Cobden

Marcus Cobden added the comment:

Is there anyone who could take a look at this? I'd rather it not bit-rot into 
oblivion.

I know the code quality is rather poor, but I can fix that.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17558
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17558] gdb debugging python frames in optimised interpreters

2013-03-27 Thread Marcus Cobden

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 rep...@bugs.python.org
http://bugs.python.org/issue17558
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17558] gdb debugging python frames in optimised interpreters

2013-03-27 Thread R. David Murray

Changes by R. David Murray rdmur...@bitdance.com:


--
nosy: +dmalcolm

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17558
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com