zephyr/scripts/support/xt-gdb.sh
Andrew Boie 65e5401502 xtensa: fix 'make debug' for xt-sim targets
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
2017-06-12 18:01:13 -04:00

24 lines
253 B
Bash
Executable File

#!/bin/bash
XT_GDB=$XCC_TOOLS/bin/xt-gdb
ELF_NAME=${O}/${KERNEL_ELF_NAME}
set -e
do_debug() {
${XT_GDB} ${ELF_NAME}
}
CMD="$1"
shift
case "${CMD}" in
debug)
do_debug "$@"
;;
*)
echo "${CMD} not supported"
exit 1
;;
esac