mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-21 04:13:22 +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);
|
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 )
|
inline unsigned char ptrByte( kdlib::MEMOFFSET_64 offset )
|
||||||
{
|
{
|
||||||
AutoRestorePyState pystate;
|
AutoRestorePyState pystate;
|
||||||
|
@ -233,6 +233,8 @@ BOOST_PYTHON_MODULE( pykd )
|
|||||||
"Extend address to 64 bits formats" );
|
"Extend address to 64 bits formats" );
|
||||||
python::def( "isValid", pykd::isVaValid,
|
python::def( "isValid", pykd::isVaValid,
|
||||||
"Check if the virtual address is valid" );
|
"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" ),
|
python::def( "compareMemory", pykd::compareMemory, compareMemory_( python::args( "offset1", "offset2", "length", "phyAddr" ),
|
||||||
"Compare two memory buffers by virtual or physical addresses" ) );
|
"Compare two memory buffers by virtual or physical addresses" ) );
|
||||||
python::def( "searchMemory", pykd::searchMemoryLst,
|
python::def( "searchMemory", pykd::searchMemoryLst,
|
||||||
|
Loading…
Reference in New Issue
Block a user