forked from Imagelibrary/binutils-gdb
Fix PR gdb/19637: bound_registers.py: Add support for Python 3
Fix this the same way gdb/python/lib/gdb/printing.py handles it. gdb/Changelog: 2017-03-17 Jonah Graham <jonah@kichwacoders.com> PR gdb/19637 * python/lib/gdb/printer/bound_registers.py: Add support for Python 3.
This commit is contained in:
committed by
Pedro Alves
parent
4b94dd2de1
commit
7503099f3e
@@ -1,3 +1,9 @@
|
|||||||
|
2017-03-17 Jonah Graham <jonah@kichwacoders.com>
|
||||||
|
|
||||||
|
PR gdb/19637
|
||||||
|
* python/lib/gdb/printer/bound_registers.py: Add support for
|
||||||
|
Python 3.
|
||||||
|
|
||||||
2017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
|
2017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
|
||||||
|
|
||||||
* dwarf2loc.c (indirect_synthetic_pointer): Get data type of
|
* dwarf2loc.c (indirect_synthetic_pointer): Get data type of
|
||||||
|
|||||||
@@ -16,6 +16,11 @@
|
|||||||
|
|
||||||
import gdb.printing
|
import gdb.printing
|
||||||
|
|
||||||
|
if sys.version_info[0] > 2:
|
||||||
|
# Python 3 removed basestring and long
|
||||||
|
basestring = str
|
||||||
|
long = int
|
||||||
|
|
||||||
class MpxBound128Printer:
|
class MpxBound128Printer:
|
||||||
"""Adds size field to a mpx __gdb_builtin_type_bound128 type."""
|
"""Adds size field to a mpx __gdb_builtin_type_bound128 type."""
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user