the `pystack`, `pystackv`, and `printframe` macros in the sample gdbinit file distributed with python are too fragile. this patch (which relies on gdb 7) is much more robust.
I would prefer if these macros remain standalone (and thus fragile). Despite Python support in gdb, not everyone (more than five years after the bug report) don't use a gdb which was built --with-python. There is better support for gdb integration elsewhere in the CPython code base: Tools/gdb/libpython.py.
History
Date
User
Action
Args
2022-04-11 14:57:32
admin
set
github: 59462
2018-04-05 09:16:06
skip.montanaro
set
status: open -> closednosy: + skip.montanaromessages: + resolution: rejectedstage: resolved