[0.1.x] updated : rename loadPtrArray to loadPtrs ( as it was on 0.0.x )

git-svn-id: https://pykd.svn.codeplex.com/svn@75379 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
SND\kernelnet_cp 2012-04-09 15:47:36 +00:00 committed by Mikhail I. Izmestev
parent d9d5cdfd8d
commit 89e30037a3
3 changed files with 4 additions and 5 deletions

View File

@ -223,7 +223,7 @@ BOOST_PYTHON_MODULE( pykd )
"Return string represention of windows ANSI_STRING type" ) "Return string represention of windows ANSI_STRING type" )
.def( "loadPtrList", &DebugClient::loadPtrList, .def( "loadPtrList", &DebugClient::loadPtrList,
"Return list of pointers, each points to next" ) "Return list of pointers, each points to next" )
.def( "loadPtrArray", &DebugClient::loadPtrArray, .def( "loadPtrs", &DebugClient::loadPtrArray,
"Read the block of the target's memory and return it as a list of pointers" ) "Read the block of the target's memory and return it as a list of pointers" )
.def( "ptrByte", &DebugClient::ptrByte, .def( "ptrByte", &DebugClient::ptrByte,
"Read an unsigned 1-byte integer from the target memory" ) "Read an unsigned 1-byte integer from the target memory" )
@ -418,7 +418,7 @@ BOOST_PYTHON_MODULE( pykd )
"Return string represention of windows ANSU_STRING type" ); "Return string represention of windows ANSU_STRING type" );
python::def( "loadPtrList", &loadPtrList, python::def( "loadPtrList", &loadPtrList,
"Return list of pointers, each points to next" ); "Return list of pointers, each points to next" );
python::def( "loadPtrArray", &loadPtrArray, python::def( "loadPtrs", &loadPtrArray,
"Read the block of the target's memory and return it as a list of pointers" ); "Read the block of the target's memory and return it as a list of pointers" );
python::def( "ptrByte", &ptrByte, python::def( "ptrByte", &ptrByte,
"Read an unsigned 1-byte integer from the target memory" ); "Read an unsigned 1-byte integer from the target memory" );

View File

@ -49,6 +49,7 @@ class BaseTest( unittest.TestCase ):
self.assertTrue( hasattr(pykd, 'loadDump') ) self.assertTrue( hasattr(pykd, 'loadDump') )
self.assertTrue( hasattr(pykd, 'loadModule') ) self.assertTrue( hasattr(pykd, 'loadModule') )
self.assertTrue( hasattr(pykd, 'loadQWords') ) self.assertTrue( hasattr(pykd, 'loadQWords') )
self.assertTrue( hasattr(pykd, 'loadPtrs') )
self.assertTrue( hasattr(pykd, 'loadSignBytes') ) self.assertTrue( hasattr(pykd, 'loadSignBytes') )
self.assertTrue( hasattr(pykd, 'loadSignDWords') ) self.assertTrue( hasattr(pykd, 'loadSignDWords') )
self.assertTrue( hasattr(pykd, 'loadSignQWords') ) self.assertTrue( hasattr(pykd, 'loadSignQWords') )
@ -103,7 +104,6 @@ class BaseTest( unittest.TestCase ):
self.assertFalse( hasattr(pykd, 'debugEvent') ) self.assertFalse( hasattr(pykd, 'debugEvent') )
self.assertFalse( hasattr(pykd, 'findModule') ) self.assertFalse( hasattr(pykd, 'findModule') )
self.assertFalse( hasattr(pykd, 'loadLinkedList') ) self.assertFalse( hasattr(pykd, 'loadLinkedList') )
self.assertFalse( hasattr(pykd, 'loadPtrs') )
self.assertFalse( hasattr(pykd, 'reloadModule') ) self.assertFalse( hasattr(pykd, 'reloadModule') )
self.assertFalse( hasattr(pykd, 'sizeof') ) self.assertFalse( hasattr(pykd, 'sizeof') )
self.assertFalse( hasattr(pykd, 'windbgIn') ) self.assertFalse( hasattr(pykd, 'windbgIn') )
@ -121,7 +121,6 @@ class BaseTest( unittest.TestCase ):
self.assertTrue( hasattr(pykd, 'killProcess') ) self.assertTrue( hasattr(pykd, 'killProcess') )
self.assertTrue( hasattr(pykd, 'loadExt') ) self.assertTrue( hasattr(pykd, 'loadExt') )
self.assertTrue( hasattr(pykd, 'loadPtrList') ) self.assertTrue( hasattr(pykd, 'loadPtrList') )
self.assertTrue( hasattr(pykd, 'loadPtrArray') )
self.assertTrue( hasattr(pykd, 'setExecutionStatus') ) self.assertTrue( hasattr(pykd, 'setExecutionStatus') )
self.assertTrue( hasattr(pykd, 'waitForEvent') ) self.assertTrue( hasattr(pykd, 'waitForEvent') )

View File

@ -92,7 +92,7 @@ class MemoryTest( unittest.TestCase ):
self.assertEqual( 3, len( lst ) ) self.assertEqual( 3, len( lst ) )
def testPtrArray( self ): def testPtrArray( self ):
lst = pykd.loadPtrArray( target.module.arrIntMatrixPtrs, 3 ) lst = pykd.loadPtrs( target.module.arrIntMatrixPtrs, 3 )
self.assertEqual( 3, len( lst ) ) self.assertEqual( 3, len( lst ) )
def testInvalidAddr( self ): def testInvalidAddr( self ):