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