Message 103658 - Python tracker (original) (raw)
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!