5import isystem.connect
as ic
11def test_resetAndRun():
12 connMgr = ic.ConnectionMgr()
13 connMgr.connect(ic.CConnectionConfig().instanceId(winidea_id))
15 execCtrl = ic.CExecutionController(connMgr)
16 addCtrl = ic.CAddressController(connMgr)
17 bpCtrl = ic.CBreakpointController(connMgr)
19 print(
"`resetAndRun` the CPU without timeout (not expecting `STOP` state)...")
20 execCtrl.resetAndRun()
22 address = addCtrl.getFunctionAddress(
"main").getAddress()
23 print(f
"Setting BP at function 'main': {hex(address)}")
24 bpCtrl.setBP(0, address)
26 print(
"`resetAndRun` the CPU with 1 sec timeout (expecting stop at function 'main')...")
27 if execCtrl.resetAndRun(ic.CExecutionController.TOUT_1s) == 0:
35if __name__ ==
"__main__":