mirror of
https://github.com/python/cpython
synced 2024-09-16 02:40:00 +00:00
Fixes bpo-29680: Older gdb does not have gdb.error. (#363)
This change is required to make python-dbg.py compatible with GDB versions before 7.3.
This commit is contained in:
parent
3c6314c08d
commit
661ca8843f
|
@ -715,7 +715,7 @@ def _get_entries(self, keys):
|
|||
try:
|
||||
# <= Python 3.5
|
||||
return keys['dk_entries'], dk_size
|
||||
except gdb.error:
|
||||
except RuntimeError:
|
||||
# >= Python 3.6
|
||||
pass
|
||||
|
||||
|
|
Loading…
Reference in a new issue