Commit Graph

86 Commits

Author SHA1 Message Date
ussrhero
223c225d71 added typeInfo::scopeName method
added typeInfoProviderIterator class
added typeInfoProvider::getIterator method
added typeInfoProvider::__iter__ method
added typeInfoProvider::__getattr__ method
2018-05-14 11:45:12 +03:00
Mikhail I. Izmestev
aec67503eb Fix tests python3 compatibility 2018-04-20 09:38:30 +04:00
SND\ussrhero_cp
af129a9a00 [0.3.x] added : typeInfo.__getitem__ (Get a field's type by the field's name )
[0.3.x] added : typedVar.__getitem__  (Get a field's value by  the field's name )
[0.3.x] added : typedVar.__settitem__ (Set a value to a field by name )

git-svn-id: https://pykd.svn.codeplex.com/svn@91261 9b283d60-5439-405e-af05-b73fd8c4d996
2017-11-16 17:33:14 +04:00
SND\ussrhero_cp
03ff35d64f [0.3.x] added : typedVar.method has optional argument 'prototype' to work with overloaded methods
git-svn-id: https://pykd.svn.codeplex.com/svn@91089 9b283d60-5439-405e-af05-b73fd8c4d996
2017-11-03 15:24:08 +04:00
SND\ussrhero_cp
c0cfd5f666 [0.3.x] added : method typeInfo.baseClass ( return a base class's type by name or by index )
git-svn-id: https://pykd.svn.codeplex.com/svn@91074 9b283d60-5439-405e-af05-b73fd8c4d996
2017-11-03 15:24:08 +04:00
SND\ussrhero_cp
1d4c95497e [0.3.x] added : method 'typeInfo.method' ( return method's type by name )
git-svn-id: https://pykd.svn.codeplex.com/svn@91073 9b283d60-5439-405e-af05-b73fd8c4d996
2017-11-03 15:24:08 +04:00
SND\kernelnet_cp
0df2fba54f [0.3.x] fixed : division for python3
git-svn-id: https://pykd.svn.codeplex.com/svn@90965 9b283d60-5439-405e-af05-b73fd8c4d996
2017-11-03 15:24:08 +04:00
SND\kernelnet_cp
2f192bbd01 [0.3.x] reworked : test scripts python3 compatible
git-svn-id: https://pykd.svn.codeplex.com/svn@90961 9b283d60-5439-405e-af05-b73fd8c4d996
2017-11-03 15:24:08 +04:00
SND\ussrhero_cp
7831e430ae [0.3.x] added : module.enumTypes method ( return list of types name )
git-svn-id: https://pykd.svn.codeplex.com/svn@90913 9b283d60-5439-405e-af05-b73fd8c4d996
2017-11-03 15:24:08 +04:00
SND\EreTIk_cp
ea0781cc4b [0.3.x] fix: workitem 13815 test (TypeInfoTest.testFunctionArgs)
git-svn-id: https://pykd.svn.codeplex.com/svn@90905 9b283d60-5439-405e-af05-b73fd8c4d996
2017-11-03 15:24:08 +04:00
SND\EreTIk_cp
215d5cc950 [0.3.x] add: workitem 13815 tests
git-svn-id: https://pykd.svn.codeplex.com/svn@90902 9b283d60-5439-405e-af05-b73fd8c4d996
2017-11-03 15:24:08 +04:00
SND\kernelnet_cp
7ab33de9f2 [0.3.x] added : __dir__ method for typeInfo ( return list of fields name )
git-svn-id: https://pykd.svn.codeplex.com/svn@90853 9b283d60-5439-405e-af05-b73fd8c4d996
2017-11-03 15:24:08 +04:00
SND\EreTIk_cp
7e854ab519 [0.3.x] fixed: name of function pointers
[0.3.x] fixed: name of function arrays
[0.3.x] added: kdlib test for function names

git-svn-id: https://pykd.svn.codeplex.com/svn@88793 9b283d60-5439-405e-af05-b73fd8c4d996
2017-11-03 14:36:27 +04:00
SND\kernelnet_cp
fb823ae164 [0.3.x] added : typeInfo.fields methos ( return list of tuple ( filedName, fieldType ) )
git-svn-id: https://pykd.svn.codeplex.com/svn@87546 9b283d60-5439-405e-af05-b73fd8c4d996
2017-11-03 14:36:27 +04:00
SND\kernelnet_cp
12e42cf4ce [0.3.x] fixed : exception raised when comparing typeInfo with None
git-svn-id: https://pykd.svn.codeplex.com/svn@86926 9b283d60-5439-405e-af05-b73fd8c4d996
2017-11-03 14:36:27 +04:00
SND\kernelnet_cp
6a5d49c132 [0.3.x] merged : test from 0.2.x
git-svn-id: https://pykd.svn.codeplex.com/svn@86924 9b283d60-5439-405e-af05-b73fd8c4d996
2017-11-16 17:48:11 +04:00
SND\kernelnet_cp
9ac635b5d3 [0.2.x] fixed : issue #12599 (exception raised when comparing typeInfo with None )
git-svn-id: https://pykd.svn.codeplex.com/svn@86901 9b283d60-5439-405e-af05-b73fd8c4d996
2017-11-08 17:42:50 +04:00
SND\kernelnet_cp
81fe97052f [0.2.x] fixed : issue #12353 ( typedVar for bit field returns a wrong result for width >= 32 bits )
git-svn-id: https://pykd.svn.codeplex.com/svn@85967 9b283d60-5439-405e-af05-b73fd8c4d996
2017-11-08 17:42:50 +04:00
SND\kernelnet_cp
5cb3fc858b [0.2.x] fixed : issue #12335 ( TypeError: object has no len() for array )
git-svn-id: https://pykd.svn.codeplex.com/svn@85918 9b283d60-5439-405e-af05-b73fd8c4d996
2017-11-08 17:42:50 +04:00
SND\EreTIk_cp
ab92133f28 [0.2.x] fix: Hresult as ULong
git-svn-id: https://pykd.svn.codeplex.com/svn@85177 9b283d60-5439-405e-af05-b73fd8c4d996
2017-11-08 17:42:50 +04:00
SND\EreTIk_cp
a26edc8208 [0.2.x]
~ refactoring: DIA findChildren
 ~ refactoring: failed tests -> tail

git-svn-id: https://pykd.svn.codeplex.com/svn@83636 9b283d60-5439-405e-af05-b73fd8c4d996
2017-11-08 17:42:50 +04:00
SND\kernelnet_cp
888ee0ddd2 [0.2.x] fixed : typeinfo.py
git-svn-id: https://pykd.svn.codeplex.com/svn@83602 9b283d60-5439-405e-af05-b73fd8c4d996
2017-11-08 17:42:50 +04:00
SND\kernelnet_cp
00aa7d2e6b [0.2.x] fixed : test for unnamed nested structures
git-svn-id: https://pykd.svn.codeplex.com/svn@83403 9b283d60-5439-405e-af05-b73fd8c4d996
2017-11-08 17:42:50 +04:00
SND\kernelnet_cp
88ed1db5a7 [0.2.x] added : test for unnamed nested structures
git-svn-id: https://pykd.svn.codeplex.com/svn@83402 9b283d60-5439-405e-af05-b73fd8c4d996
2017-11-08 17:42:50 +04:00
SND\kernelnet_cp
78cab9cc49 [0.2.x] added: test for ptrTo() on base types
git-svn-id: https://pykd.svn.codeplex.com/svn@82226 9b283d60-5439-405e-af05-b73fd8c4d996
2017-11-08 17:42:50 +04:00
SND\kernelnet_cp
0a9c658da6 [0.2.x] added: typeInfo::arrayOf method ( contruct array type )
git-svn-id: https://pykd.svn.codeplex.com/svn@82052 9b283d60-5439-405e-af05-b73fd8c4d996
2017-11-08 17:42:50 +04:00
SND\kernelnet_cp
18392dca83 [0.2.x] fixed: some bugs with types
git-svn-id: https://pykd.svn.codeplex.com/svn@81947 9b283d60-5439-405e-af05-b73fd8c4d996
2017-11-08 17:42:50 +04:00
SND\kernelnet_cp
a1a69b9826 [0.2.x] updated : working with local vars
git-svn-id: https://pykd.svn.codeplex.com/svn@81665 9b283d60-5439-405e-af05-b73fd8c4d996
2017-11-08 17:42:50 +04:00
SND\EreTIk_cp
b7a7f97ea4 [0.2.x] + failed test: pointer to basic type (typeInfo ctor)
git-svn-id: https://pykd.svn.codeplex.com/svn@81388 9b283d60-5439-405e-af05-b73fd8c4d996
2017-11-08 17:42:50 +04:00
SND\EreTIk_cp
ed9c2be858 [0.1.x] ~field offset moved to parent TypeInfo (method fieldOffset)
git-svn-id: https://pykd.svn.codeplex.com/svn@78192 9b283d60-5439-405e-af05-b73fd8c4d996
2017-11-08 17:33:17 +04:00
SND\kernelnet_cp
592c241a1d [0.1.x] fixed : issue #10921 ( typeInfo does not work with Base types )
git-svn-id: https://pykd.svn.codeplex.com/svn@78149 9b283d60-5439-405e-af05-b73fd8c4d996
2017-11-08 17:33:17 +04:00
SND\kernelnet_cp
f225f3905e [0.1.x] added : sizeof() routine ( return size of type or variable )
git-svn-id: https://pykd.svn.codeplex.com/svn@77433 9b283d60-5439-405e-af05-b73fd8c4d996
2017-11-08 17:33:17 +04:00
SND\kernelnet_cp
bc6c66cc13 [0.1.x] added : "subscription" for UDT typeInfo
git-svn-id: https://pykd.svn.codeplex.com/svn@76521 9b283d60-5439-405e-af05-b73fd8c4d996
2017-11-08 17:27:51 +04:00
SND\kernelnet_cp
4231325aab [0.1.x] updated : set version to 0.1.0.13
git-svn-id: https://pykd.svn.codeplex.com/svn@76402 9b283d60-5439-405e-af05-b73fd8c4d996
2017-11-08 17:27:51 +04:00
SND\kernelnet_cp
4c6cb85197 [0.1.x] fixed : working with class static members ( static const is not supported yet )
git-svn-id: https://pykd.svn.codeplex.com/svn@75597 9b283d60-5439-405e-af05-b73fd8c4d996
2017-11-08 17:27:51 +04:00
SND\kernelnet_cp
e66c64ea54 [0.1.x] fixed : issue #10628 ( typedef is not supported )
git-svn-id: https://pykd.svn.codeplex.com/svn@75424 9b283d60-5439-405e-af05-b73fd8c4d996
2017-11-08 17:27:51 +04:00
SND\kernelnet_cp
512131bbdb [0.1.x] added : typeInfo class can be created directly
git-svn-id: https://pykd.svn.codeplex.com/svn@75084 9b283d60-5439-405e-af05-b73fd8c4d996
2017-11-08 17:27:51 +04:00
SND\kernelnet_cp
d44cc55f21 [0.1.x] fixed : issue #10521 ( typeInfo returns invalid type name for array's element )
git-svn-id: https://pykd.svn.codeplex.com/svn@74958 9b283d60-5439-405e-af05-b73fd8c4d996
2017-11-08 17:27:51 +04:00
SND\kernelnet_cp
0834a142bf [0.1.x] test : added test for issue # 10521
git-svn-id: https://pykd.svn.codeplex.com/svn@74957 9b283d60-5439-405e-af05-b73fd8c4d996
2017-11-08 17:27:51 +04:00
SND\kernelnet_cp
25d2e5ef59 [0.1.x] fixed : issue #10338 ( print typeInfo raises TypeException )
git-svn-id: https://pykd.svn.codeplex.com/svn@74920 9b283d60-5439-405e-af05-b73fd8c4d996
2017-11-08 17:27:51 +04:00
SND\EreTIk_cp
f15f01a155 [0.1.x] issue #10393: name of poiner to void, name of pointer to function
git-svn-id: https://pykd.svn.codeplex.com/svn@74349 9b283d60-5439-405e-af05-b73fd8c4d996
2017-11-08 17:27:51 +04:00
SND\EreTIk_cp
2b989073cb [0.1.x] ~some test, incomplete
git-svn-id: https://pykd.svn.codeplex.com/svn@74274 9b283d60-5439-405e-af05-b73fd8c4d996
2017-11-08 17:27:51 +04:00
SND\kernelnet_cp
7f2e735905 [0.1.x] test: TypeInfoTest.testPtr reproduces issue 10393
git-svn-id: https://pykd.svn.codeplex.com/svn@74272 9b283d60-5439-405e-af05-b73fd8c4d996
2017-11-08 17:27:51 +04:00
SND\EreTIk_cp
7532741252 [0.1.x] + test of nested structure
git-svn-id: https://pykd.svn.codeplex.com/svn@73296 9b283d60-5439-405e-af05-b73fd8c4d996
2017-11-08 17:27:51 +04:00
SND\kernelnet_cp
6876c4ee3d [0.1.x] fixed : issue #10149 ( handling pykd exceptions )
git-svn-id: https://pykd.svn.codeplex.com/svn@73250 9b283d60-5439-405e-af05-b73fd8c4d996
2017-11-08 17:27:51 +04:00
SND\EreTIk_cp
4024ce424f [0.1.x] ~ corrected structure size
git-svn-id: https://pykd.svn.codeplex.com/svn@73121 9b283d60-5439-405e-af05-b73fd8c4d996
2017-11-08 17:27:51 +04:00
SND\kernelnet_cp
4398021988 [0.1.x] added : method deref for typeInfo class
[0.1.x] added : method deref for typedVar class

git-svn-id: https://pykd.svn.codeplex.com/svn@73050 9b283d60-5439-405e-af05-b73fd8c4d996
2017-11-08 17:27:51 +04:00
SND\kernelnet_cp
c465d4c110 [0.1.x] added : method asMap for typeInfo ( only for enumerators )
git-svn-id: https://pykd.svn.codeplex.com/svn@72763 9b283d60-5439-405e-af05-b73fd8c4d996
2017-11-08 17:27:51 +04:00
SND\kernelnet_cp
dd66507b4b [0.1.x] fixed : creating typedVar for the unsigned char type
git-svn-id: https://pykd.svn.codeplex.com/svn@72758 9b283d60-5439-405e-af05-b73fd8c4d996
2017-11-08 17:27:51 +04:00
SND\kernelnet_cp
fd6ed0769e [0.1.x] added : typeInfo и typedVar classes support enum types
git-svn-id: https://pykd.svn.codeplex.com/svn@72711 9b283d60-5439-405e-af05-b73fd8c4d996
2017-11-08 17:27:51 +04:00