Skip to contentSkip to conversation

Add support for GDB 16.x

PATCH In review Thomas Petazzoni via buildroot 4 participants 7 messages Jan 26, 2025 – Feb 1, 2025 RISC-V

lore
Share & tools
lore
#0 lore raw

cover Add support for GDB 16.x

Hello,

This small series adds support for GDB 16.x, doing the usual dance of adding 16.x, making 15.x the default, and dropping 13.

PATCH 1 fixes an existing issue with the gdb tests, due to an unrelated commit, but that we fix here as it was needed for the GDB tests to pass.

Thomas

Thomas Petazzoni (4):
support/testing/tests/package/test_gdb.py: fix ARC test package/gdb: add support for GDB 16.1 package/gdb: change the default to GDB 15.x package/gdb: remove version 13.x

 .checkpackageignore                           | 18 +++++++-------
 Config.in.legacy                              |  7 ++++++
 ...e-pt_regs-uapi_pt_regs-on-GLIBC-syst.patch | 14 +++++------
 ...-pt_-dsp-regs-uapi_pt_-dsp-regs-on-G.patch |  8 +++----
 .../0003-use-asm-sgidefs.h.patch              |  8 +++----
 .../0004-gdbserver-fix-build-for-m68k.patch   | 17 ++++++-------
 ...fork-inferior-include-linux-ptrace.h.patch |  8 +++----
 ...getrandom-compile-for-uclibc-v1.0.35.patch |  4 ++--
 .../0007-fix-musl-build-on-riscv.patch        | 12 +++++-----
 ...-gdbserver-Makefile.in-fix-NLS-build.patch |  8 +++----
 .../0009-gdb-Fix-native-build-on-xtensa.patch |  8 +++----
 package/gdb/Config.in                         |  2 +-
 package/gdb/Config.in.host                    | 17 ++++++-------
 package/gdb/gdb.hash                          |  2 +-
 package/gdb/gdb.mk                            | 24 +++++--------------
 support/testing/tests/package/test_gdb.py     |  2 +-
 16 files changed, 78 insertions(+), 81 deletions(-)
 rename package/gdb/{13.2 => 16.1}/0001-ppc-ptrace-Define-pt_regs-uapi_pt_regs-on-GLIBC-syst.patch (84%)
 rename package/gdb/{13.2 => 16.1}/0002-sh-ptrace-Define-pt_-dsp-regs-uapi_pt_-dsp-regs-on-G.patch (86%)
 rename package/gdb/{13.2 => 16.1}/0003-use-asm-sgidefs.h.patch (88%)
 rename package/gdb/{13.2 => 16.1}/0004-gdbserver-fix-build-for-m68k.patch (81%)
 rename package/gdb/{13.2 => 16.1}/0005-nat-fork-inferior-include-linux-ptrace.h.patch (92%)
 rename package/gdb/{13.2 => 16.1}/0006-Fix-getrandom-compile-for-uclibc-v1.0.35.patch (94%)
 rename package/gdb/{13.2 => 16.1}/0007-fix-musl-build-on-riscv.patch (91%)
 rename package/gdb/{13.2 => 16.1}/0008-gdbserver-Makefile.in-fix-NLS-build.patch (90%)
 rename package/gdb/{13.2 => 16.1}/0009-gdb-Fix-native-build-on-xtensa.patch (95%)
Signature · 6 lines
2.47.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

PATCH 1/4 support/testing/tests/package/test_gdb.py: fix ARC test

Since the disabling of the Synopsys ARC toolchain in 11a8cdd2bbbd0ef4adf600e4792d75f6f2122ec8, the test tests.package.test_gdb.TestGdbArc was failing as it was relying on this external toolchain.

Let's switch the test to use BR2_archs38, which allows to use a Bootlin toolchain.

Fixes:

https://gitlab.com/buildroot.org/buildroot/-/jobs/8892696282

---
 support/testing/tests/package/test_gdb.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
support/testing/tests/package/test_gdb.py +1 -1
index 4712162349..324052efdb 100644
@@ -95,7 +95,7 @@ class TestGdbArc(BaseGdb):
     config = \
         """
         BR2_arcle=y
-        BR2_archs4x_rel31=y
+        BR2_archs38=y
         BR2_TOOLCHAIN_EXTERNAL=y
         BR2_PACKAGE_HOST_GDB=y
         BR2_PACKAGE_GDB=y
Signature · 6 lines
2.47.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw

Re: [Buildroot] [PATCH 1/4] support/testing/tests/package/test_gdb.py: fix ARC test

Quoted 5 lines · Thomas Petazzoni via buildroot

Since the disabling of the Synopsys ARC toolchain in 11a8cdd2bbbd0ef4adf600e4792d75f6f2122ec8, the test tests.package.test_gdb.TestGdbArc was failing as it was relying on this external toolchain.

Quoted 8 lines

Let's switch the test to use BR2_archs38, which allows to use a Bootlin toolchain.

Fixes:

https://gitlab.com/buildroot.org/buildroot/-/jobs/8892696282

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

#3 lore raw

Re: [Buildroot] [PATCH 1/4] support/testing/tests/package/test_gdb.py: fix ARC test

In reply to Thomas Petazzoni via buildroot
Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Thomas" == Thomas Petazzoni via buildroot <[email protected]> writes:

Since the disabling of the Synopsys ARC toolchain in 11a8cdd2bbbd0ef4adf600e4792d75f6f2122ec8, the test tests.package.test_gdb.TestGdbArc was failing as it was relying on this external toolchain.

Quoted 8 lines

Let's switch the test to use BR2_archs38, which allows to use a Bootlin toolchain.

Fixes:

https://gitlab.com/buildroot.org/buildroot/-/jobs/8892696282

Committed to 2024.11.x, thanks.

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#4 lore raw

PATCH 2/4 package/gdb: add support for GDB 16.1

In reply to Thomas Petazzoni via buildroot

All patches that were applicable to GDB 15.1 are also applicable to GDB 16.1, they are simply refreshed.

Details about the 16.1 release:

https://sourceware.org/gdb/download/ANNOUNCEMENT

---
 .checkpackageignore                           |  9 +++
 ...e-pt_regs-uapi_pt_regs-on-GLIBC-syst.patch | 55 ++++++++++++++++
 ...-pt_-dsp-regs-uapi_pt_-dsp-regs-on-G.patch | 43 +++++++++++++
 package/gdb/16.1/0003-use-asm-sgidefs.h.patch | 40 ++++++++++++
 .../0004-gdbserver-fix-build-for-m68k.patch   | 64 +++++++++++++++++++
 ...fork-inferior-include-linux-ptrace.h.patch | 53 +++++++++++++++
 ...getrandom-compile-for-uclibc-v1.0.35.patch | 39 +++++++++++
 .../16.1/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                    |  7 +-
 package/gdb/gdb.hash                          |  1 +
 12 files changed, 465 insertions(+), 1 deletion(-)
 create mode 100644 package/gdb/16.1/0001-ppc-ptrace-Define-pt_regs-uapi_pt_regs-on-GLIBC-syst.patch
 create mode 100644 package/gdb/16.1/0002-sh-ptrace-Define-pt_-dsp-regs-uapi_pt_-dsp-regs-on-G.patch
 create mode 100644 package/gdb/16.1/0003-use-asm-sgidefs.h.patch
 create mode 100644 package/gdb/16.1/0004-gdbserver-fix-build-for-m68k.patch
 create mode 100644 package/gdb/16.1/0005-nat-fork-inferior-include-linux-ptrace.h.patch
 create mode 100644 package/gdb/16.1/0006-Fix-getrandom-compile-for-uclibc-v1.0.35.patch
 create mode 100644 package/gdb/16.1/0007-fix-musl-build-on-riscv.patch
 create mode 100644 package/gdb/16.1/0008-gdbserver-Makefile.in-fix-NLS-build.patch
 create mode 100644 package/gdb/16.1/0009-gdb-Fix-native-build-on-xtensa.patch
.checkpackageignore +9 -0
index 24cbc3253c..378976a0cc 100644
@@ -517,6 +517,15 @@ package/gdb/15.1/0006-Fix-getrandom-compile-for-uclibc-v1.0.35.patch lib_patch.U
 package/gdb/15.1/0007-fix-musl-build-on-riscv.patch lib_patch.Upstream
 package/gdb/15.1/0008-gdbserver-Makefile.in-fix-NLS-build.patch lib_patch.Upstream
 package/gdb/15.1/0009-gdb-Fix-native-build-on-xtensa.patch lib_patch.Upstream
+package/gdb/16.1/0001-ppc-ptrace-Define-pt_regs-uapi_pt_regs-on-GLIBC-syst.patch lib_patch.Upstream
+package/gdb/16.1/0002-sh-ptrace-Define-pt_-dsp-regs-uapi_pt_-dsp-regs-on-G.patch lib_patch.Upstream
+package/gdb/16.1/0003-use-asm-sgidefs.h.patch lib_patch.Upstream
+package/gdb/16.1/0004-gdbserver-fix-build-for-m68k.patch lib_patch.Upstream
+package/gdb/16.1/0005-nat-fork-inferior-include-linux-ptrace.h.patch lib_patch.Upstream
+package/gdb/16.1/0006-Fix-getrandom-compile-for-uclibc-v1.0.35.patch lib_patch.Upstream
+package/gdb/16.1/0007-fix-musl-build-on-riscv.patch lib_patch.Upstream
+package/gdb/16.1/0008-gdbserver-Makefile.in-fix-NLS-build.patch lib_patch.Upstream
+package/gdb/16.1/0009-gdb-Fix-native-build-on-xtensa.patch lib_patch.Upstream
 package/genpart/0001-fix-return-code.patch lib_patch.Upstream
 package/genromfs/0001-build-system.patch lib_patch.Sob lib_patch.Upstream
 package/gensio/0001-Fix-missing-EVP_PKEY_ED25519-build-error-on-libressl.patch lib_patch.Upstream
package/gdb/16.1/0001-ppc-ptrace-Define-pt_regs-uapi_pt_regs-on-GLIBC-syst.patch new file +55 -0

55 lines not on this page · raw message

package/gdb/16.1/0002-sh-ptrace-Define-pt_-dsp-regs-uapi_pt_-dsp-regs-on-G.patch new file +43 -0

43 lines not on this page · raw message

package/gdb/16.1/0003-use-asm-sgidefs.h.patch new file +40 -0
new file mode 100644
index 0000000000..4738733c53
@@ -0,0 +1,40 @@
+From 047f9e6b31e2d2dcc633d2d1749153a8bb4f5aa1 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 3d072ea935c..d763c9b8f7e 100644
+--- a/gdb/mips-linux-nat.c
++++ b/gdb/mips-linux-nat.c
+@@ -30,7 +30,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.47.1
+
package/gdb/16.1/0004-gdbserver-fix-build-for-m68k.patch new file +64 -0

64 lines not on this page · raw message

package/gdb/16.1/0005-nat-fork-inferior-include-linux-ptrace.h.patch new file +53 -0

53 lines not on this page · raw message

package/gdb/16.1/0006-Fix-getrandom-compile-for-uclibc-v1.0.35.patch new file +39 -0
new file mode 100644
index 0000000000..ea045e4231
@@ -0,0 +1,39 @@
+From 74c9d53de1c3c3de2e66e559889ce041f41e952a 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.47.1
+
package/gdb/16.1/0007-fix-musl-build-on-riscv.patch new file +60 -0

60 lines not on this page · raw message

package/gdb/16.1/0008-gdbserver-Makefile.in-fix-NLS-build.patch new file +38 -0
new file mode 100644
index 0000000000..d5eb12a65d
@@ -0,0 +1,38 @@
+From dd6ca97fa5fa5acd0fdaa5aa7e5aee33f92ba2df 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 365dcf23650..42e1b7bcf6d 100644
+--- a/gdbserver/Makefile.in
++++ b/gdbserver/Makefile.in
+@@ -407,7 +407,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.47.1
+
package/gdb/16.1/0009-gdb-Fix-native-build-on-xtensa.patch new file +57 -0

57 lines not on this page · raw message

package/gdb/Config.in.host +6 -1
index 36462a0f66..1d718257c6 100644
@@ -56,7 +56,11 @@ config BR2_GDB_VERSION_15
 	bool "gdb 15.x"
 	depends on BR2_HOST_GCC_AT_LEAST_9 && BR2_TOOLCHAIN_GCC_AT_LEAST_9
 
-comment "gdb 15.x needs host and target gcc >= 9"
+config BR2_GDB_VERSION_16
+	bool "gdb 16.x"
+	depends on BR2_HOST_GCC_AT_LEAST_9 && BR2_TOOLCHAIN_GCC_AT_LEAST_9
+
+comment "gdb 15.x/16.x need host and target gcc >= 9"
 	depends on !BR2_HOST_GCC_AT_LEAST_9 || \
 		!BR2_TOOLCHAIN_GCC_AT_LEAST_9
 
@@ -71,4 +75,5 @@ config BR2_GDB_VERSION
 	default "13.2"     if BR2_GDB_VERSION_13
 	default "14.2"     if BR2_GDB_VERSION_14 || !BR2_PACKAGE_HOST_GDB
 	default "15.1"	   if BR2_GDB_VERSION_15
+	default "16.1"	   if BR2_GDB_VERSION_16
 	depends on BR2_PACKAGE_GDB || BR2_PACKAGE_HOST_GDB
package/gdb/gdb.hash +1 -0
index 3d1809a2f9..c6c0376852 100644
@@ -2,6 +2,7 @@
 sha512  8185d3e11ab60dafff5860a5016577bfe7dd7547ef01ebc867bc247603d82b74ff74c4f29492c7d2aee57076f52be33e289f4c6b414a4b870d4b3004909f4c34  gdb-13.2.tar.xz
 sha512  7e07941f1fe661288cc571b4964012ceabc1760624fce20320db2f470c01439b2386f859b5288da13204b758e2e3b22a74c68c012178db93b9529b06f1e22ede  gdb-14.2.tar.xz
 sha512  0217434073023a8b8316088bf3ee95d53a1b6a7897f6269095429016a8900f9a05e130c390d8d5d5550cc515c16519de1071d8eef96aa58e38056c7e37da1d8b  gdb-15.1.tar.xz
+sha512  17b322fde0655a849506851c879aba9ad1f8bfee804b900efc718806091bec75511383bd4d632b8b32a32ef207233331581501157df18a8df528abe6ff667577  gdb-16.1.tar.xz
 
 # Locally calculated (fetched from Github)
 sha512  3518b47d5c11d1fb478ee152bde1719363f9391db73f3b9f5491217c17742bef8ebca6a51a40302dfaa9476c5a32a8b8f70a4bf64289422dea5f750ae53ab88d  gdb-arc-2023.09-release.tar.gz
Signature · 6 lines
2.47.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#5 lore raw

PATCH 3/4 package/gdb: change the default to GDB 15.x

In reply to Thomas Petazzoni via buildroot

This requires a bit of trickery on BR2_GDB_VERSION. Indeed, when the target variant of gdb is enabled, but not the host variant, the version choice is not available, and a default version is used. However, version 15.x, which is now the default, requires GCC >= 9, so we have to be careful and use GDB 15.x by default if the toolchain has GCC >= 9, or stick to GDB 14.x otherwise.

Of course, that will not fly long term, as at some point we'll drop gdb 14.x, but for the time being, let's default to this older gdb release if the target compiler is too old.

---
 package/gdb/Config.in.host | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
package/gdb/Config.in.host +3 -3
index 1d718257c6..699c6a96c4 100644
@@ -41,7 +41,7 @@ config BR2_PACKAGE_HOST_GDB_SIM
 
 choice
 	prompt "GDB debugger Version"
-	default BR2_GDB_VERSION_14
+	default BR2_GDB_VERSION_15
 	depends on !BR2_arc
 	help
 	  Select the version of gdb you wish to use.
@@ -73,7 +73,7 @@ config BR2_GDB_VERSION
 	string
 	default "arc-2023.09-release" if BR2_arc
 	default "13.2"     if BR2_GDB_VERSION_13
-	default "14.2"     if BR2_GDB_VERSION_14 || !BR2_PACKAGE_HOST_GDB
-	default "15.1"	   if BR2_GDB_VERSION_15
+	default "14.2"     if BR2_GDB_VERSION_14 || (!BR2_PACKAGE_HOST_GDB && !BR2_TOOLCHAIN_GCC_AT_LEAST_9)
+	default "15.1"	   if BR2_GDB_VERSION_15 || (!BR2_PACKAGE_HOST_GDB && BR2_TOOLCHAIN_GCC_AT_LEAST_9)
 	default "16.1"	   if BR2_GDB_VERSION_16
 	depends on BR2_PACKAGE_GDB || BR2_PACKAGE_HOST_GDB
Signature · 6 lines
2.47.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#6 lore raw

PATCH 4/4 package/gdb: remove version 13.x

In reply to Thomas Petazzoni via buildroot

Now that gdb 16.x has been added, and gdb 15.x made the default, let's remove support for gdb 13.x.

Aside from the usual removal, we also simplify things a bit as GDB 13.x was the last version that did not require MPFR. As it is now a mandatory dependencies, things can be simplified.

---
 .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/13.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 ------------
 .../13.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                         |  2 +-
 package/gdb/Config.in.host                    |  4 --
 package/gdb/gdb.hash                          |  1 -
 package/gdb/gdb.mk                            | 24 ++-----
 15 files changed, 14 insertions(+), 481 deletions(-)
 delete mode 100644 package/gdb/13.2/0001-ppc-ptrace-Define-pt_regs-uapi_pt_regs-on-GLIBC-syst.patch
 delete mode 100644 package/gdb/13.2/0002-sh-ptrace-Define-pt_-dsp-regs-uapi_pt_-dsp-regs-on-G.patch
 delete mode 100644 package/gdb/13.2/0003-use-asm-sgidefs.h.patch
 delete mode 100644 package/gdb/13.2/0004-gdbserver-fix-build-for-m68k.patch
 delete mode 100644 package/gdb/13.2/0005-nat-fork-inferior-include-linux-ptrace.h.patch
 delete mode 100644 package/gdb/13.2/0006-Fix-getrandom-compile-for-uclibc-v1.0.35.patch
 delete mode 100644 package/gdb/13.2/0007-fix-musl-build-on-riscv.patch
 delete mode 100644 package/gdb/13.2/0008-gdbserver-Makefile.in-fix-NLS-build.patch
 delete mode 100644 package/gdb/13.2/0009-gdb-Fix-native-build-on-xtensa.patch
.checkpackageignore +0 -9
index 378976a0cc..65d017116e 100644
@@ -490,15 +490,6 @@ package/gcc/8.4.0/0002-Revert-re-PR-target-92095-internal-error-with-O1-mcp.patc
 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/gcr/0001-meson-Fix-unknown-kw-argument-in-gnome.generate_gir.patch lib_patch.Upstream
-package/gdb/13.2/0001-ppc-ptrace-Define-pt_regs-uapi_pt_regs-on-GLIBC-syst.patch lib_patch.Upstream
-package/gdb/13.2/0002-sh-ptrace-Define-pt_-dsp-regs-uapi_pt_-dsp-regs-on-G.patch lib_patch.Upstream
-package/gdb/13.2/0003-use-asm-sgidefs.h.patch lib_patch.Upstream
-package/gdb/13.2/0004-gdbserver-fix-build-for-m68k.patch lib_patch.Upstream
-package/gdb/13.2/0005-nat-fork-inferior-include-linux-ptrace.h.patch lib_patch.Upstream
-package/gdb/13.2/0006-Fix-getrandom-compile-for-uclibc-v1.0.35.patch lib_patch.Upstream
-package/gdb/13.2/0007-fix-musl-build-on-riscv.patch lib_patch.Upstream
-package/gdb/13.2/0008-gdbserver-Makefile.in-fix-NLS-build.patch lib_patch.Upstream
-package/gdb/13.2/0009-gdb-Fix-native-build-on-xtensa.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
Config.in.legacy +7 -0
index e091fd8c0a..abc65d0c9a 100644
@@ -146,6 +146,13 @@ endif
 
 comment "Legacy options removed in 2025.02"
 
+config BR2_GDB_VERSION_13
+	bool "gdb 13.x has been removed"
+	select BR2_LEGACY
+	help
+	  GDB 13.x support has been removed, a newer version should be
+	  used instead.
+
 config BR2_nios2
 	bool "nios2 architecture removed"
 	select BR2_LEGACY
package/gdb/13.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/13.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/13.2/0003-use-asm-sgidefs.h.patch deleted +0 -40
deleted file mode 100644
index acb80e6f33..0000000000
@@ -1,40 +0,0 @@
-From 7f05121278d5d5a1939276cfd9f913a0bbe004e1 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 972b5db8e76..e3d838dd9a4 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.41.0
-
package/gdb/13.2/0004-gdbserver-fix-build-for-m68k.patch deleted +0 -63

63 lines not on this page · raw message

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

53 lines not on this page · raw message

package/gdb/13.2/0006-Fix-getrandom-compile-for-uclibc-v1.0.35.patch deleted +0 -39
deleted file mode 100644
index 27ff834215..0000000000
@@ -1,39 +0,0 @@
-From a9a4213216d95b4e7cbe4f96d993233bfa2f21e6 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.41.0
-
package/gdb/13.2/0007-fix-musl-build-on-riscv.patch deleted +0 -60

60 lines not on this page · raw message

package/gdb/13.2/0008-gdbserver-Makefile.in-fix-NLS-build.patch deleted +0 -38
deleted file mode 100644
index c8a40ab5e5..0000000000
@@ -1,38 +0,0 @@
-From a4535ce245a0675399877c62a9a12fb0fd36b510 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 040f0b6faa0..07ca24cef5c 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.41.0
-
package/gdb/13.2/0009-gdb-Fix-native-build-on-xtensa.patch deleted +0 -57

57 lines not on this page · raw message

package/gdb/Config.in +1 -1
index 8cbd52cff5..b1678e0d63 100644
@@ -59,7 +59,7 @@ config BR2_PACKAGE_GDB_DEBUGGER
 	depends on BR2_USE_WCHAR
 	depends on !BR2_sh
 	select BR2_PACKAGE_GMP
-	select BR2_PACKAGE_MPFR if !(BR2_GDB_VERSION_13)
+	select BR2_PACKAGE_MPFR
 	select BR2_PACKAGE_NCURSES
 	select BR2_PACKAGE_ZLIB
 
package/gdb/Config.in.host +0 -4
index 699c6a96c4..3d21fc2a3f 100644
@@ -46,9 +46,6 @@ choice
 	help
 	  Select the version of gdb you wish to use.
 
-config BR2_GDB_VERSION_13
-	bool "gdb 13.x"
-
 config BR2_GDB_VERSION_14
 	bool "gdb 14.x"
 
@@ -72,7 +69,6 @@ endif
 config BR2_GDB_VERSION
 	string
 	default "arc-2023.09-release" if BR2_arc
-	default "13.2"     if BR2_GDB_VERSION_13
 	default "14.2"     if BR2_GDB_VERSION_14 || (!BR2_PACKAGE_HOST_GDB && !BR2_TOOLCHAIN_GCC_AT_LEAST_9)
 	default "15.1"	   if BR2_GDB_VERSION_15 || (!BR2_PACKAGE_HOST_GDB && BR2_TOOLCHAIN_GCC_AT_LEAST_9)
 	default "16.1"	   if BR2_GDB_VERSION_16
package/gdb/gdb.hash +0 -1
index c6c0376852..405fb764ac 100644
@@ -1,5 +1,4 @@
 # From https://gcc.gnu.org/pub/gdb/releases/sha512.sum
-sha512  8185d3e11ab60dafff5860a5016577bfe7dd7547ef01ebc867bc247603d82b74ff74c4f29492c7d2aee57076f52be33e289f4c6b414a4b870d4b3004909f4c34  gdb-13.2.tar.xz
 sha512  7e07941f1fe661288cc571b4964012ceabc1760624fce20320db2f470c01439b2386f859b5288da13204b758e2e3b22a74c68c012178db93b9529b06f1e22ede  gdb-14.2.tar.xz
 sha512  0217434073023a8b8316088bf3ee95d53a1b6a7897f6269095429016a8900f9a05e130c390d8d5d5550cc515c16519de1071d8eef96aa58e38056c7e37da1d8b  gdb-15.1.tar.xz
 sha512  17b322fde0655a849506851c879aba9ad1f8bfee804b900efc718806091bec75511383bd4d632b8b32a32ef207233331581501157df18a8df528abe6ff667577  gdb-16.1.tar.xz
package/gdb/gdb.mk +6 -18
index 69f7979149..b39b103d00 100644
@@ -54,8 +54,8 @@ GDB_DEPENDENCIES += host-flex host-bison
 HOST_GDB_DEPENDENCIES += host-flex host-bison
 endif
 
-# All newer versions of GDB need host-gmp
-HOST_GDB_DEPENDENCIES += host-gmp
+# All newer versions of GDB need host-gmp and host-mpfr
+HOST_GDB_DEPENDENCIES += host-gmp host-mpfr
 
 # When gdb sources are fetched from the binutils-gdb repository, they
 # also contain the binutils sources, but binutils shouldn't be built,
@@ -160,11 +160,8 @@ GDB_CONF_OPTS += \
 GDB_DEPENDENCIES += gmp
 endif
 
-# Starting from GDB 14.x, mpfr is needed as a dependency to build full
-# gdb.
-# GDB fork from ARC GNU tools 2023.09 is based on GDB14 branch and so
-# requires MPFR as well.
-ifeq ($(BR2_PACKAGE_GDB_DEBUGGER):$(BR2_GDB_VERSION_13),y:)
+# mpfr is needed as a dependency to build full gdb
+ifeq ($(BR2_PACKAGE_GDB_DEBUGGER),y)
 GDB_DEPENDENCIES += mpfr
 GDB_CONF_OPTS += --with-mpfr=$(STAGING_DIR)
 else
@@ -265,17 +262,8 @@ HOST_GDB_CONF_OPTS = \
 	--with-system-zlib \
 	--with-curses \
 	--disable-source-highlight \
-	$(GDB_DISABLE_BINUTILS_CONF_OPTS)
-
-# GDB newer than 14.x need host-mpfr
-# GDB fork from ARC GNU tools 2023.09 is based on GDB14 branch and so
-# requires MPFR as well.
-ifeq ($(BR2_GDB_VERSION_13),)
-HOST_GDB_DEPENDENCIES += host-mpfr
-HOST_GDB_CONF_OPTS += --with-mpfr=$(HOST_DIR)
-else
-HOST_GDB_CONF_OPTS += --without-mpfr
-endif
+	$(GDB_DISABLE_BINUTILS_CONF_OPTS) \
+	--with-mpfr=$(HOST_DIR)
 
 ifeq ($(BR2_PACKAGE_HOST_GDB_TUI),y)
 HOST_GDB_CONF_OPTS += --enable-tui
Signature · 6 lines
2.47.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot