(self, bv: binaryninja.BinaryView)
| 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 | """ |
nothing calls this directly
no outgoing calls
no test coverage detected