diff options
Diffstat (limited to 'share/gdb/python/gdb/printer/bound_registers.py')
-rw-r--r-- | share/gdb/python/gdb/printer/bound_registers.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/share/gdb/python/gdb/printer/bound_registers.py b/share/gdb/python/gdb/printer/bound_registers.py index 9ff94aa..f39d220 100644 --- a/share/gdb/python/gdb/printer/bound_registers.py +++ b/share/gdb/python/gdb/printer/bound_registers.py @@ -1,5 +1,5 @@ # Pretty-printers for bounds registers. -# Copyright (C) 2013-2016 Free Software Foundation, Inc. +# Copyright (C) 2013-2019 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -14,8 +14,15 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +import sys + import gdb.printing +if sys.version_info[0] > 2: + # Python 3 removed basestring and long + basestring = str + long = int + class MpxBound128Printer: """Adds size field to a mpx __gdb_builtin_type_bound128 type.""" |