Ñò 55€Lc@s0ddkZdeifd„ƒYZeƒdS(iÿÿÿÿNtPaholecBs)eZdZd„Zd„Zd„ZRS(s“Show the holes in a structure. This command takes a single argument, a type name. It prints the type and displays comments showing where holes are.cCs&tt|ƒidtitiƒdS(Ntpahole(tsuperRt__init__tgdbt COMMAND_NONEtCOMPLETE_SYMBOL(tself((s+/usr/share/gdb/python/gdb/command/pahole.pyRsc Cs|djo d}n|i}|djo d}nddd||fGHd}x|iƒD]}t|dƒpqan|iiƒ}||ijo#|i|}d|GH|i}n|idjo |i} nd|i} d t |dƒt | dƒfG|| }|i t i jo|i ||d |iƒqaddd|Gd t|ƒ|ifGHqaWdd d|Gd |GHdS(Nts %sstruct %s {t iitbitposs$ /* XXX %d bit hole, try to pack */is /* %3d %3d */is%s %sis} %s(tNonettagtfieldsthasattrttypetstrip_typedefsR tbitsizetsizeoftinttcodeRtTYPE_CODE_STRUCTRtnametstr( RRtlevelRR R tfieldtftypetholet fieldsize((s+/usr/share/gdb/python/gdb/command/pahole.pyRs6           " cCsZti|ƒ}|iƒ}|itijotd|‚ndG|i|ddƒdS(Ns%s is not a struct typeR iiRs (Rt lookup_typeRRRt TypeErrorR(Rtargtfrom_ttyR((s+/usr/share/gdb/python/gdb/command/pahole.pytinvokeCs  (t__name__t __module__t__doc__RRR!(((s+/usr/share/gdb/python/gdb/command/pahole.pyRs  &(RtCommandR(((s+/usr/share/gdb/python/gdb/command/pahole.pyts 7