10import isystem.connect
as ic
16def test_resetAndRun():
17 connMgr = ic.ConnectionMgr()
18 connMgr.connect(ic.CConnectionConfig().instanceId(winidea_id))
20 execCtrl = ic.CExecutionController(connMgr)
21 addCtrl = ic.CAddressController(connMgr)
22 bpCtrl = ic.CBreakpointController(connMgr)
24 print(
"`resetAndRun` the CPU without timeout (not expecting `STOP` state)...")
25 execCtrl.resetAndRun()
27 address = addCtrl.getFunctionAddress(
"main").getAddress()
28 print(f
"Setting BP at function 'main': {hex(address)}")
29 bpCtrl.setBP(0, address)
31 print(
"`resetAndRun` the CPU with 1 sec timeout (expecting stop at function 'main')...")
32 if execCtrl.resetAndRun(ic.CExecutionController.TOUT_1s) == 0:
40if __name__ ==
"__main__":