6
class ARM64DumpTest(unittest.TestCase):
8
dump_file = os.path.join( os.path.dirname(sys.argv[0]),
9
r"..\..\kdlibcpp\kdlib\tests\dumps\win10_arm64_mem\win10_arm64_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( 0x80000000, pykd.addr64(0x80000000) )
21
self.assertEqual( pykd.CPUType.ARM64, pykd.getCPUType() )
22
self.assertEqual( pykd.CPUType.ARM64, pykd.getCPUMode() )
24
self.assertTrue( pykd.is64bitSystem() )
25
self.assertEqual( 8, pykd.ptrSize() )
27
self.assertEqual( pykd.expr("@$retreg"), pykd.reg("x0") )
30
self.assertEqual( 8, pykd.typeInfo("nt!_IRP*").size() )
33
self.assertEqual( pykd.expr("clipsp!ClipSpInitialize"), pykd.module("clipsp").ClipSpInitialize )
37
self.assertEqual( pykd.expr("@$ip"), cpu.ip )
38
self.assertEqual( pykd.expr("@$csp"), cpu.sp )
39
self.assertEqual( pykd.expr("@fp"), cpu.fp )
42
stack = pykd.getStack()
44
self.assertTrue( len(stack) > 11 )
46
self.assertEqual( "nt!KeBugCheck2", pykd.findSymbol(stack[0].ip, False) )
48
self.assertEqual( "Wdf01000!FxRequest::CompleteInternal", pykd.findSymbol(stack[11].ip, False) )
49
self.assertEqual( 0, stack[11].getParam("Status") )
50
self.assertEqual( 0xffffc18eaa798940, stack[11].getLocal("irp").m_Irp )