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:
Lev Abalkin 2017-03-01 13:16:23 -05:00 committed by GitHub
parent 3c6314c08d
commit 661ca8843f

View file

@ -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