[Cryptech-Commits] [sw/stm32] 08/08: Ubuntu replaced arm-none-eabi-gdb with gdb-multiarch over 2 years ago, but maybe we're running an old version that still has it? Check for both.
git at cryptech.is
git at cryptech.is
Thu Oct 15 22:22:17 UTC 2020
This is an automated email from the git hooks/post-receive script.
paul at psgd.org pushed a commit to branch master
in repository sw/stm32.
commit 9177a48f05b09fe48c0b81347b69c9f024180ed1
Author: Paul Selkirk <paul at psgd.org>
AuthorDate: Thu Oct 15 14:04:19 2020 -0400
Ubuntu replaced arm-none-eabi-gdb with gdb-multiarch over 2 years ago, but
maybe we're running an old version that still has it? Check for both.
---
bin/debug | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/bin/debug b/bin/debug
index 14f3fa6..5553270 100755
--- a/bin/debug
+++ b/bin/debug
@@ -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)
More information about the Commits
mailing list