mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-29 11:53:23 +08:00
[~] 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
This commit is contained in:
parent
f111bd9610
commit
5e35ff2352
@ -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 <map_address|variable_name> [\"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:
|
||||
|
Loading…
Reference in New Issue
Block a user