STINNER Victor <victor.stin...@haypocalc.com> added the comment:

test_gdb pass with add-conditions-for-gdb.Frame.select-to-trunk-003.patch.

In a new patch, or maybe a last version of the add-.... patch, could you move 
all "main" code at the end? I found these instructions:
----
# register Python pretty printer
register (gdb.current_objfile())

# register commands
PyList()
if hasattr(gdb.Frame, 'select'):
    # Not all builds of gdb have gdb.Frame.select
    PyUp()
    PyDown()
PyBacktrace()
PyPrint()
PyLocals()
----

Could you also document how libpython.py is loaded automatically, and can I 
load it manually?

Anyway, thanks for libpython: it really rocks! I often use gdb with 
Misc/gdbinit, but pystack does not always work, and pyo crashs if Python is not 
yet initialized. It will be easier to improve the gdb scripting if it's written 
in Python!

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue8437>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to