]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-46600: Fix test_gdb.test_pycfunction() for clang -Og (GH-31058)
authorVictor Stinner <vstinner@python.org>
Tue, 1 Feb 2022 17:12:26 +0000 (18:12 +0100)
committerGitHub <noreply@github.com>
Tue, 1 Feb 2022 17:12:26 +0000 (18:12 +0100)
commitbebaa95fd0f44babf8b6bcffd8f2908c73ca259e
tree8a79ca78d827d5153f8bee5c197fc5d0c147b502
parentf78be59c83c151d94902daef56218530c52e29e7
bpo-46600: Fix test_gdb.test_pycfunction() for clang -Og (GH-31058)

Fix test_gdb.test_pycfunction() for Python built with clang -Og.
Tolerate inlined functions in the gdb traceback.

When _testcapimodule.c is built by clang -Og, _null_to_none() is
inlined in meth_varargs() and so gdb returns _null_to_none() as
the frame #1. If it's not inlined, meth_varargs() is the frame #1.
Lib/test/test_gdb.py
Misc/NEWS.d/next/Tests/2022-02-01-17-13-53.bpo-46600.FMCk8Z.rst [new file with mode: 0644]