From 9b4260f5f35a926634e68efba772d14bae8dae66 Mon Sep 17 00:00:00 2001 From: "SND\\kernelnet_cp" Date: Thu, 20 Dec 2012 07:23:25 +0000 Subject: [PATCH] [0.2.x] added: wow64 stack for stkwalk git-svn-id: https://pykd.svn.codeplex.com/svn@81923 9b283d60-5439-405e-af05-b73fd8c4d996 --- snippets/stkwalk.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/snippets/stkwalk.py b/snippets/stkwalk.py index c28abf2..8f0c012 100644 --- a/snippets/stkwalk.py +++ b/snippets/stkwalk.py @@ -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")