diff --git a/boards/native/Makefile.include b/boards/native/Makefile.include index 297ace01dc..01fc119f21 100644 --- a/boards/native/Makefile.include +++ b/boards/native/Makefile.include @@ -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 \