I've renamed methods like they were in 0.2.x:
onLoadModule
onUnloadModule
But there are still some incompabilties with original scripts:
1)
def onLoadModule(self, module) - this is prototype form pykd 0.1
0.2.x and 0.3.x versions has another method signature:
def onLoadModule(self, moduleStart, moduleName) - the module object is not constructed for any call
2)
All constants were removed from global scope of the pykd. For execution status see: https://pykd.codeplex.com/wikipage?title=PYKD%200.3.%20API%20Reference&referringTitle=Documentation#executionStatus
So, for pykd 0.3 this script should be reworked:
onLoadModule
onUnloadModule
But there are still some incompabilties with original scripts:
1)
def onLoadModule(self, module) - this is prototype form pykd 0.1
0.2.x and 0.3.x versions has another method signature:
def onLoadModule(self, moduleStart, moduleName) - the module object is not constructed for any call
2)
All constants were removed from global scope of the pykd. For execution status see: https://pykd.codeplex.com/wikipage?title=PYKD%200.3.%20API%20Reference&referringTitle=Documentation#executionStatus
So, for pykd 0.3 this script should be reworked:
from pykd import *
class MyEventHandler(eventHandler):
def onLoadModule(self, moduleStart, moduleName): # methos renamed in the 89812 changeset (pykd 0.3.0.20 )
dprintln("onLoadModule_2134 ()")
return executionStatus.Break
myHandler = MyEventHandler()
dprintln("Hello world")
go()