blob: ab78eb128c38d9a3e74a52bddafbfc80984e9153 [file] [log] [blame]
#!/bin/bash
XT_GDB=$XTENSA_TOOLS_PATH/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