[0.2.x] updated: stkwalk.py script for wow64 stack printing

git-svn-id: https://pykd.svn.codeplex.com/svn@82005 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
SND\kernelnet_cp 2012-12-24 15:01:24 +00:00 committed by Mikhail I. Izmestev
parent 98e69b389e
commit 4021a60d2d

View File

@ -50,16 +50,22 @@ def printThread(process,thread,printopt):
dprintln( findSymbol( frame.instructionOffset ) )
if is64bitSystem():
stk = getStackWow64()
for frame in stk:
dprintln( findSymbol( frame.instructionOffset ) )
processorMode = getProcessorMode()
try:
setProcessorMode("X86")
dbgCommand( ".reload /user" )
stk = getStackWow64()
dprintln("\nWOW64 stack")
for frame in stk:
dprintln( findSymbol( frame.instructionOffset ) )
except BaseException:
pass
setProcessorMode(processorMode)
dprintln("")
dprintln("")
except BaseException:
print "except"
if not printopt.ignoreNotActiveThread:
dprintln( "Thread %x, Process: %s" % ( thread, loadCStr( process.ImageFileName ) ) )
dprintln( "Failed to switch into thread context\n")