From 053b9308464edb9df5b00dd4dc8ddd0fb61c3a7b Mon Sep 17 00:00:00 2001 From: "SND\\kernelnet_cp" Date: Tue, 29 Jan 2013 07:09:05 +0000 Subject: [PATCH] [0.2.x] fixed : stkwalk.py git-svn-id: https://pykd.svn.codeplex.com/svn@82486 9b283d60-5439-405e-af05-b73fd8c4d996 --- snippets/stkwalk.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/snippets/stkwalk.py b/snippets/stkwalk.py index ee356c5..4ac8894 100644 --- a/snippets/stkwalk.py +++ b/snippets/stkwalk.py @@ -25,8 +25,8 @@ def applayThreadFilter(thread,threadFilter,moduleFilter,funcFilter,printopt,stac return True else: filterMatch = True - - if threadFilter and threadFilter( thread.Tcb, thread.Cid.UniqueThread ): + + if threadFilter and threadFilter( thread.Tcb, thread.Cid.UniqueThread ): if printopt.showUnique == False: return True else: @@ -45,13 +45,13 @@ def applayThreadFilter(thread,threadFilter,moduleFilter,funcFilter,printopt,stac if filterMatch == False and moduleFilter and moduleFilter( m, m.name() ): filterMatch = True if printopt.showUnique == False: - return False + return True sym = m.findSymbol( frame.instructionOffset, showDisplacement = False ) if filterMatch == False and funcFilter and funcFilter( sym ): filterMatch = True if printopt.showUnique == False: - return False + return True if printopt.showUnique == True: strStack += sym @@ -67,13 +67,13 @@ def applayThreadFilter(thread,threadFilter,moduleFilter,funcFilter,printopt,stac if filterMatch == False and moduleFilter and moduleFilter( m, m.name() ): filterMatch = True if printopt.showUnique == False: - return False + return True sym = m.findSymbol( frame.instructionOffset, showDisplacement = False ) if filterMatch == False and funcFilter and funcFilter( sym ): filterMatch = True if printopt.showUnique == False: - return False + return True if printopt.showUnique == True: strStack += sym @@ -162,7 +162,7 @@ def printProcess(process,processFilter,threadFilter,moduleFilter,funcFilter,prin filteredThreadLst.append( thread ) if filteredThreadLst == []: - return + return dprintln( "Process %x" % process ) dprintln( "Name: %s Pid: %#x" % ( processName, process.UniqueProcessId ) )