From c5080ef41eb5a53e78fb3d7e3f3a458a032f6400 Mon Sep 17 00:00:00 2001 From: "SND\\kernelnet_cp" Date: Wed, 26 Dec 2012 15:51:59 +0000 Subject: [PATCH] [0.2.x] updated: stkwalk.py git-svn-id: https://pykd.svn.codeplex.com/svn@82043 9b283d60-5439-405e-af05-b73fd8c4d996 --- snippets/pytowiki.py | 2 +- snippets/stkwalk.py | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/snippets/pytowiki.py b/snippets/pytowiki.py index 1a48688..9fb857b 100644 --- a/snippets/pytowiki.py +++ b/snippets/pytowiki.py @@ -91,7 +91,7 @@ def buildDoc( ioStream, formatter, apiInfo ): if cls.properties: for p in cls.properties: - if p.__doc__ != None: + if p[1].__doc__ != None: ioStream.write( formatter.anchor( cls.__name__ + "." + p[0] ) ) ioStream.write( formatter.header4( formatter.escapeMarkup( "Property " + cls.__name__ + "." + p[0] ) ) ) ioStream.write( formatter.escapeMarkup( p[1].__doc__ ) + formatter.endl() ) diff --git a/snippets/stkwalk.py b/snippets/stkwalk.py index 77fc4dc..9769a31 100644 --- a/snippets/stkwalk.py +++ b/snippets/stkwalk.py @@ -45,7 +45,7 @@ def printThread(process,thread,printopt): stk = getStack() - dprintln( "Thread %x, Process: %s" % ( thread, loadCStr( process.ImageFileName ) ) ) + dprintln( "Thread %x, Process: %s (%x)" % ( thread, loadCStr( process.ImageFileName ), process ) ) for frame in stk: dprintln( findSymbol( frame.instructionOffset ) ) @@ -62,7 +62,7 @@ def printThread(process,thread,printopt): pass setProcessorMode(processorMode) - dprintln("") + dprintln("") except BaseException: @@ -81,7 +81,8 @@ def printProcess(process,processFilter,moduleFilter,funcFilter,printopt): return try: - setCurrentProcess(process) + #setCurrentProcess(process) + dbgCommand(".process /p %x" % process ) dbgCommand( ".reload /user" )