package/gdb: add support for GDB 14.1
PATCH 1/3 package/gdb: add support for GDB 14.1
All patches are still relevant, and have been rebased on top of GDB 14.1.
GDB 14.1 now needs mpfr unconditionally, so it is added as a dependency of host-gdb, and of gdb when the full debugger is built.
--- .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/14.1/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.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 | 1 + package/gdb/Config.in.host | 4 ++ package/gdb/gdb.hash | 1 + package/gdb/gdb.mk | 19 +++++- 14 files changed, 480 insertions(+), 2 deletions(-) create mode 100644 package/gdb/14.1/0001-ppc-ptrace-Define-pt_regs-uapi_pt_regs-on-GLIBC-syst.patch create mode 100644 package/gdb/14.1/0002-sh-ptrace-Define-pt_-dsp-regs-uapi_pt_-dsp-regs-on-G.patch create mode 100644 package/gdb/14.1/0003-use-asm-sgidefs.h.patch create mode 100644 package/gdb/14.1/0004-gdbserver-fix-build-for-m68k.patch create mode 100644 package/gdb/14.1/0005-nat-fork-inferior-include-linux-ptrace.h.patch create mode 100644 package/gdb/14.1/0006-Fix-getrandom-compile-for-uclibc-v1.0.35.patch create mode 100644 package/gdb/14.1/0007-fix-musl-build-on-riscv.patch create mode 100644 package/gdb/14.1/0008-gdbserver-Makefile.in-fix-NLS-build.patch create mode 100644 package/gdb/14.1/0009-gdb-Fix-native-build-on-xtensa.patch
.checkpackageignore +9 -0
@@ -485,6 +485,15 @@ package/gdb/13.2/0006-Fix-getrandom-compile-for-uclibc-v1.0.35.patch Upstream package/gdb/13.2/0007-fix-musl-build-on-riscv.patch Upstream package/gdb/13.2/0008-gdbserver-Makefile.in-fix-NLS-build.patch Upstream package/gdb/13.2/0009-gdb-Fix-native-build-on-xtensa.patch Upstream +package/gdb/14.1/0001-ppc-ptrace-Define-pt_regs-uapi_pt_regs-on-GLIBC-syst.patch Upstream +package/gdb/14.1/0002-sh-ptrace-Define-pt_-dsp-regs-uapi_pt_-dsp-regs-on-G.patch Upstream +package/gdb/14.1/0003-use-asm-sgidefs.h.patch Upstream +package/gdb/14.1/0004-gdbserver-fix-build-for-m68k.patch Upstream +package/gdb/14.1/0005-nat-fork-inferior-include-linux-ptrace.h.patch Upstream +package/gdb/14.1/0006-Fix-getrandom-compile-for-uclibc-v1.0.35.patch Upstream +package/gdb/14.1/0007-fix-musl-build-on-riscv.patch Upstream +package/gdb/14.1/0008-gdbserver-Makefile.in-fix-NLS-build.patch Upstream +package/gdb/14.1/0009-gdb-Fix-native-build-on-xtensa.patch Upstream package/gengetopt/0001-configure.ac-add-disable-doc-option.patch Upstream package/genpart/0001-fix-return-code.patch Upstream package/genromfs/0001-build-system.patch Sob Upstream
package/gdb/14.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/14.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/14.1/0003-use-asm-sgidefs.h.patch new file +40 -0
@@ -0,0 +1,40 @@ +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.1/0004-gdbserver-fix-build-for-m68k.patch new file +63 -0
63 lines not on this page · raw message
package/gdb/14.1/0005-nat-fork-inferior-include-linux-ptrace.h.patch new file +53 -0
53 lines not on this page · raw message
package/gdb/14.1/0006-Fix-getrandom-compile-for-uclibc-v1.0.35.patch new file +39 -0
@@ -0,0 +1,39 @@ +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.1/0007-fix-musl-build-on-riscv.patch new file +60 -0
60 lines not on this page · raw message
package/gdb/14.1/0008-gdbserver-Makefile.in-fix-NLS-build.patch new file +38 -0
@@ -0,0 +1,38 @@ +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.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 +1 -0
@@ -59,6 +59,7 @@ config BR2_PACKAGE_GDB_DEBUGGER depends on BR2_USE_WCHAR depends on !BR2_sh select BR2_PACKAGE_GMP if !BR2_arc + select BR2_PACKAGE_MPFR if BR2_GDB_VERSION_14 select BR2_PACKAGE_NCURSES select BR2_PACKAGE_ZLIB
package/gdb/Config.in.host +4 -0
@@ -57,6 +57,9 @@ config BR2_GDB_VERSION_12 config BR2_GDB_VERSION_13 bool "gdb 13.x" +config BR2_GDB_VERSION_14 + bool "gdb 14.x" + endchoice endif
@@ -68,4 +71,5 @@ config BR2_GDB_VERSION default "11.2" if BR2_GDB_VERSION_11 default "12.1" if BR2_GDB_VERSION_12 || !BR2_PACKAGE_HOST_GDB default "13.2" if BR2_GDB_VERSION_13 + default "14.1" if BR2_GDB_VERSION_14 depends on BR2_PACKAGE_GDB || BR2_PACKAGE_HOST_GDB
package/gdb/gdb.hash +1 -0
@@ -3,6 +3,7 @@ sha512 3653762ac008e065c37cd641653184c9ff7ce51ee2222ade1122bec9d6cc64dffd4fb748 sha512 07e9026423438049b11f4f784d57401ece4e940570f613bd6958b3714fe7fbc2c048470bcce3e7d7d9f93331cdf3881d30dcc964cb113a071143a02b28e5b127 gdb-11.2.tar.xz sha512 425568d2e84672177d0fb87b1ad7daafdde097648d605e30cf0656970f66adc6a82ca2d83375ea4be583e9683a340e5bfdf5819668ddf66728200141ae50ff2d gdb-12.1.tar.xz sha512 8185d3e11ab60dafff5860a5016577bfe7dd7547ef01ebc867bc247603d82b74ff74c4f29492c7d2aee57076f52be33e289f4c6b414a4b870d4b3004909f4c34 gdb-13.2.tar.xz +sha512 575e198105076fc4a88f68591aa114ab9c1196e84386a3f7b9b58fe5f30cdeed33f6a5f957b68f08c47284ec922bb60c964627e238471419673fd913575ce427 gdb-14.1.tar.xz # Locally calculated (fetched from Github) sha512 5a2acf2fd33ab2ff589e1037ca40abda54328997dcff26b2b49b874bd3be980be5a63342962254f3c3bda98e32ce7a33af704d37353352833dee193135600458 gdb-arc-2020.09-release-gdb.tar.gz
package/gdb/gdb.mk +17 -2
@@ -132,7 +132,6 @@ GDB_CONF_OPTS = \ --without-included-gettext \ --disable-werror \ --enable-static \ - --without-mpfr \ --disable-source-highlight ifeq ($(BR2_PACKAGE_GDB_DEBUGGER),y)
@@ -164,6 +163,15 @@ GDB_CONF_OPTS += \ GDB_DEPENDENCIES += gmp endif +# Starting from GDB 14.x, mpfr is needed as a dependency to build full +# gdb. +ifeq ($(BR2_GDB_VERSION_14)$(BR2_PACKAGE_GDB_DEBUGGER),yy) +GDB_DEPENDENCIES += mpfr +GDB_CONF_OPTS += --with-mpfr=$(STAGING_DIR) +else +GDB_CONF_OPTS += --without-mpfr +endif + ifeq ($(BR2_PACKAGE_GDB_SERVER),y) GDB_CONF_OPTS += --enable-gdbserver GDB_DEPENDENCIES += $(TARGET_NLS_DEPENDENCIES)
@@ -260,10 +268,17 @@ HOST_GDB_CONF_OPTS = \ --without-included-gettext \ --with-system-zlib \ --with-curses \ - --without-mpfr \ --disable-source-highlight \ $(GDB_DISABLE_BINUTILS_CONF_OPTS) +# GDB newer than 14.x need host-mpfr +ifeq ($(BR2_GDB_VERSION_14),y) +HOST_GDB_DEPENDENCIES += host-mpfr +HOST_GDB_CONF_OPTS += --with-mpfr=$(HOST_DIR) +else +HOST_GDB_CONF_OPTS += --without-mpfr +endif + ifeq ($(BR2_PACKAGE_HOST_GDB_TUI),y) HOST_GDB_CONF_OPTS += --enable-tui else
Signature · 6 lines
2.43.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 2/3 package/gdb: make GDB 13.x the default version
Following the addition of GDB 14.x, let's make GDB 13.x the default.
--- package/gdb/Config.in.host | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
package/gdb/Config.in.host +3 -3
@@ -41,7 +41,7 @@ config BR2_PACKAGE_HOST_GDB_SIM choice prompt "GDB debugger Version" - default BR2_GDB_VERSION_12 + default BR2_GDB_VERSION_13 depends on !BR2_arc help Select the version of gdb you wish to use.
@@ -69,7 +69,7 @@ config BR2_GDB_VERSION string default "arc-2020.09-release-gdb" if BR2_arc default "11.2" if BR2_GDB_VERSION_11 - default "12.1" if BR2_GDB_VERSION_12 || !BR2_PACKAGE_HOST_GDB - default "13.2" if BR2_GDB_VERSION_13 + default "12.1" if BR2_GDB_VERSION_12 + default "13.2" if BR2_GDB_VERSION_13 || !BR2_PACKAGE_HOST_GDB default "14.1" if BR2_GDB_VERSION_14 depends on BR2_PACKAGE_GDB || BR2_PACKAGE_HOST_GDB
Signature · 6 lines
2.43.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 3/3 package/gdb: remove support for GDB 11.x
In reply to Thomas Petazzoni via buildrootAfter adding GDB 14.x and making GDB 13.x the new default, let's drop support for GDB 11.x.
--- .checkpackageignore | 9 --- Config.in.legacy | 8 +++ ...e-pt_regs-uapi_pt_regs-on-GLIBC-syst.patch | 55 ---------------- ...-pt_-dsp-regs-uapi_pt_-dsp-regs-on-G.patch | 43 ------------- package/gdb/11.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 ------------ .../11.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 | 6 -- 12 files changed, 8 insertions(+), 463 deletions(-) delete mode 100644 package/gdb/11.2/0001-ppc-ptrace-Define-pt_regs-uapi_pt_regs-on-GLIBC-syst.patch delete mode 100644 package/gdb/11.2/0002-sh-ptrace-Define-pt_-dsp-regs-uapi_pt_-dsp-regs-on-G.patch delete mode 100644 package/gdb/11.2/0003-use-asm-sgidefs.h.patch delete mode 100644 package/gdb/11.2/0004-gdbserver-fix-build-for-m68k.patch delete mode 100644 package/gdb/11.2/0005-nat-fork-inferior-include-linux-ptrace.h.patch delete mode 100644 package/gdb/11.2/0006-Fix-getrandom-compile-for-uclibc-v1.0.35.patch delete mode 100644 package/gdb/11.2/0007-fix-musl-build-on-riscv.patch delete mode 100644 package/gdb/11.2/0008-gdbserver-Makefile.in-fix-NLS-build.patch delete mode 100644 package/gdb/11.2/0009-gdb-Fix-native-build-on-xtensa.patch
.checkpackageignore +0 -9
@@ -458,15 +458,6 @@ package/gcc/arc-2020.09-release/0002-libsanitizer-Remove-cyclades-from-libsaniti package/gcc/arc-2020.09-release/0100-uclibc-conf.patch Upstream package/gcr/0001-meson-Fix-unknown-kw-argument-in-gnome.generate_gir.patch Upstream package/gdal/0001-fix-uclibc-build-without-NPTL.patch Upstream -package/gdb/11.2/0001-ppc-ptrace-Define-pt_regs-uapi_pt_regs-on-GLIBC-syst.patch Upstream -package/gdb/11.2/0002-sh-ptrace-Define-pt_-dsp-regs-uapi_pt_-dsp-regs-on-G.patch Upstream -package/gdb/11.2/0003-use-asm-sgidefs.h.patch Upstream -package/gdb/11.2/0004-gdbserver-fix-build-for-m68k.patch Upstream -package/gdb/11.2/0005-nat-fork-inferior-include-linux-ptrace.h.patch Upstream -package/gdb/11.2/0006-Fix-getrandom-compile-for-uclibc-v1.0.35.patch Upstream -package/gdb/11.2/0007-fix-musl-build-on-riscv.patch Upstream -package/gdb/11.2/0008-gdbserver-Makefile.in-fix-NLS-build.patch Upstream -package/gdb/11.2/0009-gdb-Fix-native-build-on-xtensa.patch Upstream package/gdb/12.1/0001-ppc-ptrace-Define-pt_regs-uapi_pt_regs-on-GLIBC-syst.patch Upstream package/gdb/12.1/0002-sh-ptrace-Define-pt_-dsp-regs-uapi_pt_-dsp-regs-on-G.patch Upstream package/gdb/12.1/0003-use-asm-sgidefs.h.patch Upstream
Config.in.legacy +8 -0
@@ -144,6 +144,14 @@ endif ############################################################################### +comment "Legacy options removed in 2024.02" + +config BR2_GDB_VERSION_11 + bool "gdb 11.x removed" + select BR2_LEGACY + help + GDB 11.x has been removed, use a newer version. + comment "Legacy options removed in 2023.11" config BR2_KERNEL_HEADERS_6_5
package/gdb/11.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/11.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/11.2/0003-use-asm-sgidefs.h.patch deleted +0 -40
@@ -1,40 +0,0 @@ -From 65acc8800dba7e10da882871d4648241805c47ce 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 38ff461a35b..b6cf194b2bf 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.29.2 -
package/gdb/11.2/0004-gdbserver-fix-build-for-m68k.patch deleted +0 -63
63 lines not on this page · raw message
package/gdb/11.2/0005-nat-fork-inferior-include-linux-ptrace.h.patch deleted +0 -53
53 lines not on this page · raw message
package/gdb/11.2/0006-Fix-getrandom-compile-for-uclibc-v1.0.35.patch deleted +0 -39
@@ -1,39 +0,0 @@ -From 879008ef9a48aa1363671f5c1736b49f30c5a379 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 41212fb..0ad3f96 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.33.1 -
package/gdb/11.2/0007-fix-musl-build-on-riscv.patch deleted +0 -60
60 lines not on this page · raw message
package/gdb/11.2/0008-gdbserver-Makefile.in-fix-NLS-build.patch deleted +0 -38
@@ -1,38 +0,0 @@ -From c098500aee945ee7a3021649eb0a2655b004103c 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 71c3c4ad959..e69fbc4dae4 100644 ---- a/gdbserver/Makefile.in -+++ b/gdbserver/Makefile.in -@@ -383,7 +383,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.33.0 -
package/gdb/11.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 +0 -6
@@ -46,11 +46,6 @@ choice help Select the version of gdb you wish to use. -config BR2_GDB_VERSION_11 - bool "gdb 11.x" - # gdbserver support missing - depends on !BR2_or1k - config BR2_GDB_VERSION_12 bool "gdb 12.x"
@@ -68,7 +63,6 @@ endif config BR2_GDB_VERSION string default "arc-2020.09-release-gdb" if BR2_arc - default "11.2" if BR2_GDB_VERSION_11 default "12.1" if BR2_GDB_VERSION_12 default "13.2" if BR2_GDB_VERSION_13 || !BR2_PACKAGE_HOST_GDB default "14.1" if BR2_GDB_VERSION_14
Signature · 6 lines
2.43.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Yann E. MORIN
AppliedThomas, All,
On 2023-12-24 17:08 +0100, Thomas Petazzoni via buildroot spake thusly:
Quoted 5 lines
All patches are still relevant, and have been rebased on top of GDB 14.1.
GDB 14.1 now needs mpfr unconditionally, so it is added as a dependency of host-gdb, and of gdb when the full debugger is built.
[--SNIP--]
package/gdb/Config.in config BR2_PACKAGE_GDB_DEBUGGER · line 62
Quoted 9 lines
package/gdb/Config.in +1
-0@@ -59,6 +59,7 @@ config BR2_PACKAGE_GDB_DEBUGGER depends on BR2_USE_WCHAR depends on !BR2_sh select BR2_PACKAGE_GMP if !BR2_arc + select BR2_PACKAGE_MPFR if BR2_GDB_VERSION_14
This is a bit fragile: when we add gdb 15, and drop gdb 12, gdb 14 will become the default version. Then, if the host variant is not selected, BR2_GDB_VERSION_14 will not be set. If the user enables the full gdb n target, mpfr will not be selected.
I've added a litle blurb in the config.in.host, pointing to this part of the code for an appropriate update.
Applied to master, thanks.
Alternatively, I wonder if we shouldn't jsut make mpfr unconditional for all versions of gdb, now.
Regards,
Yann E. MORIN.
Signature · 10 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------' _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Hello,
Quoted 6 lines · On Wed, 27 Dec 2023 22:40:35 +0100 "Yann E. MORIN" <[email protected]>…
package/gdb/Config.in config BR2_PACKAGE_GDB_DEBUGGER · line 62
Quoted 1 line
package/gdb/Config.in +1
-0+ select BR2_PACKAGE_MPFR if BR2_GDB_VERSION_14This is a bit fragile: when we add gdb 15, and drop gdb 12, gdb 14 will become the default version. Then, if the host variant is not selected,
BR2_GDB_VERSION_14will not be set. If the user enables the full gdb n target, mpfr will not be selected.
Yes, it requires some care. We had things like that in the past (gmp became a mandatory dependency), and we were able to make it work, but I agree it requires being careful when doing the version bumps.
Quoted 2 lines
I've added a litle blurb in the config.in.host, pointing to this part of the code for an appropriate update.
Thanks!
Quoted 2 lines
Alternatively, I wonder if we shouldn't jsut make mpfr unconditional for all versions of gdb, now.
No strong opinion on this: whenever possible I try to not build unnecessary things, hence the proposed solution. But admittedly, mpfr is becoming a mandatory dependency for gdb, so it means that anyway in the not too distant future, everyone will have to build mpfr as a pre-requisite of building gdb.
Thomas
Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot