mirror of
https://github.com/python/cpython
synced 2024-09-15 22:10:19 +00:00
bpo-36974: Fix GDB integration (GH-13665)
As it changes the way functions are called, the PEP 590 implementation skipped the functions that the GDB integration is looking for (by name) to find function calls. Looking for the new helper `cfunction_call_varargs` hopefully fixes the tests, and thus buildbots. The changed frame nuber in test_gdb is due to there being fewer C calls when calling a built-in method.
This commit is contained in:
parent
e70bfa95e6
commit
fecb75c1bb
|
@ -887,7 +887,7 @@ def test_pycfunction(self):
|
|||
breakpoint='time_gmtime',
|
||||
cmds_after_breakpoint=['py-bt-full'],
|
||||
)
|
||||
self.assertIn('#2 <built-in method gmtime', gdb_output)
|
||||
self.assertIn('#1 <built-in method gmtime', gdb_output)
|
||||
|
||||
@unittest.skipIf(python_is_optimized(),
|
||||
"Python was compiled with optimizations")
|
||||
|
|
|
@ -1564,7 +1564,8 @@ def is_other_python_frame(self):
|
|||
return False
|
||||
|
||||
if caller in ('_PyCFunction_FastCallDict',
|
||||
'_PyCFunction_FastCallKeywords'):
|
||||
'_PyCFunction_FastCallKeywords',
|
||||
'cfunction_call_varargs'):
|
||||
arg_name = 'func'
|
||||
# Within that frame:
|
||||
# "func" is the local containing the PyObject* of the
|
||||
|
|
Loading…
Reference in a new issue