MCPcopy Create free account
hub / github.com/Vector35/debugger / register

Method register

api/python/debuggercontroller.py:456–461  ·  view source on GitHub ↗
(cls, controller: 'DebuggerController', callback: DebuggerEventCallback, name: str)

Source from the content-addressed store, hash-verified

454
455 @classmethod
456 def register(cls, controller: 'DebuggerController', callback: DebuggerEventCallback, name: str) -> int:
457 callback_obj = ctypes.CFUNCTYPE(None, ctypes.c_void_p, ctypes.POINTER(dbgcore.BNDebuggerEvent))\
458 (lambda ctxt, event: cls._notify(event[0], callback))
459 handle = dbgcore.BNDebuggerRegisterEventCallback(controller.handle, callback_obj, name, None)
460 cls._debugger_events[handle] = callback_obj
461 return handle
462
463 @classmethod
464 def remove(cls, controller: 'DebuggerController', index: int) -> None:

Callers 1

Calls 1

_notifyMethod · 0.80

Tested by

no test coverage detected