Skip to content

Commit 661ca88

Browse files
authored
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.
1 parent 3c6314c commit 661ca88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tools/gdb/libpython.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -715,7 +715,7 @@ def _get_entries(self, keys):
715715
try:
716716
# <= Python 3.5
717717
return keys['dk_entries'], dk_size
718-
except gdb.error:
718+
except RuntimeError:
719719
# >= Python 3.6
720720
pass
721721

0 commit comments

Comments
 (0)