SIGN IN SIGN UP

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.
V
Victor Stinner committed
bebaa95fd0f44babf8b6bcffd8f2908c73ca259e
Parent: f78be59
Committed by GitHub <noreply@github.com> on 2/1/2022, 5:12:26 PM