package/gdb: fix gdb default version

We need to select one of the 3 gdb versions available when host-gdb is
not selected but the condition was removed while removing gdb 14.x
in commit [1], so gdb package fail to download the archive.

Select BR2_GDB_VERSION_16 when !BR2_PACKAGE_HOST_GDB.

[1] 6737c90bc6

Fixes:
https://gitlab.com/buildroot.org/buildroot/-/jobs/15969219536 (TestGdbFullTarget)
https://gitlab.com/buildroot.org/buildroot/-/jobs/15969219539 (TestGdbserverOnly)

Signed-off-by: Romain Naour <romain.naour@smile.fr>
Signed-off-by: Julien Olivain <ju.o@free.fr>
This commit is contained in:
Romain Naour
2026-08-19 18:24:05 +02:00
committed by Julien Olivain
parent 2f6b34f851
commit 7eb4a552c4

View File

@@ -67,6 +67,6 @@ endif
config BR2_GDB_VERSION
string
default "15.2" if BR2_GDB_VERSION_15
default "16.3" if BR2_GDB_VERSION_16
default "16.3" if BR2_GDB_VERSION_16 || !BR2_PACKAGE_HOST_GDB
default "17.1" if BR2_GDB_VERSION_17
depends on BR2_PACKAGE_GDB || BR2_PACKAGE_HOST_GDB