1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Merge pull request #18784 from maribu/makefiles/tools/gdb.inc.mk

makefiles/tools/gdb.inc.mk: prefer $(target)-gdb over gdb-multiarch
This commit is contained in:
Marian Buschsieweke 2022-10-24 13:06:10 +02:00 committed by GitHub
commit 52aa12bd80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,11 @@
# new versions of gdb will support all architectures in one binary
ifeq ($(shell gdb-multiarch -v > /dev/null 2>&1; echo $$?),0)
export GDB ?= gdb-multiarch
export GDBPREFIX ?= $(PREFIX)
# If the user installed a magic single target GDB rather than just using
# gdb-multiarch, there typically is a reason for it - e.g. missing support for
# that particular target in gdb-multiarch.
ifeq ($(shell $(GDBPREFIX)gdb -v > /dev/null 2>&1; echo $$?),0)
export GDB ?= $(GDBPREFIX)gdb
else
export GDBPREFIX ?= $(PREFIX)
export GDB ?= $(GDBPREFIX)gdb
# gdb-multiarch is normally
export GDB ?= gdb-multiarch
endif