Commit 6db15dc2 authored by SND\air_max_cp's avatar SND\air_max_cp
Browse files

[snippets] stlp.py: workaround for missing ptr_t type.

git-svn-id: https://pykd.svn.codeplex.com/svn@70241 9b283d60-5439-405e-af05-b73fd8c4d996
parent 3e06179b
......@@ -3,15 +3,18 @@
import sys
from pykd import *
def ptr_t():
return is64bitSystem() and ulonglong_t or ulong_t
StlpNodeBase = typeInfo()
StlpNodeBase.append(ptr_t, "color")
StlpNodeBase.append(ptr_t, "parent")
StlpNodeBase.append(ptr_t, "left")
StlpNodeBase.append(ptr_t, "right")
StlpNodeBase.append(ptr_t(), "color")
StlpNodeBase.append(ptr_t(), "parent")
StlpNodeBase.append(ptr_t(), "left")
StlpNodeBase.append(ptr_t(), "right")
StlpMap = typeInfo()
StlpMap.append(StlpNodeBase, "header")
StlpMap.append(ptr_t, "node_count")
StlpMap.append(ptr_t(), "node_count")
def stlpMapIncrement(addr):
node = StlpNodeBase.load(addr)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment