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:
commit
dd379220e7
@ -55,8 +55,19 @@ else
|
|||||||
export LINKFLAGS += -ldl
|
export LINKFLAGS += -ldl
|
||||||
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
|
||||||
|
|
||||||
export ASFLAGS =
|
export ASFLAGS =
|
||||||
export DEBUGGER_FLAGS = $(ELF)
|
export DEBUGGER_FLAGS = --args $(ELF) $(TERMFLAGS)
|
||||||
term-valgrind: export VALGRIND_FLAGS ?= \
|
term-valgrind: export VALGRIND_FLAGS ?= \
|
||||||
--track-origins=yes \
|
--track-origins=yes \
|
||||||
--fullpath-after=$(RIOTBASE)/ \
|
--fullpath-after=$(RIOTBASE)/ \
|
||||||
@ -89,17 +100,6 @@ ifeq ($(shell uname -s),Darwin)
|
|||||||
endif
|
endif
|
||||||
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: # do not override first target
|
||||||
|
|
||||||
all-debug: all
|
all-debug: all
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user