[Python-checkins] bpo-42208: Fix test_gdb for gc_collect_main() name (GH-23041)
vstinner
webhook-mailer at python.org
Fri Oct 30 16:09:56 EDT 2020
https://github.com/python/cpython/commit/b9ee4af4c643a323779fd7076e80b29d611f2709
commit: b9ee4af4c643a323779fd7076e80b29d611f2709
branch: master
author: Victor Stinner <vstinner at python.org>
committer: vstinner <vstinner at python.org>
date: 2020-10-30T21:09:48+01:00
summary:
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).
files:
M Tools/gdb/libpython.py
diff --git a/Tools/gdb/libpython.py b/Tools/gdb/libpython.py
index 33bf5ac821fff..83a5fa93cf447 100755
--- a/Tools/gdb/libpython.py
+++ b/Tools/gdb/libpython.py
@@ -1605,8 +1605,8 @@ def is_waiting_for_gil(self):
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:
More information about the Python-checkins
mailing list