Commit 661ca884 authored by Lev Abalkin's avatar Lev Abalkin Committed by GitHub

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.
parent 3c6314c0
...@@ -715,7 +715,7 @@ class PyDictObjectPtr(PyObjectPtr): ...@@ -715,7 +715,7 @@ class PyDictObjectPtr(PyObjectPtr):
try: try:
# <= Python 3.5 # <= Python 3.5
return keys['dk_entries'], dk_size return keys['dk_entries'], dk_size
except gdb.error: except RuntimeError:
# >= Python 3.6 # >= Python 3.6
pass pass
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment