aboutsummaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-10-30 21:09:48 +0100
committerGitHub <noreply@github.com>2020-10-30 21:09:48 +0100
commitb9ee4af4c643a323779fd7076e80b29d611f2709 (patch)
tree277e79bb5d5c210d5fed42789782e8bd87645596 /Tools
parentbpo-42208: Move _PyImport_Cleanup() to pylifecycle.c (GH-23040) (diff)
downloadcpython-b9ee4af4c643a323779fd7076e80b29d611f2709.tar.gz
cpython-b9ee4af4c643a323779fd7076e80b29d611f2709.tar.bz2
cpython-b9ee4af4c643a323779fd7076e80b29d611f2709.zip
bpo-42208: Fix test_gdb for gc_collect_main() name (GH-23041)
The gcmodule.c collect() function was renamed to gc_collect_main(): update gdb/libpython.py (python-gdb.py).
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/gdb/libpython.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tools/gdb/libpython.py b/Tools/gdb/libpython.py
index 33bf5ac821f..83a5fa93cf4 100755
--- a/Tools/gdb/libpython.py
+++ b/Tools/gdb/libpython.py
@@ -1605,8 +1605,8 @@ class Frame(object):
return (name == 'take_gil')
def is_gc_collect(self):
- '''Is this frame "collect" within the garbage-collector?'''
- return self._gdbframe.name() == 'collect'
+ '''Is this frame gc_collect_main() within the garbage-collector?'''
+ return self._gdbframe.name() in ('collect', 'gc_collect_main')
def get_pyop(self):
try: