Skip to content

Commit

Permalink
Merge pull request #8853 from basilfx/feature/jlink_dbg
Browse files Browse the repository at this point in the history
dist/tools: jlink: use GDB as default for DBG
  • Loading branch information
basilfx committed Mar 30, 2018
2 parents 59d6f10 + c04d831 commit f3e36d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dist/tools/jlink/jlink.sh
Expand Up @@ -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
#
Expand Down Expand Up @@ -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
}

Expand Down

0 comments on commit f3e36d5

Please sign in to comment.