[0.2.x] updated: stkwalk.py

git-svn-id: https://pykd.svn.codeplex.com/svn@82043 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
SND\kernelnet_cp 2012-12-26 15:51:59 +00:00 committed by Mikhail I. Izmestev
parent 171b46ea78
commit c5080ef41e
2 changed files with 5 additions and 4 deletions

View File

@ -91,7 +91,7 @@ def buildDoc( ioStream, formatter, apiInfo ):
if cls.properties: if cls.properties:
for p in 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.anchor( cls.__name__ + "." + p[0] ) )
ioStream.write( formatter.header4( formatter.escapeMarkup( "Property " + cls.__name__ + "." + p[0] ) ) ) ioStream.write( formatter.header4( formatter.escapeMarkup( "Property " + cls.__name__ + "." + p[0] ) ) )
ioStream.write( formatter.escapeMarkup( p[1].__doc__ ) + formatter.endl() ) ioStream.write( formatter.escapeMarkup( p[1].__doc__ ) + formatter.endl() )

View File

@ -45,7 +45,7 @@ def printThread(process,thread,printopt):
stk = getStack() 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: for frame in stk:
dprintln( findSymbol( frame.instructionOffset ) ) dprintln( findSymbol( frame.instructionOffset ) )
@ -81,7 +81,8 @@ def printProcess(process,processFilter,moduleFilter,funcFilter,printopt):
return return
try: try:
setCurrentProcess(process) #setCurrentProcess(process)
dbgCommand(".process /p %x" % process )
dbgCommand( ".reload /user" ) dbgCommand( ".reload /user" )