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

Method run_to_and_wait

api/python/debuggercontroller.py:992–1014  ·  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

990 return DebugStopReason(dbgcore.BNDebuggerStepReturnAndWait(self.handle))
991
992 def run_to_and_wait(self, address) -> DebugStopReason:
993 """
994 Resume the target, and wait for it to break at the given address(es).
995
996 The address parameter can be either an integer, or a list of integers.
997
998 Internally, the debugger places breeakpoints on these addresses, resume the target, and wait for the target
999 to break. Then the debugger removes the added breakpoints.
1000
1001 The call is blocking and only returns when the target stops.
1002
1003 """
1004 if isinstance(address, int):
1005 address = [address]
1006
1007 if not isinstance(address, list):
1008 raise NotImplementedError
1009
1010 addr_list = (ctypes.c_uint64 * len(address))()
1011 for i in range(len(address)):
1012 addr_list[i] = address[i]
1013
1014 return DebugStopReason(dbgcore.BNDebuggerRunToAndWait(self.handle, addr_list, len(address)))
1015
1016 def pause_and_wait(self) -> None:
1017 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected