5import isystem.connect
as ic
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 address = addCtrl.getFunctionAddress(
"target_init").getAddress()
20 print(f
"Setting BP at function 'target_init': {hex(address)}")
21 bpCtrl.setBP(0, address)
23 print(f
"Run and use `waitUntilStopped()` with 1 sec timeout...")
24 execCtrl.resetAndRun()
25 execCtrl.waitUntilStopped(1000, isThrow=
True)
26 print(f
"\tCPU stopped on BP.")
28 print(f
"Run and use `waitWhileRunning()` with 1 sec timeout...")
29 execCtrl.resetAndRun()
30 execCtrl.waitWhileRunning(1000, isThrow=
True)
31 print(f
"\tCPU stopped on BP.")
36if __name__ ==
"__main__":