[+] added: ptrSize routine ( returns pointer's size at the target platform )

git-svn-id: https://pykd.svn.codeplex.com/svn@55110 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
SND\kernelnet_cp 2010-09-15 11:40:35 +00:00
parent eff19ff608
commit f8341a1a6d
3 changed files with 10 additions and 4 deletions

View File

@ -67,6 +67,7 @@ BOOST_PYTHON_MODULE( pykd )
boost::python::def( "loadDump", &dbgLoadDump ); boost::python::def( "loadDump", &dbgLoadDump );
boost::python::def( "dbgCommand", &dbgCommand ); boost::python::def( "dbgCommand", &dbgCommand );
boost::python::def( "is64bitSystem", is64bitSystem ); boost::python::def( "is64bitSystem", is64bitSystem );
boost::python::def( "ptrSize", ptrSize );
boost::python::def( "reg", &loadRegister ); boost::python::def( "reg", &loadRegister );
boost::python::def( "typedVar", &loadTypedVar ); boost::python::def( "typedVar", &loadTypedVar );
boost::python::def( "typedVarList", &loadTypedVarList ); boost::python::def( "typedVarList", &loadTypedVarList );

View File

@ -33,6 +33,14 @@ is64bitSystem()
/////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////
int
ptrSize()
{
return is64bitSystem() ? 8 : 4;
}
///////////////////////////////////////////////////////////////////////////////////
std::string std::string
dbgSymPath() dbgSymPath()
{ {

View File

@ -7,11 +7,8 @@
bool bool
is64bitSystem(); is64bitSystem();
inline
int int
ptrSize() { ptrSize();
return is64bitSystem() ? 8 : 4;
}
std::string std::string
dbgSymPath(); dbgSymPath();