1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-31 09:21:19 +01:00

makefiles/renode: add debugger config

This commit is contained in:
Alexandre Abadie 2020-11-21 13:39:16 +01:00
parent c61a231d7f
commit 4707de2a5f
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405

View File

@ -1,11 +1,17 @@
RENODE ?= renode
RENODE_IMAGE_FILE ?= $(ELFFILE)
RENODE_BOARD_CONFIG ?= $(BOARDDIR)/dist/board.resc
DEBUGGER ?= gdb-multiarch
DEBUGGER_PORT ?= 3333
# Use renode interactive commands to specify the image file and board config
RENODE_FLAGS += -e "set image_file '$(RENODE_IMAGE_FILE)'"
RENODE_FLAGS += -e "include @$(RENODE_BOARD_CONFIG)"
RENODE_CONFIG_FLAGS += -e "set image_file '$(RENODE_IMAGE_FILE)'"
RENODE_CONFIG_FLAGS += -e "include @$(RENODE_BOARD_CONFIG)"
# Set emulator variables
EMULATOR_FLAGS ?= $(RENODE_FLAGS)
EMULATOR_FLAGS ?= $(RENODE_CONFIG_FLAGS) -e start
EMULATOR_DEBUG_FLAGS += $(RENODE_CONFIG_FLAGS)
EMULATOR_DEBUG_FLAGS += -e "machine StartGdbServer $(DEBUGGER_PORT) true"
EMULATOR ?= $(RENODE)
DEBUGGER_FLAGS ?= $(ELFFILE) -ex "target remote :$(DEBUGGER_PORT)" -ex "monitor start"