From c04d83175429244a91ea5e48ad4f1695407961c5 Mon Sep 17 00:00:00 2001 From: Bas Stottelaar Date: Thu, 29 Mar 2018 19:54:48 +0200 Subject: [PATCH] dist/tools: jlink: use GDB as default for DBG --- dist/tools/jlink/jlink.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/tools/jlink/jlink.sh b/dist/tools/jlink/jlink.sh index b525207f15..47468be650 100755 --- a/dist/tools/jlink/jlink.sh +++ b/dist/tools/jlink/jlink.sh @@ -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 }