3 # Kill any existing OpenOCD instances to avoid port conflicts
4 pkill -9 openocd 2>/dev/null || true
10 kill $OPENOCD_PID 2>/dev/null || true
11 # Give it a moment to exit
13 # Force kill if still running
14 kill -9 $OPENOCD_PID 2>/dev/null || true
18 @GDB@ -x @GDBCONF@ "$1"