Merge pull request #8853 from basilfx/feature/jlink_dbg

dist/tools: jlink: use GDB as default for DBG
This commit is contained in:
Bas Stottelaar 2018-03-30 11:02:27 +02:00 committed by GitHub
commit f3e36d58bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,6 +32,7 @@
# options:
# GDB_PORT: port opened for GDB connections
# TELNET_PORT: port opened for telnet connections
# DBG: debugger client command, default: 'gdb -q'
# TUI: if TUI!=null, the -tui option will be used
# ELFFILE: path to the ELF file to debug
#
@ -133,8 +134,7 @@ test_serial() {
test_dbg() {
if [ -z "${DBG}" ]; then
echo "Error: No debugger defined in DBG env var"
exit 1
DBG="${GDB}"
fi
}