summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2022-02-01 17:12:26 (GMT)
committerGitHub <noreply@github.com>2022-02-01 17:12:26 (GMT)
commitbebaa95fd0f44babf8b6bcffd8f2908c73ca259e (patch)
tree8a79ca78d827d5153f8bee5c197fc5d0c147b502 /Misc
parentf78be59c83c151d94902daef56218530c52e29e7 (diff)
downloadcpython-bebaa95fd0f44babf8b6bcffd8f2908c73ca259e.zip
cpython-bebaa95fd0f44babf8b6bcffd8f2908c73ca259e.tar.gz
cpython-bebaa95fd0f44babf8b6bcffd8f2908c73ca259e.tar.bz2
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.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Tests/2022-02-01-17-13-53.bpo-46600.FMCk8Z.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Tests/2022-02-01-17-13-53.bpo-46600.FMCk8Z.rst b/Misc/NEWS.d/next/Tests/2022-02-01-17-13-53.bpo-46600.FMCk8Z.rst
new file mode 100644
index 0000000..0ae1d4d
--- /dev/null
+++ b/Misc/NEWS.d/next/Tests/2022-02-01-17-13-53.bpo-46600.FMCk8Z.rst
@@ -0,0 +1,2 @@
+Fix test_gdb.test_pycfunction() for Python built with ``clang -Og``.
+Tolerate inlined functions in the gdb traceback. Patch by Victor Stinner.