MOON
Server: Apache
System: Linux vps.thepromohut.com 2.6.18-398.el5 #1 SMP Tue Sep 16 20:51:48 EDT 2014 i686
User: caretrak (507)
PHP: 5.2.10
Disabled: NONE
Upload Files
File: //proc/self/root/usr/share/gdb/python/gdb/command/pahole.pyc
mò
Ç0Kc@s-dkZdeifd„ƒYZeƒdS(NtPaholecBs)tZdZd„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(tsuperRtselft__init__tgdbtCOMMAND_NONEtCOMPLETE_SYMBOL(R((t+/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|idjo
|i}nd|i}d	t|dƒt|dƒfG||}|itijo|i||d
|iƒqaddd|Gdt|ƒ|ifGHqaWddd|Gd
|GHdS(Nts
%sstruct %s {t iitbitposs$  /* XXX %d bit hole, try to pack */is /* %3d %3d */is%s %sis} %s(tnametNonettypettagtlevelRtfieldstfieldthasattrtstrip_typedefstftypetholetbitsizet	fieldsizetsizeoftinttcodeRtTYPE_CODE_STRUCTRRtstr(
RRRRRRRRRR((RRs6

	



	


"
cCs^ti|ƒ}|iƒ}|itijotd|‚nddG|i	|ddƒdS(Ns%s is not a struct typeR
iiR	(
Rtlookup_typetargRRRRt	TypeErrorRR(RRtfrom_ttyR((RtinvokeCs(t__name__t
__module__t__doc__RRR"(((RRs		&(RtCommandR(RR((Rt?s	7