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