mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-20 03:23:23 +08:00
26 lines
569 B
Python
26 lines
569 B
Python
import sys
|
|
from pykd import *
|
|
|
|
|
|
def printStack():
|
|
|
|
threadList = getThreadList()
|
|
|
|
for threadPtr in threadList:
|
|
oldThread = 0
|
|
setImplicitThread( threadPtr )
|
|
stackFrames = getCurrentStack()
|
|
for frame in stackFrames: dprintln( findSymbol( frame.instructionOffset ) + " (%x)" % frame.instructionOffset )
|
|
dprintln("")
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
if not isSessionStart():
|
|
createSession()
|
|
loadDump( sys.argv[1] )
|
|
dprintln( sys.argv[1] + " - loaded OK" )
|
|
|
|
printStack()
|
|
|