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

Method run_to

api/python/debuggercontroller.py:894–916  ·  view source on GitHub ↗

Resume the target, and wait for it to break at the given address(es). The address parameter can be either an integer, or a list of integers. Internally, the debugger places breeakpoints on these addresses, resume the target, and wait for the target to break. Then t

(self, address)

Source from the content-addressed store, hash-verified

892 return dbgcore.BNDebuggerStepReturn(self.handle)
893
894 def run_to(self, address) -> bool:
895 """
896 Resume the target, and wait for it to break at the given address(es).
897
898 The address parameter can be either an integer, or a list of integers.
899
900 Internally, the debugger places breeakpoints on these addresses, resume the target, and wait for the target
901 to break. Then the debugger removes the added breakpoints.
902
903 The call is asynchronous and returns before the target stops.
904
905 """
906 if isinstance(address, int):
907 address = [address]
908
909 if not isinstance(address, list):
910 raise NotImplementedError
911
912 addr_list = (ctypes.c_uint64 * len(address))()
913 for i in range(len(address)):
914 addr_list[i] = address[i]
915
916 return dbgcore.BNDebuggerRunTo(self.handle, addr_list, len(address))
917
918 def go_and_wait(self) -> DebugStopReason:
919 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected