winIDEA SDK
Loading...
Searching...
No Matches
test_delete_bp.py
# This script is licensed under BSD License, see file LICENSE.txt, or search for `License` in the SDK online help.
# (c) TASKING Germany GmbH, 2023
#
# This Python script sets and then deletes breakpoints in three different ways:
# by symbol name, by file name and line number, and by memory area and address.
import isystem.connect as ic
winidea_id = ''
def test_deleteBP():
connMgr = ic.ConnectionMgr()
connMgr.connect(ic.CConnectionConfig().instanceId(winidea_id))
bpCtrl = ic.CBreakpointController(connMgr)
bpCtrl.setBP("main")
bpCtrl.deleteBP("main")
print("BP at 'main' is set and deleted (via symbol name).")
bpCtrl.setBP(215, "CORE0/startup.c")
bpCtrl.deleteBP("CORE0/startup.c", 215)
print("BP at line 215 in CORE0/startup.c is set and deleted (via file name and line number).")
bpCtrl.setBP(0, 0x20000400)
bpCtrl.deleteBP(0, 0x20000400)
print("BP at address 0x20000400 is set and deleted (via memory area and address).")
if __name__ == "__main__":
test_deleteBP()