1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-15 09:33:50 +01:00

Merge pull request #1851 from authmillenon/native-debug-args

make: initialize debugger with TERMFLAGS
This commit is contained in:
Ludwig Ortmann 2014-10-23 01:17:12 -07:00
commit dd379220e7

View File

@ -55,8 +55,19 @@ else
export LINKFLAGS += -ldl
endif
# set the tap interface for term/valgrind
ifneq (,$(filter nativenet,$(USEMODULE)))
export PORT ?= tap0
else
export PORT =
endif
ifeq (,$(filter $(PORT),$(TERMFLAGS)))
export TERMFLAGS += $(PORT)
endif
export ASFLAGS =
export DEBUGGER_FLAGS = $(ELF)
export DEBUGGER_FLAGS = --args $(ELF) $(TERMFLAGS)
term-valgrind: export VALGRIND_FLAGS ?= \
--track-origins=yes \
--fullpath-after=$(RIOTBASE)/ \
@ -89,17 +100,6 @@ ifeq ($(shell uname -s),Darwin)
endif
endif
# set the tap interface for term/valgrind
ifneq (,$(filter nativenet,$(USEMODULE)))
export PORT ?= tap0
else
export PORT =
endif
ifeq (,$(filter $(PORT),$(TERMFLAGS)))
export TERMFLAGS += $(PORT)
endif
all: # do not override first target
all-debug: all