]> granicus.if.org Git - python/commit
bpo-30983: [gdb] Fix py-bt, etc. for non-debug shared builds (#3153)
authorŁukasz Langa <lukasz@langa.pl>
Mon, 21 Aug 2017 23:40:29 +0000 (16:40 -0700)
committerGitHub <noreply@github.com>
Mon, 21 Aug 2017 23:40:29 +0000 (16:40 -0700)
commit5fe59f8e3a0a56a155c18f9d581205ec533764b6
tree18c9d827e32f95d6b64a55f69a718330bd7cb8ae
parentea57923e89aa4a1bde1d4fa1de7d6eacff603683
bpo-30983: [gdb] Fix py-bt, etc. for non-debug shared builds (#3153)

PEP 523 introduced _PyEval_EvalFrameDefault which inlines PyEval_EvalFrameEx on
non-debug shared builds.  This breaks the ability to use py-bt, py-up, and
a few other Python-specific gdb integrations.

This patch fixes the problem by only looking for _PyEval_EvalFrameDefault
frames.

test_gdb passes on both a debug and a non-debug build.

Original patch by Bruno "Polaco" Penteado.
Misc/ACKS
Misc/NEWS.d/next/Tools-Demos/2017-08-18-17-19-23.bpo-30983.ggGz9z.rst [new file with mode: 0644]
Tools/gdb/libpython.py