summaryrefslogtreecommitdiff
path: root/tools/mcuboot/gdb-boot.sh
diff options
context:
space:
mode:
authorJF <jf@codingfield.com>2021-03-07 20:29:59 (GMT)
committerGitea <gitea@fake.local>2021-03-07 20:29:59 (GMT)
commit5cd4b36d6bbf22095e0ff54aa3773febc6e1f22e (patch)
treeeac51e42451d827c30fd6572b377c5bbf03f0e24 /tools/mcuboot/gdb-boot.sh
parentb89c92b71d82b4e3bf612519a5cf9b2f12886168 (diff)
parente63596b291f973cdeb01cd0ac276861895bd4489 (diff)
Merge branch 'develop' of JF/PineTime into master
Diffstat (limited to 'tools/mcuboot/gdb-boot.sh')
-rw-r--r--tools/mcuboot/gdb-boot.sh27
1 files changed, 27 insertions, 0 deletions
diff --git a/tools/mcuboot/gdb-boot.sh b/tools/mcuboot/gdb-boot.sh
new file mode 100644
index 0000000..dd8a34d
--- /dev/null
+++ b/tools/mcuboot/gdb-boot.sh
@@ -0,0 +1,27 @@
+#! /bin/bash
+
+source $(dirname $0)/../target.sh
+
+gscript=/tmp/init$$.gdb
+
+cat > $gscript <<EOF
+target remote localhost:2331
+symbol-file outdir/$BOARD/zephyr.elf
+# symbol-file ../zephyr/samples/shell/outdir/$BOARD/zephyr.elf
+# dir apps/boot/src
+# dir libs/bootutil/src
+# dir hw/mcu/stm/stm32f4xx/src
+b main
+# b __reset
+# b bootutil_img_validate
+# b cmp_rsasig
+# b bootutil_verify_sig
+# b mbedtls_rsa_public
+# b boot_calloc
+mon reset 2
+layout src
+focus cmd
+EOF
+
+$gdbexe -x $gscript
+rm $gscript