WOW64 stack fix

git-svn-id: https://pykd.svn.codeplex.com/svn@90955 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
SND\kernelnet_cp 2016-03-09 09:47:40 +00:00 committed by Mikhail I. Izmestev
parent cbd0023bac
commit b3244c422b

View File

@ -145,24 +145,23 @@ def printProcess(process,processFilter,threadFilter,moduleFilter,funcFilter,prin
stkWow64 = [] stkWow64 = []
if processWow64 and printopt.showWow64stack == True: if processWow64 and printopt.showWow64stack == True:
try:
switchCPUMode(); cpuMode = getCPUMode()
try: try:
setCPUMode(CPUType.I386)
if not wow64reloaded: if not wow64reloaded:
dbgCommand( ".reload /user" ) dbgCommand( ".reload /user" )
wow64reloaded = True wow64reloaded = True
stkWow64 = getStack() stkWow64 = getStack()
except MemoryException:
pass
switchCPUMode();
except DbgException: except DbgException:
pass pass
setCPUMode(cpuMode)
stk = [] stk = []