summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorPetr Viktorin <encukou@gmail.com>2019-05-29 20:45:41 (GMT)
committerGitHub <noreply@github.com>2019-05-29 20:45:41 (GMT)
commitfecb75c1bb46c818e6579ba422cfa5d0d9d104d1 (patch)
tree36238cb886d5740f29cf07344d89c37931c9a908 /Tools
parente70bfa95e6f0c98b9906f306f24d71f8b7689f87 (diff)
downloadcpython-fecb75c1bb46c818e6579ba422cfa5d0d9d104d1.zip
cpython-fecb75c1bb46c818e6579ba422cfa5d0d9d104d1.tar.gz
cpython-fecb75c1bb46c818e6579ba422cfa5d0d9d104d1.tar.bz2
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.
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/gdb/libpython.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Tools/gdb/libpython.py b/Tools/gdb/libpython.py
index d744cab..d49546f 100755
--- a/Tools/gdb/libpython.py
+++ b/Tools/gdb/libpython.py
@@ -1564,7 +1564,8 @@ class Frame(object):
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