mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-21 04:13:22 +08:00
[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:
parent
98e69b389e
commit
4021a60d2d
@ -50,22 +50,28 @@ def printThread(process,thread,printopt):
|
|||||||
dprintln( findSymbol( frame.instructionOffset ) )
|
dprintln( findSymbol( frame.instructionOffset ) )
|
||||||
|
|
||||||
if is64bitSystem():
|
if is64bitSystem():
|
||||||
stk = getStackWow64()
|
processorMode = getProcessorMode()
|
||||||
for frame in stk:
|
try:
|
||||||
dprintln( findSymbol( frame.instructionOffset ) )
|
setProcessorMode("X86")
|
||||||
|
dbgCommand( ".reload /user" )
|
||||||
dprintln("")
|
stk = getStackWow64()
|
||||||
|
dprintln("\nWOW64 stack")
|
||||||
|
for frame in stk:
|
||||||
|
dprintln( findSymbol( frame.instructionOffset ) )
|
||||||
|
except BaseException:
|
||||||
|
pass
|
||||||
|
setProcessorMode(processorMode)
|
||||||
|
|
||||||
|
dprintln("")
|
||||||
|
|
||||||
except BaseException:
|
except BaseException:
|
||||||
|
|
||||||
print "except"
|
|
||||||
|
|
||||||
if not printopt.ignoreNotActiveThread:
|
if not printopt.ignoreNotActiveThread:
|
||||||
dprintln( "Thread %x, Process: %s" % ( thread, loadCStr( process.ImageFileName ) ) )
|
dprintln( "Thread %x, Process: %s" % ( thread, loadCStr( process.ImageFileName ) ) )
|
||||||
dprintln( "Failed to switch into thread context\n")
|
dprintln( "Failed to switch into thread context\n")
|
||||||
dprintln("")
|
dprintln("")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def printProcess(process,processFilter,moduleFilter,funcFilter,printopt):
|
def printProcess(process,processFilter,moduleFilter,funcFilter,printopt):
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user