1#! /bin/bash 2# 3# SPDX-License-Identifier: Apache-2.0 4 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 30