]> granicus.if.org Git - python/commit
[3.6] bpo-30983: [gdb] Fix py-bt, etc. for non-debug shared builds (GH-3153) (#3192)
authorŁukasz Langa <lukasz@langa.pl>
Tue, 22 Aug 2017 20:20:40 +0000 (13:20 -0700)
committerGitHub <noreply@github.com>
Tue, 22 Aug 2017 20:20:40 +0000 (13:20 -0700)
commit8e572491b59c2334723bfd7411ab2a9fbd100f70
treeba579b9969c2f96b52984663a71a3587d86709c2
parent680f04a926bce04e4320ba883068c345eba502a6
[3.6] bpo-30983: [gdb] Fix py-bt, etc. for non-debug shared builds (GH-3153) (#3192)

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.
(cherry picked from commit 5fe59f8e3a0a56a155c18f9d581205ec533764b6)
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