6
class ARMDumpTest(unittest.TestCase):
8
dump_file = os.path.join( os.path.dirname(sys.argv[0]),
9
r"..\..\kdlibcpp\kdlib\tests\dumps\win10_arm_rpi3_mem\win10_arm_rpi3_mem.cab" )
10
self.dump_id = pykd.loadDump( dump_file )
13
pykd.closeDump( self.dump_id )
17
self.assertEqual( 0, pykd.addr64(0) )
18
self.assertEqual( 0xffffffff80000000, pykd.addr64(0x80000000) )
21
self.assertEqual( pykd.CPUType.ARM, pykd.getCPUType() )
22
self.assertEqual( pykd.CPUType.ARM, pykd.getCPUMode() )
24
self.assertEqual( False, pykd.is64bitSystem() )
25
self.assertEqual( 4, pykd.ptrSize() )
27
self.assertEqual( pykd.addr64(pykd.expr("@$retreg")), pykd.addr64(pykd.reg("r0")) )
30
self.assertEqual( 4, pykd.typeInfo("nt!_IRP*").size() )
33
self.assertEqual( pykd.expr("@$csp"), pykd.cpu().sp )
36
stack = pykd.getStack()
38
self.assertTrue( len(stack) > 1 )
40
self.assertEqual( "Wdf01000!FxRequest::CompleteInternal", pykd.findSymbol(stack[0].ip, False) )
42
self.assertEqual( "Wdf01000!imp_WdfRequestCompleteWithInformation", pykd.findSymbol(stack[1].ip, False) )
43
self.assertEqual( 0x102, stack[1].getParam("RequestStatus") )