Skip to content

Commit b9ee4af

Browse files
authored
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).
1 parent dff1ad5 commit b9ee4af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tools/gdb/libpython.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1605,8 +1605,8 @@ def is_waiting_for_gil(self):
16051605
return (name == 'take_gil')
16061606

16071607
def is_gc_collect(self):
1608-
'''Is this frame "collect" within the garbage-collector?'''
1609-
return self._gdbframe.name() == 'collect'
1608+
'''Is this frame gc_collect_main() within the garbage-collector?'''
1609+
return self._gdbframe.name() in ('collect', 'gc_collect_main')
16101610

16111611
def get_pyop(self):
16121612
try:

0 commit comments

Comments
 (0)