GIF89a;
EcchiShell v1.0
/
/
proc/
self/
root/
usr/
share/
gdb/
0:
fieldsize = field.bitsize
else:
# TARGET_CHAR_BIT here...
fieldsize = 8 * ftype.sizeof
# TARGET_CHAR_BIT
print ' /* %3d %3d */' % (int (bitpos / 8), int (fieldsize / 8)),
bitpos = bitpos + fieldsize
if ftype.code == gdb.TYPE_CODE_STRUCT:
self.pahole (ftype, level + 1, field.name)
else:
print ' ' * (2 + 2 * level),
print '%s %s' % (str (ftype), field.name)
if level == 0:
self.maybe_print_hole(bitpos, 8 * type.sizeof)
print ' ' * (14 + 2 * level),
print '} %s' % name
def invoke (self, arg, from_tty):
type = gdb.lookup_type (arg)
type = type.strip_typedefs ()
if type.code != gdb.TYPE_CODE_STRUCT:
raise TypeError, '%s is not a struct type' % arg
print ' ' * 14,
self.pahole (type, 0, '')
Pahole()