mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-25 22:43:50 +01:00
tools/renode: qemu: move debug script in common place
This commit is contained in:
parent
ae20873510
commit
4ff5b749b0
@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# This script wraps Renode emulator GDB server and a debugger
|
||||
# This script wraps an emulator GDB server (renode or qemu) and a debugger
|
||||
# client in a single command and takes 4 arguments: the board to emulate,
|
||||
# the application directory of the the current application, the elffile
|
||||
# containing the firmware to debug, the debugger port and custom debugger client
|
||||
@ -42,7 +42,7 @@ trap "cleanup ${EMULATOR_PIDFILE}" EXIT
|
||||
# don't trap on Ctrl+C, because GDB keeps running
|
||||
trap '' INT
|
||||
|
||||
# start Renode GDB server
|
||||
# start emulator GDB server
|
||||
sh -c "\
|
||||
GDB_PORT=${GDB_PORT} \
|
||||
EMULATOR_PIDFILE=${EMULATOR_PIDFILE} \
|
||||
@ -18,4 +18,4 @@ DEBUGSERVER ?= $(EMULATOR)
|
||||
DEBUGSERVER_FLAGS ?= $(QEMU_DEBUG_FLAGS)
|
||||
|
||||
DEBUGGER_FLAGS ?= $(BOARD) $(APPDIR) $(ELFFILE) $(GDB_PORT)
|
||||
DEBUGGER ?= $(RIOTTOOLS)/renode/renode-debug.sh
|
||||
DEBUGGER ?= $(RIOTTOOLS)/emulator/debug.sh
|
||||
|
||||
@ -28,4 +28,4 @@ DEBUGSERVER ?= $(EMULATOR)
|
||||
DEBUGSERVER_FLAGS ?= $(RENODE_DEBUG_FLAGS)
|
||||
|
||||
DEBUGGER_FLAGS ?= $(BOARD) $(APPDIR) $(ELFFILE) $(GDB_PORT) "-ex \"monitor start\""
|
||||
DEBUGGER ?= $(RIOTTOOLS)/renode/renode-debug.sh
|
||||
DEBUGGER ?= $(RIOTTOOLS)/emulator/debug.sh
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user