diff options
author | Mariatta <Mariatta@users.noreply.github.com> | 2017-03-07 10:44:11 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-07 10:44:11 (GMT) |
commit | 23b26c4e206427a9e0a1d39240c17a049cf8c732 (patch) | |
tree | e4fa379f3bc301a60ce43ffb3e7efe28883a5d4c | |
parent | 33d70d1721ed8a23d2744f33d5358657adccf4cd (diff) | |
download | cpython-23b26c4e206427a9e0a1d39240c17a049cf8c732.zip cpython-23b26c4e206427a9e0a1d39240c17a049cf8c732.tar.gz cpython-23b26c4e206427a9e0a1d39240c17a049cf8c732.tar.bz2 |
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 661ca8843fed1183e38db06e52d59ac300bf1c2a)
-rwxr-xr-x | Tools/gdb/libpython.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/gdb/libpython.py b/Tools/gdb/libpython.py index cc1afbe..d28851f 100755 --- a/Tools/gdb/libpython.py +++ b/Tools/gdb/libpython.py @@ -714,7 +714,7 @@ class PyDictObjectPtr(PyObjectPtr): try: # <= Python 3.5 return keys['dk_entries'], dk_size - except gdb.error: + except RuntimeError: # >= Python 3.6 pass |