Skip to content

Commit 23b26c4

Browse files
authored
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 661ca88)
1 parent 33d70d1 commit 23b26c4

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
@@ -714,7 +714,7 @@ def _get_entries(self, keys):
714714
try:
715715
# <= Python 3.5
716716
return keys['dk_entries'], dk_size
717-
except gdb.error:
717+
except RuntimeError:
718718
# >= Python 3.6
719719
pass
720720

0 commit comments

Comments
 (0)