bpo-42208: Fix test_gdb for gc_collect_main() name (GH-23041) · python/cpython@b9ee4af (original) (raw)
Navigation Menu
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
Commit b9ee4af
The gcmodule.c collect() function was renamed to gc_collect_main(): update gdb/libpython.py (python-gdb.py).
File tree
1 file changed
lines changed
1 file changed
lines changed
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1605,8 +1605,8 @@ def is_waiting_for_gil(self): | ||
1605 | 1605 | return (name == 'take_gil') |
1606 | 1606 | |
1607 | 1607 | 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') | |
1610 | 1610 | |
1611 | 1611 | def get_pyop(self): |
1612 | 1612 | try: |