diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2e17123859..40b5deb518 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2016-01-19 Simon Marchi + + * python/lib/gdb/printing.py (_EnumInstance.to_string): Explicitly + convert gdb.Value to integer type using int(). + 2016-01-19 John Baldwin * configure.ac: Include ' % v) - return "0x%x [%s]" % (self.val, " | ".join(flag_list)) + return "0x%x [%s]" % (int(self.val), " | ".join(flag_list)) class FlagEnumerationPrinter(PrettyPrinter): """A pretty-printer which can be used to print a flag-style enumeration.