mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-21 12:24:52 +08:00
[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:
parent
d143a0633b
commit
9b4260f5f3
@ -32,6 +32,7 @@ def applayThreadFilter(thread,moduleFilter,funcFilter,printopt):
|
|||||||
return True
|
return True
|
||||||
|
|
||||||
except BaseException:
|
except BaseException:
|
||||||
|
print "applayThreadFilter except"
|
||||||
pass
|
pass
|
||||||
|
|
||||||
return False
|
return False
|
||||||
@ -48,9 +49,17 @@ def printThread(process,thread,printopt):
|
|||||||
for frame in stk:
|
for frame in stk:
|
||||||
dprintln( findSymbol( frame.instructionOffset ) )
|
dprintln( findSymbol( frame.instructionOffset ) )
|
||||||
|
|
||||||
|
if is64bitSystem():
|
||||||
|
stk = getStackWow64()
|
||||||
|
for frame in stk:
|
||||||
|
dprintln( findSymbol( frame.instructionOffset ) )
|
||||||
|
|
||||||
dprintln("")
|
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")
|
||||||
|
Loading…
Reference in New Issue
Block a user