mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-29 11:53:23 +08:00
[snippets] stlp.py: workaround for missing ptr_t type.
git-svn-id: https://pykd.svn.codeplex.com/svn@70241 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
parent
3e06179b52
commit
6db15dc2c7
@ -3,15 +3,18 @@
|
|||||||
import sys
|
import sys
|
||||||
from pykd import *
|
from pykd import *
|
||||||
|
|
||||||
|
def ptr_t():
|
||||||
|
return is64bitSystem() and ulonglong_t or ulong_t
|
||||||
|
|
||||||
StlpNodeBase = typeInfo()
|
StlpNodeBase = typeInfo()
|
||||||
StlpNodeBase.append(ptr_t, "color")
|
StlpNodeBase.append(ptr_t(), "color")
|
||||||
StlpNodeBase.append(ptr_t, "parent")
|
StlpNodeBase.append(ptr_t(), "parent")
|
||||||
StlpNodeBase.append(ptr_t, "left")
|
StlpNodeBase.append(ptr_t(), "left")
|
||||||
StlpNodeBase.append(ptr_t, "right")
|
StlpNodeBase.append(ptr_t(), "right")
|
||||||
|
|
||||||
StlpMap = typeInfo()
|
StlpMap = typeInfo()
|
||||||
StlpMap.append(StlpNodeBase, "header")
|
StlpMap.append(StlpNodeBase, "header")
|
||||||
StlpMap.append(ptr_t, "node_count")
|
StlpMap.append(ptr_t(), "node_count")
|
||||||
|
|
||||||
def stlpMapIncrement(addr):
|
def stlpMapIncrement(addr):
|
||||||
node = StlpNodeBase.load(addr)
|
node = StlpNodeBase.load(addr)
|
||||||
|
Loading…
Reference in New Issue
Block a user