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

Merge pull request #5991 from Yonezawa-T2/use_lldb

make: use LLDB if GDB is not available on native platform
This commit is contained in:
Martine Lenders 2016-10-31 15:43:39 +01:00 committed by GitHub
commit 2d89169d00

View File

@ -34,7 +34,11 @@ export OFLAGS =
endif
endif
export DEBUGGER = gdb
ifeq ($(shell uname -s),Darwin)
export DEBUGGER ?= lldb
else
export DEBUGGER ?= gdb
endif
export TERMPROG ?= $(ELF)
export FLASHER = true
export VALGRIND ?= valgrind
@ -93,7 +97,11 @@ endif
export TERMFLAGS := $(PORT) $(TERMFLAGS)
export ASFLAGS =
ifeq ($(shell basename $(DEBUGGER)),lldb)
export DEBUGGER_FLAGS = -- $(ELF) $(TERMFLAGS)
else
export DEBUGGER_FLAGS = -q --args $(ELF) $(TERMFLAGS)
endif
term-valgrind: export VALGRIND_FLAGS ?= \
--leak-check=full \
--track-origins=yes \