Skip to contentSkip to conversation

package/gdb: remove version 14.x

PATCH In review Bernd Kuhls 2 participants 2 messages Jul 26 – Aug 4 RISC-V

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/gdb: remove version 14.x

Now that gdb 17.x has been added[1], and gdb 16.x made the default[2], let's remove support for gdb 14.x.

Aside from the usual removal, we also simplify things a bit as GDB 14.x was the last version not depending on gcc >= 9.x. As it is now a mandatory dependency we move it outside the choice.

[1] 4868e0dd621013ff3d3b6e81a86d0d981ae21646
[2] 23e70547ca1746c638a4e327548eefeb205faeff

---
 .checkpackageignore                           |  9 ---
 Config.in.legacy                              |  7 +++
 ...e-pt_regs-uapi_pt_regs-on-GLIBC-syst.patch | 55 ----------------
 ...-pt_-dsp-regs-uapi_pt_-dsp-regs-on-G.patch | 43 -------------
 package/gdb/14.2/0003-use-asm-sgidefs.h.patch | 40 ------------
 .../0004-gdbserver-fix-build-for-m68k.patch   | 63 -------------------
 ...fork-inferior-include-linux-ptrace.h.patch | 53 ----------------
 ...getrandom-compile-for-uclibc-v1.0.35.patch | 39 ------------
 .../14.2/0007-fix-musl-build-on-riscv.patch   | 60 ------------------
 ...-gdbserver-Makefile.in-fix-NLS-build.patch | 38 -----------
 .../0009-gdb-Fix-native-build-on-xtensa.patch | 57 -----------------
 package/gdb/Config.in.host                    | 18 ++----
 package/gdb/gdb.hash                          |  1 -
 13 files changed, 13 insertions(+), 470 deletions(-)
 delete mode 100644 package/gdb/14.2/0001-ppc-ptrace-Define-pt_regs-uapi_pt_regs-on-GLIBC-syst.patch
 delete mode 100644 package/gdb/14.2/0002-sh-ptrace-Define-pt_-dsp-regs-uapi_pt_-dsp-regs-on-G.patch
 delete mode 100644 package/gdb/14.2/0003-use-asm-sgidefs.h.patch
 delete mode 100644 package/gdb/14.2/0004-gdbserver-fix-build-for-m68k.patch
 delete mode 100644 package/gdb/14.2/0005-nat-fork-inferior-include-linux-ptrace.h.patch
 delete mode 100644 package/gdb/14.2/0006-Fix-getrandom-compile-for-uclibc-v1.0.35.patch
 delete mode 100644 package/gdb/14.2/0007-fix-musl-build-on-riscv.patch
 delete mode 100644 package/gdb/14.2/0008-gdbserver-Makefile.in-fix-NLS-build.patch
 delete mode 100644 package/gdb/14.2/0009-gdb-Fix-native-build-on-xtensa.patch
.checkpackageignore +0 -9
index 5456b2f84e..accba30ec3 100644
@@ -356,15 +356,6 @@ package/gcc/8.4.0/0001-xtensa-fix-PR-target-91880.patch lib_patch.Upstream
 package/gcc/8.4.0/0002-Revert-re-PR-target-92095-internal-error-with-O1-mcp.patch lib_patch.Upstream
 package/gcc/8.4.0/0003-libsanitizer-Remove-cyclades-from-libsanitizer.patch lib_patch.Upstream
 package/gcc/8.4.0/0004-disable-split-stack-for-non-thread-builds.patch lib_patch.Upstream
-package/gdb/14.2/0001-ppc-ptrace-Define-pt_regs-uapi_pt_regs-on-GLIBC-syst.patch lib_patch.Upstream
-package/gdb/14.2/0002-sh-ptrace-Define-pt_-dsp-regs-uapi_pt_-dsp-regs-on-G.patch lib_patch.Upstream
-package/gdb/14.2/0003-use-asm-sgidefs.h.patch lib_patch.Upstream
-package/gdb/14.2/0004-gdbserver-fix-build-for-m68k.patch lib_patch.Upstream
-package/gdb/14.2/0005-nat-fork-inferior-include-linux-ptrace.h.patch lib_patch.Upstream
-package/gdb/14.2/0006-Fix-getrandom-compile-for-uclibc-v1.0.35.patch lib_patch.Upstream
-package/gdb/14.2/0007-fix-musl-build-on-riscv.patch lib_patch.Upstream
-package/gdb/14.2/0008-gdbserver-Makefile.in-fix-NLS-build.patch lib_patch.Upstream
-package/gdb/14.2/0009-gdb-Fix-native-build-on-xtensa.patch lib_patch.Upstream
 package/gdb/15.2/0001-ppc-ptrace-Define-pt_regs-uapi_pt_regs-on-GLIBC-syst.patch lib_patch.Upstream
 package/gdb/15.2/0002-sh-ptrace-Define-pt_-dsp-regs-uapi_pt_-dsp-regs-on-G.patch lib_patch.Upstream
 package/gdb/15.2/0003-use-asm-sgidefs.h.patch lib_patch.Upstream
Config.in.legacy +7 -0
index 4894fe7065..700b250da2 100644
@@ -146,6 +146,13 @@ endif
 
 comment "Legacy options removed in 2026.08"
 
+config BR2_GDB_VERSION_14
+	bool "gdb 14.x has been removed"
+	select BR2_LEGACY
+	help
+	  GDB 14.x support has been removed, a newer version should be
+	  used instead.
+
 config BR2_KERNEL_HEADERS_7_0
 	bool "kernel headers version 7.0.x are no longer supported"
 	select BR2_LEGACY
package/gdb/14.2/0001-ppc-ptrace-Define-pt_regs-uapi_pt_regs-on-GLIBC-syst.patch deleted +0 -55

55 lines not on this page · raw message

package/gdb/14.2/0002-sh-ptrace-Define-pt_-dsp-regs-uapi_pt_-dsp-regs-on-G.patch deleted +0 -43

43 lines not on this page · raw message

package/gdb/14.2/0003-use-asm-sgidefs.h.patch deleted +0 -40
deleted file mode 100644
index 12f0885b34..0000000000
@@ -1,40 +0,0 @@
-From 5288e2a3dcb2928e1367cd1d4c31da3b8310f3a0 Mon Sep 17 00:00:00 2001
-From: Andre McCurdy <[email protected]>
-Date: Sat, 30 Apr 2016 15:29:06 -0700
-Subject: [PATCH] use <asm/sgidefs.h>
-
-Build fix for MIPS with musl libc
-
-The MIPS specific header <sgidefs.h> is provided by glibc and uclibc
-but not by musl. Regardless of the libc, the kernel headers provide
-<asm/sgidefs.h> which provides the same definitions, so use that
-instead.
-
-Upstream-Status: Pending
-
-[Vincent:
-Taken from: https://sourceware.org/bugzilla/show_bug.cgi?id=21070]
-
-Signed-off-by: Andre McCurdy <[email protected]>
-Signed-off-by: Khem Raj <[email protected]>
-Signed-off-by: Vicente Olivert Riera <[email protected]>
----
- gdb/mips-linux-nat.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/gdb/mips-linux-nat.c b/gdb/mips-linux-nat.c
-index 8a7cc95f2a4..3686f43abfd 100644
---- a/gdb/mips-linux-nat.c
-+++ b/gdb/mips-linux-nat.c
-@@ -31,7 +31,7 @@
- #include "gdb_proc_service.h"
- #include "gregset.h"
- 
--#include <sgidefs.h>
-+#include <asm/sgidefs.h>
- #include "nat/gdb_ptrace.h"
- #include <asm/ptrace.h>
- #include "inf-ptrace.h"
--- 
-2.43.0
-
package/gdb/14.2/0004-gdbserver-fix-build-for-m68k.patch deleted +0 -63

63 lines not on this page · raw message

package/gdb/14.2/0005-nat-fork-inferior-include-linux-ptrace.h.patch deleted +0 -53

53 lines not on this page · raw message

package/gdb/14.2/0006-Fix-getrandom-compile-for-uclibc-v1.0.35.patch deleted +0 -39
deleted file mode 100644
index 7fed8266df..0000000000
@@ -1,39 +0,0 @@
-From c87940ff1c2efd22c3dab9cd712531281144ed89 Mon Sep 17 00:00:00 2001
-From: Peter Seiderer <[email protected]>
-Date: Sat, 6 Nov 2021 10:06:25 +0100
-Subject: [PATCH] Fix getrandom compile for uclibc < v1.0.35
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-- fix getrandom compile for uclibc < v1.0.35, add missing stddef.h
-  include (fixed in uclibc since v1.0.35, see [1])
-
-Fixes:
-
-  .../host/x86_64-buildroot-linux-uclibc/sysroot/usr/include/sys/random.h:27:35: error: unknown type name ‘size_t’
-     27 | extern int getrandom(void *__buf, size_t count, unsigned int flags)
-        |                                   ^~~~~~
-
-[1] https://cgit.uclibc-ng.org/cgi/cgit/uclibc-ng.git/commit/?id=00972c02c2b6e0a95d5def4a71bdfb188e091782t
-
-Signed-off-by: Peter Seiderer <[email protected]>
----
- gnulib/import/getrandom.c | 1 +
- 1 file changed, 1 insertion(+)
-
-diff --git a/gnulib/import/getrandom.c b/gnulib/import/getrandom.c
-index e1468730933..3948d8d552a 100644
---- a/gnulib/import/getrandom.c
-+++ b/gnulib/import/getrandom.c
-@@ -19,6 +19,7 @@
- 
- #include <config.h>
- 
-+#include <stddef.h>
- #include <sys/random.h>
- 
- #include <errno.h>
--- 
-2.43.0
-
package/gdb/14.2/0007-fix-musl-build-on-riscv.patch deleted +0 -60

60 lines not on this page · raw message

package/gdb/14.2/0008-gdbserver-Makefile.in-fix-NLS-build.patch deleted +0 -38
deleted file mode 100644
index 05fedfc960..0000000000
@@ -1,38 +0,0 @@
-From 49cc0d8a7a930eab1eb8c848101150ca83145334 Mon Sep 17 00:00:00 2001
-From: Fabrice Fontaine <[email protected]>
-Date: Thu, 18 Nov 2021 22:52:08 +0100
-Subject: [PATCH] gdbserver/Makefile.in: fix NLS build
-
-Fix the following build failure raised since gdb version 10.1 and
-https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=9a665d62266e75f0519f3a663784c458885b5c63:
-
-  CXXLD  libinproctrace.so
-/home/buildroot/autobuild/instance-2/output-1/host/opt/ext-toolchain/bin/../lib/gcc/i586-buildroot-linux-musl/9.3.0/../../../../i586-buildroot-linux-musl/bin/ld: gdbsupport/tdesc-ipa.o: in function `print_xml_feature::visit(tdesc_type_builtin const*)':
-/home/buildroot/autobuild/instance-2/output-1/build/gdb-10.2/build/gdbserver/../../gdbserver/../gdbsupport/tdesc.cc:310: undefined reference to `libintl_gettext'
-
-Fixes:
- - http://autobuild.buildroot.org/results/faacc874fe9d32b74cb3d3dea988ef661cb0e3d0
-
-Signed-off-by: Fabrice Fontaine <[email protected]>
-[Upstream status:
-https://sourceware.org/pipermail/gdb-patches/2021-November/183580.html]
----
- gdbserver/Makefile.in | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/gdbserver/Makefile.in b/gdbserver/Makefile.in
-index b597515d428..54cc7ccb0f6 100644
---- a/gdbserver/Makefile.in
-+++ b/gdbserver/Makefile.in
-@@ -389,7 +389,7 @@ $(IPA_LIB): $(sort $(IPA_OBJS)) ${CDEPS}
- 	$(ECHO_CXXLD) $(CC_LD) -shared -fPIC -Wl,--soname=$(IPA_LIB) \
- 		-Wl,--no-undefined $(INTERNAL_CFLAGS) $(INTERNAL_LDFLAGS) \
- 		 $(CXXFLAGS) \
--		-o $(IPA_LIB) ${IPA_OBJS} $(LIBIBERTY_FOR_SHLIB) -ldl -pthread
-+		-o $(IPA_LIB) ${IPA_OBJS} $(LIBIBERTY_FOR_SHLIB) -ldl -pthread $(INTL)
- 
- # Put the proper machine-specific files first, so M-. on a machine
- # specific routine gets the one for the correct machine.
--- 
-2.43.0
-
package/gdb/14.2/0009-gdb-Fix-native-build-on-xtensa.patch deleted +0 -57

57 lines not on this page · raw message

package/gdb/Config.in.host +6 -12
index fe639a4019..0cc28ef7f0 100644
@@ -8,6 +8,10 @@ comment "Host GDB Options"
 	depends on !BR2_TOOLCHAIN_EXTERNAL_GDB_SERVER_COPY
 	depends on BR2_PACKAGE_HOST_GDB_ARCH_SUPPORTS
 
+comment "cross gdb for the host needs host and target gcc >= 9"
+	depends on !BR2_HOST_GCC_AT_LEAST_9 || \
+		!BR2_TOOLCHAIN_GCC_AT_LEAST_9
+
 config BR2_PACKAGE_HOST_GDB
 	bool "Build cross gdb for the host"
 	# When the external toolchain gdbserver is used, we shouldn't
@@ -15,6 +19,7 @@ config BR2_PACKAGE_HOST_GDB
 	# toolchain should be used.
 	depends on !BR2_TOOLCHAIN_EXTERNAL_GDB_SERVER_COPY
 	depends on BR2_PACKAGE_HOST_GDB_ARCH_SUPPORTS
+	depends on BR2_HOST_GCC_AT_LEAST_9 && BR2_TOOLCHAIN_GCC_AT_LEAST_9
 	help
 	  Build a cross gdb that runs on the host machine and debugs
 	  programs running on the target. It requires 'gdbserver'
@@ -50,24 +55,14 @@ config BR2_GDB_VERSION_ARC
 	bool "gdb arc (15.x)"
 	depends on BR2_arc
 
-config BR2_GDB_VERSION_14
-	bool "gdb 14.x"
-
 config BR2_GDB_VERSION_15
 	bool "gdb 15.x"
-	depends on BR2_HOST_GCC_AT_LEAST_9 && BR2_TOOLCHAIN_GCC_AT_LEAST_9
 
 config BR2_GDB_VERSION_16
 	bool "gdb 16.x"
-	depends on BR2_HOST_GCC_AT_LEAST_9 && BR2_TOOLCHAIN_GCC_AT_LEAST_9
 
 config BR2_GDB_VERSION_17
 	bool "gdb 17.x"
-	depends on BR2_HOST_GCC_AT_LEAST_9 && BR2_TOOLCHAIN_GCC_AT_LEAST_9
-
-comment "gdb 15.x/16.x/17.x need host and target gcc >= 9"
-	depends on !BR2_HOST_GCC_AT_LEAST_9 || \
-		!BR2_TOOLCHAIN_GCC_AT_LEAST_9
 
 endchoice
 
@@ -77,8 +72,7 @@ endif
 config BR2_GDB_VERSION
 	string
 	default "arc-2024.12-release-gdb" if BR2_GDB_VERSION_ARC || (!BR2_PACKAGE_HOST_GDB && BR2_arc)
-	default "14.2"     if BR2_GDB_VERSION_14 || (!BR2_PACKAGE_HOST_GDB && !BR2_TOOLCHAIN_GCC_AT_LEAST_9)
 	default "15.2"	   if BR2_GDB_VERSION_15
-	default "16.3"	   if BR2_GDB_VERSION_16 || (!BR2_PACKAGE_HOST_GDB && BR2_TOOLCHAIN_GCC_AT_LEAST_9)
+	default "16.3"	   if BR2_GDB_VERSION_16
 	default "17.1"	   if BR2_GDB_VERSION_17
 	depends on BR2_PACKAGE_GDB || BR2_PACKAGE_HOST_GDB
package/gdb/gdb.hash +0 -1
index e2a250c0c7..a0add73dca 100644
@@ -1,5 +1,4 @@
 # From https://gcc.gnu.org/pub/gdb/releases/sha512.sum
-sha512  7e07941f1fe661288cc571b4964012ceabc1760624fce20320db2f470c01439b2386f859b5288da13204b758e2e3b22a74c68c012178db93b9529b06f1e22ede  gdb-14.2.tar.xz
 sha512  624007deceb5b15ba89c0725883d1a699fa46714ef30887f3d0165e17c5d65d634671740a135aa69e437d916218abb08cfa2a38ed309ff19d48f51da56b2a8ba  gdb-15.2.tar.xz
 sha512  fffd6689c3405466a179670b04720dc825e4f210a761f63dd2b33027432f8cd5d1c059c431a5ec9e165eedd1901220b5329d73c522f9a444788888c731b29e9c  gdb-16.3.tar.xz
 sha512  f1a6751e439a2128fecf3eae8b57c1608a0dc7cfe79b4356a937874e5a42bb2df0aba36eb6a9452c41966908b9a59076c7cad9720f684688ab956b65080f1d7c  gdb-17.1.tar.xz
Signature · 6 lines
2.47.3

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 11 lines · Bernd Kuhls

Now that gdb 17.x has been added[1], and gdb 16.x made the default[2], let's remove support for gdb 14.x.

Aside from the usual removal, we also simplify things a bit as GDB 14.x was the last version not depending on gcc >= 9.x. As it is now a mandatory dependency we move it outside the choice.

[1] 4868e0dd621013ff3d3b6e81a86d0d981ae21646
[2] 23e70547ca1746c638a4e327548eefeb205faeff

Applied to master, thanks.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot