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

Method __init__

api/python/debuggercontroller.py:524–530  ·  view source on GitHub ↗
(self, bv: binaryninja.BinaryView)

Source from the content-addressed store, hash-verified

522
523 """
524 def __init__(self, bv: binaryninja.BinaryView):
525 # bv.handle has type binaryninja.core.BNBinaryView, which is different from dbgcore.BNBinaryView,
526 # so the casting here is necessary
527 # A different way to deal with is that instead of defining a BNBinaryView struct in the _debuggercore.py,
528 # do from binaryninja._binaryninjacore import BNBinaryView
529 bv_obj = ctypes.cast(bv.handle, ctypes.POINTER(dbgcore.BNBinaryView))
530 self.handle = dbgcore.BNGetDebuggerController(bv_obj)
531
532 def destroy(self):
533 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected