6This script is an addition to example test_set_bp_action.py.
7It sets a breakpoint at a symbol determined by script parameter.
11import isystem.connect
as ic
17def set_bp_symbol(symbol: str):
18 conn_mgr = ic.ConnectionMgr()
19 conn_mgr.connect(ic.CConnectionConfig().instanceId(winidea_id))
21 bp_ctrl = ic.CBreakpointController(conn_mgr)
22 bp_ctrl.set_BP_symbol(symbol)
23 print(f
"Breakpoint set at symbol '{symbol}'.")
26if __name__ ==
"__main__":
27 parser = argparse.ArgumentParser()
28 parser.add_argument(
"symbol", type=str, help=
"Symbol at which the breakpoint will be set.")
29 args = parser.parse_args()
31 set_bp_symbol(args.symbol)