Blame SOURCES/gdb-pahole-python2.patch

e1d87d
diff --git a/gdb/python/lib/gdb/command/pahole.py b/gdb/python/lib/gdb/command/pahole.py
e1d87d
index e08eaf5..56c1737 100644
e1d87d
--- a/gdb/python/lib/gdb/command/pahole.py
e1d87d
+++ b/gdb/python/lib/gdb/command/pahole.py
e1d87d
@@ -55,19 +55,19 @@ It prints the type and displays comments showing where holes are."""
e1d87d
                 fieldsize = 8 * ftype.sizeof
e1d87d
 
e1d87d
             # TARGET_CHAR_BIT
e1d87d
-            print (' /* %3d %3d */' % (int (bitpos / 8), int (fieldsize / 8)), end = "")
e1d87d
+            print (' /* %3d %3d */' % (int (bitpos / 8), int (fieldsize / 8))),
e1d87d
             bitpos = bitpos + fieldsize
e1d87d
 
e1d87d
             if ftype.code == gdb.TYPE_CODE_STRUCT:
e1d87d
                 self.pahole (ftype, level + 1, field.name)
e1d87d
             else:
e1d87d
-                print (' ' * (2 + 2 * level), end = "")
e1d87d
+                print (' ' * (2 + 2 * level)),
e1d87d
                 print ('%s %s' % (str (ftype), field.name))
e1d87d
 
e1d87d
         if level == 0:
e1d87d
             self.maybe_print_hole(bitpos, 8 * type.sizeof)
e1d87d
 
e1d87d
-        print (' ' * (14 + 2 * level), end = "")
e1d87d
+        print (' ' * (14 + 2 * level)),
e1d87d
         print ('} %s' % name)
e1d87d
 
e1d87d
     def invoke (self, arg, from_tty):
e1d87d
@@ -75,7 +75,7 @@ It prints the type and displays comments showing where holes are."""
e1d87d
         type = type.strip_typedefs ()
e1d87d
         if type.code != gdb.TYPE_CODE_STRUCT:
e1d87d
             raise (TypeError, '%s is not a struct type' % arg)
e1d87d
-        print (' ' * 14, end = "")
e1d87d
+        print (' ' * 14),
e1d87d
         self.pahole (type, 0, '')
e1d87d
 
e1d87d
 Pahole()