mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-21 04:13:22 +08:00
[+] added : typedVarArray routine
git-svn-id: https://pykd.svn.codeplex.com/svn@60656 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
parent
b61ac0b10a
commit
664b047dce
@ -102,6 +102,7 @@ BOOST_PYTHON_MODULE( pykd )
|
|||||||
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 );
|
||||||
|
boost::python::def( "typedVarArray", &loadTypedVarArray );
|
||||||
boost::python::def( "containingRecord", &containingRecord );
|
boost::python::def( "containingRecord", &containingRecord );
|
||||||
boost::python::def( "sizeof", &sizeofType );
|
boost::python::def( "sizeof", &sizeofType );
|
||||||
boost::python::def( "loadModule", &loadModule );
|
boost::python::def( "loadModule", &loadModule );
|
||||||
|
@ -107,6 +107,21 @@ loadTypedVarList( ULONG64 address, const std::string &moduleName, const std::str
|
|||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
boost::python::object
|
||||||
|
loadTypedVarArray( ULONG64 address, const std::string &moduleName, const std::string &typeName, long number )
|
||||||
|
{
|
||||||
|
boost::python::dict objArr;
|
||||||
|
|
||||||
|
const TypeInfo& typeInfo = TypeInfo::get( moduleName, typeName );
|
||||||
|
|
||||||
|
for( long i = 0; i < number; ++i )
|
||||||
|
objArr[i] = loadTypedVar( moduleName, typeName, address + i * typeInfo.size() );
|
||||||
|
|
||||||
|
return objArr;
|
||||||
|
}
|
||||||
|
|
||||||
|
/////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
bool
|
bool
|
||||||
isBaseType( const std::string &typeName );
|
isBaseType( const std::string &typeName );
|
||||||
|
|
||||||
|
@ -19,6 +19,9 @@ loadTypedVar( const std::string &moduleName, const std::string &typeName, ULONG6
|
|||||||
boost::python::object
|
boost::python::object
|
||||||
loadTypedVarList( ULONG64 address, const std::string &moduleName, const std::string &typeName, const std::string &listEntryName );
|
loadTypedVarList( ULONG64 address, const std::string &moduleName, const std::string &typeName, const std::string &listEntryName );
|
||||||
|
|
||||||
|
boost::python::object
|
||||||
|
loadTypedVarArray( ULONG64 address, const std::string &moduleName, const std::string &typeName, long number );
|
||||||
|
|
||||||
boost::python::object
|
boost::python::object
|
||||||
containingRecord( ULONG64 address, const std::string &moduleName, const std::string &typeName, const std::string &fieldName );
|
containingRecord( ULONG64 address, const std::string &moduleName, const std::string &typeName, const std::string &fieldName );
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user