[0.2.x] added: wow64 stack for stkwalk

git-svn-id: https://pykd.svn.codeplex.com/svn@81923 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
SND\kernelnet_cp 2012-12-20 07:23:25 +00:00 committed by Mikhail I. Izmestev
parent d143a0633b
commit 9b4260f5f3

View File

@ -32,6 +32,7 @@ def applayThreadFilter(thread,moduleFilter,funcFilter,printopt):
return True
except BaseException:
print "applayThreadFilter except"
pass
return False
@ -48,9 +49,17 @@ def printThread(process,thread,printopt):
for frame in stk:
dprintln( findSymbol( frame.instructionOffset ) )
dprintln("")
if is64bitSystem():
stk = getStackWow64()
for frame in stk:
dprintln( findSymbol( frame.instructionOffset ) )
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")