setBP callback function couldn't get the Breakpoint argument
[Error Message]
TypeError: _cb_arg_test() takes exactly 2 arguments (1 given)
class test(pykd.eventHandler):
def __init__(self):
self.addr = 0x00401234
self.bp = pykd.setBP(self.addr, self._cb_arg_test)
def _cb_arg_test(self, bp):
if self.bp == bp:
print("hi")
just self argument are given. I couldn't get Breakpoint class object by argument.
[Environment]
- python 2.7.18 and 3.9.7 (
python -m pip install --upgrade pykd
) - pykd_ext_2.0.0.25