i try it in kali system
I got the following results:
Код:
class CBasePlayer : public CBaseMonster {
public:
/* class CBaseMonster <ancestor>; */ /* 0 0 */
/* XXX 680 bytes hole, try to pack */
/* --- cacheline 10 boundary (640 bytes) was 40 bytes ago --- */
class EHANDLE m_hObserverTarget; /* 680 8 */
float m_flNextObserverInput; /* 688 4 */
int m_iObservedWeaponId; /* 692 4 */
int m_iObserverMode; /* 696 4 */
int random_seed; /* 700 4 */
/* --- cacheline 11 boundary (704 bytes) --- */
int m_iPlayerSound; /* 704 4 */
int m_iTargetVolume; /* 708 4 */
int m_iWeaponVolume; /* 712 4 */
int m_iExtraSoundTypes; /* 716 4 */
int m_iWeaponFlash; /* 720 4 */
float m_flStopExtraSoundTime; /* 724 4 */
float m_flFlashLightTime; /* 728 4 */
int m_iFlashBattery; /* 732 4 */
int m_afButtonLast; /* 736 4 */
int m_afButtonPressed; /* 740 4 */
int m_afButtonReleased; /* 744 4 */
edict_t * m_pentSndLast; /* 748 4 */
float m_flSndRoomtype; /* 752 4 */
float m_flSndRange; /* 756 4 */
float m_flFallVelocity; /* 760 4 */
int m_rgItems[5]; /* 764 20 */
/* --- cacheline 12 boundary (768 bytes) was 16 bytes ago --- */
int m_fKnownItem; /* 784 4 */
int m_fNewAmmo; /* 788 4 */
unsigned int m_afPhysicsFlags; /* 792 4 */
float m_fNextSuicideTime; /* 796 4 */
float m_flTimeStepSound; /* 800 4 */
float m_flTimeWeaponIdle; /* 804 4 */
float m_flSwimTime; /* 808 4 */
float m_flDuckTime; /* 812 4 */
float m_flWallJumpTime; /* 816 4 */
float m_flSuitUpdate; /* 820 4 */
int m_rgSuitPlayList[4]; /* 824 16 */
/* --- cacheline 13 boundary (832 bytes) was 8 bytes ago --- */
int m_iSuitPlayNext; /* 840 4 */
int m_rgiSuitNoRepeat[32]; /* 844 128 */
/* --- cacheline 15 boundary (960 bytes) was 12 bytes ago --- */
float m_rgflSuitNoRepeatTime[32]; /* 972 128 */
/* --- cacheline 17 boundary (1088 bytes) was 12 bytes ago --- */
int m_lastDamageAmount; /* 1100 4 */
float m_tbdPrev; /* 1104 4 */
float m_flgeigerRange; /* 1108 4 */
float m_flgeigerDelay; /* 1112 4 */
int m_igeigerRangePrev; /* 1116 4 */
int m_iStepLeft; /* 1120 4 */
char m_szTextureName[13]; /* 1124 13 */
char m_chTextureType; /* 1137 1 */
/* XXX 2 bytes hole, try to pack */
int m_idrowndmg; /* 1140 4 */
int m_idrownrestored; /* 1144 4 */
int m_bitsHUDDamage; /* 1148 4 */
/* --- cacheline 18 boundary (1152 bytes) --- */
BOOL m_fInitHUD; /* 1152 4 */
BOOL m_fGameHUDInitialized; /* 1156 4 */
int m_iTrain; /* 1160 4 */
BOOL m_fWeapon; /* 1164 4 */
class EHANDLE m_pTank; /* 1168 8 */
float m_fDeadTime; /* 1176 4 */
BOOL m_fNoPlayerSound; /* 1180 4 */
BOOL m_fLongJump; /* 1184 4 */
float m_tSneaking; /* 1188 4 */
int m_iUpdateTime; /* 1192 4 */
int m_iClientHealth; /* 1196 4 */
int m_iClientBattery; /* 1200 4 */
int m_iHideHUD; /* 1204 4 */
int m_iClientHideHUD; /* 1208 4 */
int m_iFOV; /* 1212 4 */
/* --- cacheline 19 boundary (1216 bytes) --- */
int m_iClientFOV; /* 1216 4 */
class CBasePlayerItem * m_rgpPlayerItems[6]; /* 1220 24 */
class CBasePlayerItem * m_pActiveItem; /* 1244 4 */
class CBasePlayerItem * m_pClientActiveItem; /* 1248 4 */
class CBasePlayerItem * m_pLastItem; /* 1252 4 */
int m_rgAmmo[32]; /* 1256 128 */
/* --- cacheline 21 boundary (1344 bytes) was 40 bytes ago --- */
int m_rgAmmoLast[32]; /* 1384 128 */
/* --- cacheline 23 boundary (1472 bytes) was 40 bytes ago --- */
class Vector m_vecAutoAim; /* 1512 12 */
BOOL m_fOnTarget; /* 1524 4 */
int m_iDeaths; /* 1528 4 */
float m_flDeathAnimationStartTime; /* 1532 4 */
/* --- cacheline 24 boundary (1536 bytes) --- */
int m_lastx; /* 1536 4 */
int m_lasty; /* 1540 4 */
int m_nCustomSprayFrames; /* 1544 4 */
float m_flNextDecalTime; /* 1548 4 */
char m_szTeamName[16]; /* 1552 16 */
/* Bitfield combined with previous fields */
TYPEDESCRIPTION m_playerSaveData[38]; /* 0 608 */
/* XXX 960 bytes hole, try to pack */
/* --- cacheline 49 boundary (3136 bytes) --- */
char m_szAnimExtention[32]; /* 1568 32 */
float m_flStartCharge; /* 1600 4 */
float m_flAmmoStartCharge; /* 1604 4 */
float m_flPlayAftershock; /* 1608 4 */
float m_flNextAmmoBurn; /* 1612 4 */
int m_izSBarState[4]; /* 1616 16 */
/* --- cacheline 50 boundary (3200 bytes) --- */
float m_flNextSBarUpdateTime; /* 1632 4 */
float m_flStatusBarDisappearDelay; /* 1636 4 */
char m_SbarString0[128]; /* 1640 128 */
/* --- cacheline 52 boundary (3328 bytes) was 8 bytes ago --- */
char m_SbarString1[128]; /* 1768 128 */
/* --- cacheline 54 boundary (3456 bytes) was 8 bytes ago --- */
int m_iChatFlood; /* 1896 4 */
float m_flNextChatTime; /* 1900 4 */
float m_flNextSpectatorCommand; /* 1904 4 */
float m_flNextFullupdate[2]; /* 1908 8 */
BOOL m_bConnected; /* 1916 4 */
BOOL m_bPutInServer; /* 1920 4 */
BOOL m_bIsBot; /* 1924 4 */
class Vector m_vecLastViewAngles; /* 1928 12 */
int m_iAutoWeaponSwitch; /* 1940 4 */
BOOL m_bInWelcomeCam; /* 1944 4 */
/* --- cacheline 60 boundary (3840 bytes) was 52 bytes ago --- */
/* size: 1948, cachelines: 31, members: 99 */
/* sum members: 2250, holes: 3, sum holes: 1642 */
/* last cacheline: 28 bytes */
/* BRAIN FART ALERT! 1948 != 2250 + 1642(holes), diff = -1944 */
};
But do not give the same results compared with
KORD_12.7 tpcex:
from tpc i see :
Цитата:
int m_iFOV 298 // Field of view.
but in my sample output i see :
Цитата:
int m_iFOV; /* 1212 / 4 = 303 */
It is also the same as the results I get from steam (hl.so)
execute :
Цитата:
pahole --show_only_data_members --nr_members --class_name=CBasePlayer hl_i386.so