Skip to content

Commit 4ae8980

Browse files
committed
Merge pull request RIOT-OS#5160 from kaspar030/native_make_term_through_gdb
native: compile with -g, "make term" runs through gdb
2 parents d702793 + 7a18922 commit 4ae8980

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

boards/native/Makefile.include

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ endif
3333
endif
3434

3535
export DEBUGGER = gdb
36-
export TERMPROG = $(ELF)
36+
export TERMPROG ?= $(ELF)
3737
export FLASHER = true
3838
export VALGRIND ?= valgrind
3939
export CGANNOTATE ?= cg_annotate

dist/tools/travis-scripts/build_and_test.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ then
7171

7272
if [ "$BUILDTEST_MCU_GROUP" == "x86" ]
7373
then
74-
make -C ./tests/unittests all test BOARD=native || exit
74+
make -C ./tests/unittests all-debug test BOARD=native TERMPROG='gdb -batch -ex r -ex bt $(ELF)' || exit
7575
# TODO:
7676
# Reenable once https://github.com/RIOT-OS/RIOT/issues/2300 is
7777
# resolved:

0 commit comments

Comments
 (0)