blob: dd8a34d2de5749b89e601a500f7c57de0e928443 [file] [log] [blame]
David Brown22a6fe32017-01-10 10:40:43 -07001#! /bin/bash
2
3source $(dirname $0)/../target.sh
4
5gscript=/tmp/init$$.gdb
6
7cat > $gscript <<EOF
8target remote localhost:2331
9symbol-file outdir/$BOARD/zephyr.elf
10# symbol-file ../zephyr/samples/shell/outdir/$BOARD/zephyr.elf
11# dir apps/boot/src
12# dir libs/bootutil/src
13# dir hw/mcu/stm/stm32f4xx/src
14b main
15# b __reset
16# b bootutil_img_validate
17# b cmp_rsasig
18# b bootutil_verify_sig
19# b mbedtls_rsa_public
20# b boot_calloc
21mon reset 2
22layout src
23focus cmd
24EOF
25
26$gdbexe -x $gscript
27rm $gscript