diff options
| author | panky-codes <pankaj.sarathy1992@gmail.com> | 2021-03-20 22:45:29 +0100 |
|---|---|---|
| committer | panky-codes <pankaj.sarathy1992@gmail.com> | 2021-03-20 22:45:29 +0100 |
| commit | 534565088033221d29e968acf7267145ff10203b (patch) | |
| tree | c93ae7c7aa7995204f56b979ff6524feba83763d /tools/mcuboot/gdb-boot.sh | |
| parent | 754ac233040af805ffa2e15b24539d5d02a876e5 (diff) | |
| parent | a3ff2e46ca9e663af864a2bd04b9afa3efbddfb8 (diff) | |
Merged upstream
Diffstat (limited to 'tools/mcuboot/gdb-boot.sh')
| -rw-r--r-- | tools/mcuboot/gdb-boot.sh | 27 |
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 00000000..dd8a34d2 --- /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 |
