def testGPR(self): if pykd.is64bitSystem(): rax = pykd.cpuReg("rax") self.assertEqual(rax, pykd.reg("rax")) rip = pykd.cpuReg("rip") self.assertEqual(rip, pykd.reg("rip")) else: eax = pykd.cpuReg("eax") self.assertEqual(eax, pykd.reg("eax")) eip = pykd.cpuReg("eip") self.assertEqual(eip, pykd.reg("eip"))
def getRegisterSet(self): regSet = [] try: i = 0 while True: reg = pykd.cpuReg(i) regSet.append(reg) i += 1 except pykd.BaseException: pass return regSet
def testBasic(self): try: reg = pykd.cpuReg(0) self.assertTrue(True) except pykd.BaseException: pass