Issue 15257: Misc/.gdbinit:pystack is too brittle (original) (raw)

Issue15257

Created on 2012-07-05 22:40 by hydroflask, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
mypatch.diff hydroflask,2012-07-05 22:40 review
Messages (3)
msg164701 - (view) Author: (hydroflask) Date: 2012-07-05 22:40
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.
msg222690 - (view) Author: Mark Lawrence (BreamoreBoy) * Date: 2014-07-10 19:24
I'm assuming that we need a patch review on this, sadly it means nothing to me.
msg314972 - (view) Author: Skip Montanaro (skip.montanaro) * (Python triager) Date: 2018-04-05 09:16
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
2014-07-10 19:24:07 BreamoreBoy set nosy: + BreamoreBoymessages: + versions: + Python 3.5, - Python 3.2, Python 3.3
2012-07-06 13:16:00 pitrou set nosy: + dmalcolm
2012-07-06 00:23:50 jcea set nosy: + jcea
2012-07-05 22:44:04 hydroflask set versions: + Python 3.2, Python 3.3, Python 3.4
2012-07-05 22:43:30 hydroflask set components: + Demos and Tools, - None
2012-07-05 22:40:29 hydroflask create