mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-20 03:23:23 +08:00
[+] 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:
parent
eff19ff608
commit
f8341a1a6d
@ -67,6 +67,7 @@ BOOST_PYTHON_MODULE( pykd )
|
||||
boost::python::def( "loadDump", &dbgLoadDump );
|
||||
boost::python::def( "dbgCommand", &dbgCommand );
|
||||
boost::python::def( "is64bitSystem", is64bitSystem );
|
||||
boost::python::def( "ptrSize", ptrSize );
|
||||
boost::python::def( "reg", &loadRegister );
|
||||
boost::python::def( "typedVar", &loadTypedVar );
|
||||
boost::python::def( "typedVarList", &loadTypedVarList );
|
||||
|
@ -33,6 +33,14 @@ is64bitSystem()
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
int
|
||||
ptrSize()
|
||||
{
|
||||
return is64bitSystem() ? 8 : 4;
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
std::string
|
||||
dbgSymPath()
|
||||
{
|
||||
|
@ -7,11 +7,8 @@
|
||||
bool
|
||||
is64bitSystem();
|
||||
|
||||
inline
|
||||
int
|
||||
ptrSize() {
|
||||
return is64bitSystem() ? 8 : 4;
|
||||
}
|
||||
ptrSize();
|
||||
|
||||
std::string
|
||||
dbgSymPath();
|
||||
|
Loading…
Reference in New Issue
Block a user