1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

tools/jlink.sh: start gdb server with setsid

Adopted from openocd script in order to prevent killing the gdb server
upon SIGINT.
This commit is contained in:
Oleg Hahm 2023-06-09 15:33:14 +02:00
parent 35d3896d47
commit 30e1d3ef8a

View File

@ -65,6 +65,8 @@
: ${IMAGE_OFFSET:=0} : ${IMAGE_OFFSET:=0}
# Allow overwriting the reset commands. # Allow overwriting the reset commands.
: ${JLINK_RESET_FILE:=${RIOTTOOLS}/jlink/reset.seg} : ${JLINK_RESET_FILE:=${RIOTTOOLS}/jlink/reset.seg}
# The setsid command is needed so that Ctrl+C in GDB doesn't kill OpenOCD
: ${SETSID:=setsid}
# default GDB port # default GDB port
_GDB_PORT=3333 _GDB_PORT=3333
@ -239,7 +241,7 @@ do_debug() {
test_tui test_tui
test_dbg test_dbg
# start the J-Link GDB server # start the J-Link GDB server
sh -c "${JLINK_SERVER} ${JLINK_SERIAL_SERVER} \ ${SETSID} sh -c "${JLINK_SERVER} ${JLINK_SERIAL_SERVER} \
-nogui \ -nogui \
-silent \ -silent \
-device '${JLINK_DEVICE}' \ -device '${JLINK_DEVICE}' \