Fixes bpo-29680: Older gdb does not have gdb.error. (GH-363) (GH-534)

This change is required to make python-dbg.py compatible with GDB versions before 7.3.
(cherry picked from commit 661ca8843f)
This commit is contained in:
Mariatta 2017-03-07 02:44:11 -08:00 committed by GitHub
parent 33d70d1721
commit 23b26c4e20

View file

@ -714,7 +714,7 @@ class PyDictObjectPtr(PyObjectPtr):
try:
# <= Python 3.5
return keys['dk_entries'], dk_size
except gdb.error:
except RuntimeError:
# >= Python 3.6
pass