]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-42208: Fix test_gdb for gc_collect_main() name (GH-23041)
authorVictor Stinner <vstinner@python.org>
Fri, 30 Oct 2020 20:09:48 +0000 (21:09 +0100)
committerGitHub <noreply@github.com>
Fri, 30 Oct 2020 20:09:48 +0000 (21:09 +0100)
The gcmodule.c collect() function was renamed to gc_collect_main():
update gdb/libpython.py (python-gdb.py).

Tools/gdb/libpython.py

index 33bf5ac821fffc201b6d4a741920070fad04511a..83a5fa93cf447e3ba1f4a04aa6bfb9d004f5bbad 100755 (executable)
@@ -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: