mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +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
1 changed files with 1 additions and 1 deletions
|
@ -715,7 +715,7 @@ class PyDictObjectPtr(PyObjectPtr):
|
|||
try:
|
||||
# <= Python 3.5
|
||||
return keys['dk_entries'], dk_size
|
||||
except gdb.error:
|
||||
except RuntimeError:
|
||||
# >= Python 3.6
|
||||
pass
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue