mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-20 03:23:23 +08:00
[0.3.x] added : isVaRegionValid routine ( check if the virtaul addresses region is valid )
git-svn-id: https://pykd.svn.codeplex.com/svn@89835 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
parent
607e8c0dc0
commit
e18aa54fd4
@ -23,6 +23,12 @@ inline bool isVaValid( kdlib::MEMOFFSET_64 offset )
|
||||
return kdlib::isVaValid(offset);
|
||||
}
|
||||
|
||||
inline bool isVaRegionValid(kdlib::MEMOFFSET_64 offset, unsigned long length)
|
||||
{
|
||||
AutoRestorePyState pystate;
|
||||
return kdlib::isVaRegionValid(offset, length);
|
||||
}
|
||||
|
||||
inline unsigned char ptrByte( kdlib::MEMOFFSET_64 offset )
|
||||
{
|
||||
AutoRestorePyState pystate;
|
||||
|
@ -233,6 +233,8 @@ BOOST_PYTHON_MODULE( pykd )
|
||||
"Extend address to 64 bits formats" );
|
||||
python::def( "isValid", pykd::isVaValid,
|
||||
"Check if the virtual address is valid" );
|
||||
python::def("isVaRegionValid", pykd::isVaRegionValid,
|
||||
"Check if the virtaul addresses region is valid");
|
||||
python::def( "compareMemory", pykd::compareMemory, compareMemory_( python::args( "offset1", "offset2", "length", "phyAddr" ),
|
||||
"Compare two memory buffers by virtual or physical addresses" ) );
|
||||
python::def( "searchMemory", pykd::searchMemoryLst,
|
||||
|
Loading…
Reference in New Issue
Block a user