From 5e35ff235239214eb49aecf31640c27a18feb1a9 Mon Sep 17 00:00:00 2001 From: "SND\\air_max_cp" Date: Tue, 5 Apr 2011 08:49:33 +0000 Subject: [PATCH] [~] Improve stlport map dumping script to accept WinDbg expression as parameter rather than just address. git-svn-id: https://pykd.svn.codeplex.com/svn@63493 9b283d60-5439-405e-af05-b73fd8c4d996 --- snippets/dump_stlp_map.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/snippets/dump_stlp_map.py b/snippets/dump_stlp_map.py index 63c863f..5cdd218 100644 --- a/snippets/dump_stlp_map.py +++ b/snippets/dump_stlp_map.py @@ -10,7 +10,6 @@ def println(msg): else: print msg - class StlpNodeWrapper: def __init__(self, addr): # Wrapper specific field @@ -80,8 +79,8 @@ def dumpStlportMap(addr): def printUsage(): println("Usage:") - println("!py dump_stlp_map map_address [\"EXACT MAP PAIR TYPE\"]") - println("To obtain exact map pair type use:") + println("!py dump_stlp_map [\"accurate map pair type\"]") + println("To retrive accurate map pair type use:") println("dt -r ModuleName!stlp_std::pair*") println("Find required type in the list and copy paste it as parameter.") @@ -96,7 +95,7 @@ if __name__ == "__main__": printUsage() quit(0) else: - mapAddr = int(sys.argv[1], 16) + mapAddr = int(expr(sys.argv[1])) addrList = dumpStlportMap(mapAddr) for addr in addrList: