1source [find board/stm32f4discovery.cfg]
2
3$_TARGETNAME configure -event gdb-attach {
4	echo "Debugger attaching: halting execution"
5	reset halt
6	gdb_breakpoint_override hard
7}
8
9$_TARGETNAME configure -event gdb-detach {
10	echo "Debugger detaching: resuming execution"
11	resume
12}
13