mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-20 03:23:23 +08:00
34 lines
874 B
Python
34 lines
874 B
Python
|
|
#import unittest
|
|
#import pykd
|
|
#import target
|
|
|
|
#class CpuRegTest( unittest.TestCase ):
|
|
|
|
# def testBasic(self):
|
|
# try:
|
|
# reg = pykd.cpuReg(0)
|
|
# self.assertTrue(True)
|
|
# except pykd.BaseException:
|
|
# pass
|
|
|
|
|
|
# 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") )
|
|
|
|
|