From 2e8bc0ef2910964afefd1b344f235cc90a800fdb Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Wed, 29 May 2019 21:18:31 +0200 Subject: [PATCH] bpo-36974: Fix GDB integration 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. --- Lib/test/test_gdb.py | 2 +- Tools/gdb/libpython.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Lib/test/test_gdb.py b/Lib/test/test_gdb.py index dbcb5983e9ba1d..3127e69ca9ba1d 100644 --- a/Lib/test/test_gdb.py +++ b/Lib/test/test_gdb.py @@ -887,7 +887,7 @@ def test_pycfunction(self): breakpoint='time_gmtime', cmds_after_breakpoint=['py-bt-full'], ) - self.assertIn('#2