[~] Improve stlport map dumping script.

git-svn-id: https://pykd.svn.codeplex.com/svn@63353 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
SND\air_max_cp 2011-04-02 06:19:38 +00:00
parent f1c93d54f6
commit 36db1b8769

View File

@ -15,7 +15,9 @@ class StlpNodeWrapper:
def __init__(self, addr): def __init__(self, addr):
# Wrapper specific field # Wrapper specific field
self.addr = addr self.addr = addr
self.color = ptrDWord(addr) # Wrapper specific field
self.sizeOf = 4 * ptrSize()
self.color = ptrByte(addr)
# By default, fields in structure aligned by 4 Bytes on x86 and by 8 Bytes on x64 # By default, fields in structure aligned by 4 Bytes on x86 and by 8 Bytes on x64
addr += ptrSize() addr += ptrSize()
self.parent = ptrPtr(addr) self.parent = ptrPtr(addr)
@ -23,8 +25,6 @@ class StlpNodeWrapper:
self.left = ptrPtr(addr) self.left = ptrPtr(addr)
addr += ptrSize() addr += ptrSize()
self.right = ptrPtr(addr) self.right = ptrPtr(addr)
# Wrapper specific field
self.sizeOf = addr + ptrSize() - self.addr
class StlpMapWrapper: class StlpMapWrapper: