diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/debug | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -14,7 +14,13 @@ if [ "x`lsusb -d 0483:374b`" != "x" ]; then fi $OPENOCD -f $OPENOCD_BOARD_DIR/$OPENOCD_PROC_FILE & -GDB=arm-none-eabi-gdb +for gdb in gdb-multiarch arm-none-eabi-gdb; do + if command -v $gdb &>/dev/null; then + GDB=$gdb + break + fi +done + $GDB -ex "target remote localhost:3333" -ex "set remote hardware-breakpoint-limit 6" -ex "set remote hardware-watchpoint-limit 4" $PROJ.elf kill -9 $(pidof $OPENOCD) |