From 661ca8843fed1183e38db06e52d59ac300bf1c2a Mon Sep 17 00:00:00 2001 From: Lev Abalkin Date: Wed, 1 Mar 2017 13:16:23 -0500 Subject: 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. --- Tools/gdb/libpython.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tools/gdb/libpython.py b/Tools/gdb/libpython.py index 4f45256..0e9df2b 100755 --- a/Tools/gdb/libpython.py +++ b/Tools/gdb/libpython.py @@ -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 -- cgit v0.12