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 vstinner
Recipients dmalcolm, loewis, ncoghlan, vstinner
Date 2010-04-19.23:13:08
SpamBayes Score 7.221492e-07
Marked as misclassified No
Message-id <1271718790.4.0.0925740821903.issue8437@psf.upfronthosting.co.za>
In-reply-to
Content
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!
History
Date User Action Args
2010-04-19 23:13:10vstinnersetrecipients: + vstinner, loewis, ncoghlan, dmalcolm
2010-04-19 23:13:10vstinnersetmessageid: <1271718790.4.0.0925740821903.issue8437@psf.upfronthosting.co.za>
2010-04-19 23:13:08vstinnerlinkissue8437 messages
2010-04-19 23:13:08vstinnercreate