gdb: Upgrade to 11.1
PATCH 1/2 gdb: Upgrade to 11.1
Drop backported patches
Changes are here [1]
[1] https://sourceware.org/pipermail/gdb-announce/2021/000129.html
---
meta/conf/distro/include/tcmode-default.inc | 2 +-
.../gdb/{gdb-10.2.inc => gdb-11.1.inc} | 14 +-
...ian_10.2.bb => gdb-cross-canadian_11.1.bb} | 0
.../{gdb-cross_10.2.bb => gdb-cross_11.1.bb} | 0
...make-man-install-relative-to-DESTDIR.patch | 20 +-
...ux-nat-Define-_ABIO32-if-not-defined.patch | 8 +-
...e-pt_regs-uapi_pt_regs-on-GLIBC-syst.patch | 10 +-
...port-for-Renesas-SH-sh4-architecture.patch | 39 +-
...readline.a-when-using-disable-static.patch | 12 +-
.../gdb/gdb/0006-use-asm-sgidefs.h.patch | 8 +-
...atch => 0007-Change-order-of-CFLAGS.patch} | 12 +-
...8-resolve-restrict-keyword-conflict.patch} | 8 +-
...> 0009-Fix-invalid-sigprocmask-call.patch} | 8 +-
...h => 0010-gdbserver-ctrl-c-handling.patch} | 10 +-
...-arc-Add-support-for-signal-handlers.patch | 218 ---------
...-for-signal-frames-for-Linux-targets.patch | 232 ----------
...count-the-REGNUM-in-supply-collect-g.patch | 104 -----
...-native-support-for-ARC-in-GNU-Linux.patch | 414 ------------------
.../gdb/{gdb_10.2.bb => gdb_11.1.bb} | 0
19 files changed, 74 insertions(+), 1045 deletions(-)
rename meta/recipes-devtools/gdb/{gdb-10.2.inc => gdb-11.1.inc} (56%)
rename meta/recipes-devtools/gdb/{gdb-cross-canadian_10.2.bb => gdb-cross-canadian_11.1.bb} (100%)
rename meta/recipes-devtools/gdb/{gdb-cross_10.2.bb => gdb-cross_11.1.bb} (100%)
rename meta/recipes-devtools/gdb/gdb/{0008-Change-order-of-CFLAGS.patch => 0007-Change-order-of-CFLAGS.patch} (75%)
rename meta/recipes-devtools/gdb/gdb/{0009-resolve-restrict-keyword-conflict.patch => 0008-resolve-restrict-keyword-conflict.patch} (91%)
rename meta/recipes-devtools/gdb/gdb/{0010-Fix-invalid-sigprocmask-call.patch => 0009-Fix-invalid-sigprocmask-call.patch} (90%)
rename meta/recipes-devtools/gdb/gdb/{0011-gdbserver-ctrl-c-handling.patch => 0010-gdbserver-ctrl-c-handling.patch} (82%)
delete mode 100644 meta/recipes-devtools/gdb/gdb/0012-arc-Add-support-for-signal-handlers.patch
delete mode 100644 meta/recipes-devtools/gdb/gdb/0013-arc-Add-support-for-signal-frames-for-Linux-targets.patch
delete mode 100644 meta/recipes-devtools/gdb/gdb/0014-arc-Take-into-account-the-REGNUM-in-supply-collect-g.patch
delete mode 100644 meta/recipes-devtools/gdb/gdb/0015-gdb-Add-native-support-for-ARC-in-GNU-Linux.patch
rename meta/recipes-devtools/gdb/{gdb_10.2.bb => gdb_11.1.bb} (100%)meta/conf/distro/include/tcmode-default.inc +1 -1
@@ -19,7 +19,7 @@ PREFERRED_PROVIDER_virtual/gettext ??= "gettext" GCCVERSION ?= "11.%" SDKGCCVERSION ?= "${GCCVERSION}" BINUVERSION ?= "2.37%" -GDBVERSION ?= "10.%" +GDBVERSION ?= "11.%" GLIBCVERSION ?= "2.34" LINUXLIBCVERSION ?= "5.14%" QEMUVERSION ?= "6.1%"
meta/recipes-devtools/gdb/gdb-11.1.inc renamed from meta/recipes-devtools/gdb/gdb-10.2.inc +5 -9
@@ -11,13 +11,9 @@ SRC_URI = "${GNU_MIRROR}/gdb/gdb-${PV}.tar.xz \ file://0004-Add-support-for-Renesas-SH-sh4-architecture.patch \ file://0005-Dont-disable-libreadline.a-when-using-disable-static.patch \ file://0006-use-asm-sgidefs.h.patch \ - file://0008-Change-order-of-CFLAGS.patch \ - file://0009-resolve-restrict-keyword-conflict.patch \ - file://0010-Fix-invalid-sigprocmask-call.patch \ - file://0011-gdbserver-ctrl-c-handling.patch \ - file://0012-arc-Add-support-for-signal-handlers.patch \ - file://0013-arc-Add-support-for-signal-frames-for-Linux-targets.patch \ - file://0014-arc-Take-into-account-the-REGNUM-in-supply-collect-g.patch \ - file://0015-gdb-Add-native-support-for-ARC-in-GNU-Linux.patch \ + file://0007-Change-order-of-CFLAGS.patch \ + file://0008-resolve-restrict-keyword-conflict.patch \ + file://0009-Fix-invalid-sigprocmask-call.patch \ + file://0010-gdbserver-ctrl-c-handling.patch \ " -SRC_URI[sha256sum] = "aaa1223d534c9b700a8bec952d9748ee1977513f178727e1bee520ee000b4f29" +SRC_URI[sha256sum] = "cccfcc407b20d343fb320d4a9a2110776dd3165118ffd41f4b1b162340333f94"
meta/recipes-devtools/gdb/gdb-cross-canadian_11.1.bb renamed from meta/recipes-devtools/gdb/gdb-cross-canadian_10.2.bb +0 -0
meta/recipes-devtools/gdb/gdb-cross_11.1.bb renamed from meta/recipes-devtools/gdb/gdb-cross_10.2.bb +0 -0
meta/recipes-devtools/gdb/gdb/0001-make-man-install-relative-to-DESTDIR.patch +10 -10
@@ -1,22 +1,22 @@ -From e5126c7167e26f865990dc5f86344602603aa8c6 Mon Sep 17 00:00:00 2001 +From a6d3df9d84463ec500d9d01558ab8a17e824e9e5 Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Mon, 2 Mar 2015 02:27:55 +0000 -Subject: [PATCH 01/11] make man install relative to DESTDIR +Subject: [PATCH 01/10] make man install relative to DESTDIR Upstream-Status: Pending Signed-off-by: Khem Raj <[email protected]> --- - sim/common/Makefile.in | 2 +- + sim/common/Make-common.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -diff --git a/sim/common/Makefile.in b/sim/common/Makefile.in -index f713fcaa35b..7c553709d3f 100644 ---- a/sim/common/Makefile.in -+++ b/sim/common/Makefile.in -@@ -35,7 +35,7 @@ tooldir = $(libdir)/$(target_alias) - datarootdir = @datarootdir@ +diff --git a/sim/common/Make-common.in b/sim/common/Make-common.in +index 8c2cacea1e5..4a52eef2203 100644 +--- a/sim/common/Make-common.in ++++ b/sim/common/Make-common.in +@@ -63,7 +63,7 @@ tooldir = $(libdir)/$(target_alias) datadir = @datadir@ + datarootdir = @datarootdir@ mandir = @mandir@ -man1dir = $(mandir)/man1 +man1dir = $(DESTDIR)$(mandir)/man1
@@ -24,5 +24,5 @@ index f713fcaa35b..7c553709d3f 100644 includedir = @includedir@ -- -2.29.2 +2.33.1
meta/recipes-devtools/gdb/gdb/0002-mips-linux-nat-Define-_ABIO32-if-not-defined.patch +4 -4
@@ -1,7 +1,7 @@ -From 0680242c9a3a0149a23e63034ecb4404de2293dd Mon Sep 17 00:00:00 2001 +From 7f1f25eaaace289bc33c5aaa1c5fe9e04e719651 Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Wed, 23 Mar 2016 06:30:09 +0000 -Subject: [PATCH 02/11] mips-linux-nat: Define _ABIO32 if not defined +Subject: [PATCH 02/10] mips-linux-nat: Define _ABIO32 if not defined This helps building gdb on mips64 on musl, since musl does not provide sgidefs.h this define is
@@ -16,7 +16,7 @@ Signed-off-by: Khem Raj <[email protected]> 1 file changed, 4 insertions(+) diff --git a/gdb/mips-linux-nat.c b/gdb/mips-linux-nat.c -index 38ff461a35b..4337795bac8 100644 +index b21c7cb2ea6..6614b4de31e 100644 --- a/gdb/mips-linux-nat.c +++ b/gdb/mips-linux-nat.c @@ -41,6 +41,10 @@
@@ -31,5 +31,5 @@ index 38ff461a35b..4337795bac8 100644 class mips_linux_nat_target final : public linux_nat_trad_target { -- -2.29.2 +2.33.1
meta/recipes-devtools/gdb/gdb/0003-ppc-ptrace-Define-pt_regs-uapi_pt_regs-on-GLIBC-syst.patch +5 -5
@@ -1,7 +1,7 @@ -From afbb66c244b1ae0aaaa90d88d3cd484f741c614f Mon Sep 17 00:00:00 2001 +From 0cb233ec3951582fa1a051a16bfd644ef4969df5 Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Sat, 30 Apr 2016 18:32:14 -0700 -Subject: [PATCH 03/11] ppc/ptrace: Define pt_regs uapi_pt_regs on !GLIBC +Subject: [PATCH 03/10] ppc/ptrace: Define pt_regs uapi_pt_regs on !GLIBC systems Upstream-Status: Pending
@@ -13,7 +13,7 @@ Signed-off-by: Khem Raj <[email protected]> 2 files changed, 12 insertions(+) diff --git a/gdb/nat/ppc-linux.h b/gdb/nat/ppc-linux.h -index d937a65b69c..1fd54b4a0e0 100644 +index e712a9a5713..76bbcca0928 100644 --- a/gdb/nat/ppc-linux.h +++ b/gdb/nat/ppc-linux.h @@ -18,7 +18,13 @@
@@ -31,7 +31,7 @@ index d937a65b69c..1fd54b4a0e0 100644 /* This sometimes isn't defined. */ diff --git a/gdbserver/linux-ppc-low.cc b/gdbserver/linux-ppc-low.cc -index 337d555aee7..5d518f37268 100644 +index db9a88219ea..151e4183bb1 100644 --- a/gdbserver/linux-ppc-low.cc +++ b/gdbserver/linux-ppc-low.cc @@ -23,7 +23,13 @@
@@ -49,5 +49,5 @@ index 337d555aee7..5d518f37268 100644 #include "arch/ppc-linux-common.h" #include "arch/ppc-linux-tdesc.h" -- -2.29.2 +2.33.1
meta/recipes-devtools/gdb/gdb/0004-Add-support-for-Renesas-SH-sh4-architecture.patch +20 -19
@@ -1,7 +1,7 @@ -From 26e406962cf7298837b350b979afff0ac34ecb0b Mon Sep 17 00:00:00 2001 +From d86ff49710210fb10d149121fa9a04c7cf41cb8b Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Mon, 2 Mar 2015 02:31:12 +0000 -Subject: [PATCH 04/11] Add support for Renesas SH (sh4) architecture. +Subject: [PATCH 04/10] Add support for Renesas SH (sh4) architecture. gdb (7.4-1~cvs20111117.2) experimental; urgency=low .
@@ -14,7 +14,7 @@ Upstream-Status: Pending Signed-off-by: Khem Raj <[email protected]> --- gdb/Makefile.in | 2 + - gdb/configure.host | 1 + + gdb/configure.host | 2 + gdb/sh-linux-tdep.c | 519 +++++++++++++++++++++++++++ gdb/sh-tdep.c | 52 +-- gdb/sh-tdep.h | 49 +++
@@ -24,15 +24,15 @@ Signed-off-by: Khem Raj <[email protected]> gdb/testsuite/gdb.base/annota3.c | 4 + gdb/testsuite/gdb.base/sigall.c | 3 + gdb/testsuite/gdb.base/signals.c | 4 + - 11 files changed, 617 insertions(+), 28 deletions(-) + 11 files changed, 618 insertions(+), 28 deletions(-) diff --git a/gdb/Makefile.in b/gdb/Makefile.in -index 4808357e651..a009004ab05 100644 +index b8729ed7b2e..ae5c05e1dbe 100644 --- a/gdb/Makefile.in +++ b/gdb/Makefile.in -@@ -2273,6 +2273,8 @@ ALLDEPFILES = \ - sh-nbsd-nat.c \ - sh-nbsd-tdep.c \ +@@ -2284,6 +2284,8 @@ ALLDEPFILES = \ + sh-netbsd-nat.c \ + sh-netbsd-tdep.c \ sh-tdep.c \ + sh-linux-tdep.c \ + sh-linux-nat.c \
@@ -40,19 +40,20 @@ index 4808357e651..a009004ab05 100644 solib-aix.c \ solib-svr4.c \ diff --git a/gdb/configure.host b/gdb/configure.host -index ce528237291..5b5173a71aa 100644 +index e94a19b0332..08b8478b56b 100644 --- a/gdb/configure.host +++ b/gdb/configure.host -@@ -148,6 +148,7 @@ riscv*-*-linux*) gdb_host=linux ;; +@@ -151,6 +151,8 @@ riscv*-*-linux*) gdb_host=linux ;; s390*-*-linux*) gdb_host=linux ;; +sh*-*-linux*) gdb_host=linux ;; ++ sh*-*-netbsdelf* | sh*-*-knetbsd*-gnu) gdb_host=nbsd ;; sh*-*-openbsd*) gdb_host=nbsd ;; diff --git a/gdb/sh-linux-tdep.c b/gdb/sh-linux-tdep.c -index 5d2f38f5801..06a45b74827 100644 +index 700df35bc3b..aaed47ded81 100644 --- a/gdb/sh-linux-tdep.c +++ b/gdb/sh-linux-tdep.c @@ -18,14 +18,37 @@
@@ -596,11 +597,11 @@ index 5d2f38f5801..06a45b74827 100644 + set_gdbarch_regset_from_core_section (gdbarch, + sh_linux_regset_from_core_section); + - linux_init_abi (info, gdbarch); + linux_init_abi (info, gdbarch, 0); /* GNU/Linux uses SVR4-style shared libraries. */ diff --git a/gdb/sh-tdep.c b/gdb/sh-tdep.c -index 7aadf9165ca..e173e215a2d 100644 +index bfb220adf79..6a077b235bf 100644 --- a/gdb/sh-tdep.c +++ b/gdb/sh-tdep.c @@ -21,6 +21,9 @@
@@ -694,7 +695,7 @@ index 7aadf9165ca..e173e215a2d 100644 if (regnum < SH_NUM_REGS && cache->saved_regs[regnum] != -1) return frame_unwind_got_memory (this_frame, regnum, -@@ -2234,8 +2221,8 @@ sh_return_in_first_hidden_param_p (struct gdbarch *gdbarch, +@@ -2236,8 +2223,8 @@ sh_return_in_first_hidden_param_p (struct gdbarch *gdbarch, static struct gdbarch * sh_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) {
@@ -704,7 +705,7 @@ index 7aadf9165ca..e173e215a2d 100644 /* If there is already a candidate, use it. */ arches = gdbarch_list_lookup_by_info (arches, &info); -@@ -2247,6 +2234,18 @@ sh_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) +@@ -2249,6 +2236,18 @@ sh_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) tdep = XCNEW (struct gdbarch_tdep); gdbarch = gdbarch_alloc (&info, tdep);
@@ -723,7 +724,7 @@ index 7aadf9165ca..e173e215a2d 100644 set_gdbarch_short_bit (gdbarch, 2 * TARGET_CHAR_BIT); set_gdbarch_int_bit (gdbarch, 4 * TARGET_CHAR_BIT); set_gdbarch_long_bit (gdbarch, 4 * TARGET_CHAR_BIT); -@@ -2398,10 +2397,11 @@ sh_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) +@@ -2400,10 +2399,11 @@ sh_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) break; }
@@ -737,7 +738,7 @@ index 7aadf9165ca..e173e215a2d 100644 frame_unwind_append_unwinder (gdbarch, &sh_frame_unwind); diff --git a/gdb/sh-tdep.h b/gdb/sh-tdep.h -index 76e2e76e39b..2710f63010c 100644 +index 737b6dc6bdc..8d82e819b8c 100644 --- a/gdb/sh-tdep.h +++ b/gdb/sh-tdep.h @@ -21,6 +21,12 @@
@@ -820,7 +821,7 @@ index 76e2e76e39b..2710f63010c 100644 where each general-purpose register is stored inside the associated core file section. */ diff --git a/gdb/testsuite/gdb.asm/asm-source.exp b/gdb/testsuite/gdb.asm/asm-source.exp -index 4914498f98c..6e25cbed185 100644 +index dedcd92f2df..ae81b8becd3 100644 --- a/gdb/testsuite/gdb.asm/asm-source.exp +++ b/gdb/testsuite/gdb.asm/asm-source.exp @@ -116,6 +116,11 @@ switch -glob -- [istarget] {
@@ -909,5 +910,5 @@ index 756606880fa..1205a9bc9c5 100644 static int count = 0; -- -2.29.2 +2.33.1
meta/recipes-devtools/gdb/gdb/0005-Dont-disable-libreadline.a-when-using-disable-static.patch +6 -6
@@ -1,7 +1,7 @@ -From ec566877c50bdae0013a38dd457004e1db725d86 Mon Sep 17 00:00:00 2001 +From e2efd044c479895767f1b929f5a54fa0c689f318 Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Sat, 30 Apr 2016 15:25:03 -0700 -Subject: [PATCH 05/11] Dont disable libreadline.a when using --disable-static +Subject: [PATCH 05/10] Dont disable libreadline.a when using --disable-static If gdb is configured with --disable-static then this is dutifully passed to readline which then disables libreadline.a, which causes a problem when gdb
@@ -19,7 +19,7 @@ Signed-off-by: Khem Raj <[email protected]> 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile.def b/Makefile.def -index 76d062bb671..e0a1e2b14b1 100644 +index 5a460f1dbbc..77a702ac6d6 100644 --- a/Makefile.def +++ b/Makefile.def @@ -105,7 +105,8 @@ host_modules= { module= libiconv;
@@ -33,10 +33,10 @@ index 76d062bb671..e0a1e2b14b1 100644 host_modules= { module= sim; }; host_modules= { module= texinfo; no_install= true; }; diff --git a/Makefile.in b/Makefile.in -index 9dfd39fae13..eaf1dd0f229 100644 +index 9b3a5d75735..98cbe844fca 100644 --- a/Makefile.in +++ b/Makefile.in -@@ -25548,7 +25548,7 @@ configure-readline: +@@ -25607,7 +25607,7 @@ configure-readline: $$s/$$module_srcdir/configure \ --srcdir=$${topdir}/$$module_srcdir \ $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -46,5 +46,5 @@ index 9dfd39fae13..eaf1dd0f229 100644 @endif readline -- -2.29.2 +2.33.1
meta/recipes-devtools/gdb/gdb/0006-use-asm-sgidefs.h.patch +4 -4
@@ -1,7 +1,7 @@ -From 4b02e54b87d435e1715ce871bcce720561a7afb1 Mon Sep 17 00:00:00 2001 +From 5077518c11e8d75e9bf65cdf9ca21c59564e1037 Mon Sep 17 00:00:00 2001 From: Andre McCurdy <[email protected]> Date: Sat, 30 Apr 2016 15:29:06 -0700 -Subject: [PATCH 06/11] use <asm/sgidefs.h> +Subject: [PATCH 06/10] use <asm/sgidefs.h> Build fix for MIPS with musl libc
@@ -19,7 +19,7 @@ Signed-off-by: Khem Raj <[email protected]> 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdb/mips-linux-nat.c b/gdb/mips-linux-nat.c -index 4337795bac8..7c8e54cabe0 100644 +index 6614b4de31e..237eb6eb975 100644 --- a/gdb/mips-linux-nat.c +++ b/gdb/mips-linux-nat.c @@ -31,7 +31,7 @@
@@ -32,5 +32,5 @@ index 4337795bac8..7c8e54cabe0 100644 #include <asm/ptrace.h> #include "inf-ptrace.h" -- -2.29.2 +2.33.1
meta/recipes-devtools/gdb/gdb/0007-Change-order-of-CFLAGS.patch renamed from meta/recipes-devtools/gdb/gdb/0008-Change-order-of-CFLAGS.patch +6 -6
@@ -1,7 +1,7 @@ -From 07175ae348c9d07581e1db94762d5a2d577a75ad Mon Sep 17 00:00:00 2001 +From 80080e6c8425ac51498f49c2063b960a08f9a27d Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Sat, 30 Apr 2016 15:35:39 -0700 -Subject: [PATCH 08/11] Change order of CFLAGS +Subject: [PATCH 07/10] Change order of CFLAGS Lets us override Werror if need be
@@ -13,11 +13,11 @@ Signed-off-by: Khem Raj <[email protected]> 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdbserver/Makefile.in b/gdbserver/Makefile.in -index 2b1a77f2de7..cb5ddb12fd5 100644 +index 12e9b2777ae..ad44fbc3309 100644 --- a/gdbserver/Makefile.in +++ b/gdbserver/Makefile.in -@@ -161,7 +161,7 @@ WIN32APILIBS = @WIN32APILIBS@ - INTERNAL_CFLAGS_BASE = ${CXXFLAGS} ${GLOBAL_CFLAGS} \ +@@ -172,7 +172,7 @@ WIN32APILIBS = @WIN32APILIBS@ + INTERNAL_CFLAGS_BASE = ${GLOBAL_CFLAGS} \ ${PROFILE_CFLAGS} ${INCLUDE_CFLAGS} ${CPPFLAGS} $(PTHREAD_CFLAGS) INTERNAL_WARN_CFLAGS = ${INTERNAL_CFLAGS_BASE} $(WARN_CFLAGS) -INTERNAL_CFLAGS = ${INTERNAL_WARN_CFLAGS} $(WERROR_CFLAGS) -DGDBSERVER
@@ -26,5 +26,5 @@ index 2b1a77f2de7..cb5ddb12fd5 100644 # LDFLAGS is specifically reserved for setting from the command line # when running make. -- -2.29.2 +2.33.1
meta/recipes-devtools/gdb/gdb/0008-resolve-restrict-keyword-conflict.patch renamed from meta/recipes-devtools/gdb/gdb/0009-resolve-restrict-keyword-conflict.patch +4 -4
@@ -1,7 +1,7 @@ -From 73a3babe48c7948f71683d0862eddc1609fdaa3d Mon Sep 17 00:00:00 2001 +From 4ee7e8afb9ff259e889ac938c673fda9ddc5e15a Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Tue, 10 May 2016 08:47:05 -0700 -Subject: [PATCH 09/11] resolve restrict keyword conflict +Subject: [PATCH 08/10] resolve restrict keyword conflict GCC detects that we call 'restrict' as param name in function signatures and complains since both params are called 'restrict'
@@ -15,7 +15,7 @@ Signed-off-by: Khem Raj <[email protected]> 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gnulib/import/sys_time.in.h b/gnulib/import/sys_time.in.h -index d30b26719b2..fd76af5e6d9 100644 +index 90a67d18426..664641a1fe8 100644 --- a/gnulib/import/sys_time.in.h +++ b/gnulib/import/sys_time.in.h @@ -93,20 +93,20 @@ struct timeval
@@ -44,5 +44,5 @@ index d30b26719b2..fd76af5e6d9 100644 _GL_CXXALIASWARN (gettimeofday); # if defined __cplusplus && defined GNULIB_NAMESPACE -- -2.29.2 +2.33.1
meta/recipes-devtools/gdb/gdb/0009-Fix-invalid-sigprocmask-call.patch renamed from meta/recipes-devtools/gdb/gdb/0010-Fix-invalid-sigprocmask-call.patch +4 -4
@@ -1,7 +1,7 @@ -From c5c5372c6a319cac8b3f9f86304fcebcbb5ea06f Mon Sep 17 00:00:00 2001 +From 5740876d92ddb67b039d5fbcd1b71e6c58823c08 Mon Sep 17 00:00:00 2001 From: Yousong Zhou <[email protected]> Date: Fri, 24 Mar 2017 10:36:03 +0800 -Subject: [PATCH 10/11] Fix invalid sigprocmask call +Subject: [PATCH 09/10] Fix invalid sigprocmask call MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit
@@ -32,7 +32,7 @@ Signed-off-by: Khem Raj <[email protected]> 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdbsupport/signals-state-save-restore.cc b/gdbsupport/signals-state-save-restore.cc -index c292d498daf..af9dcaeb08e 100644 +index 95c156e5036..f4aa512d105 100644 --- a/gdbsupport/signals-state-save-restore.cc +++ b/gdbsupport/signals-state-save-restore.cc @@ -38,7 +38,7 @@ save_original_signals_state (bool quiet)
@@ -45,5 +45,5 @@ index c292d498daf..af9dcaeb08e 100644 perror_with_name (("sigprocmask")); -- -2.29.2 +2.33.1
meta/recipes-devtools/gdb/gdb/0010-gdbserver-ctrl-c-handling.patch renamed from meta/recipes-devtools/gdb/gdb/0011-gdbserver-ctrl-c-handling.patch +5 -5
@@ -1,7 +1,7 @@ -From 63df98fa78c8a6e12b40ebdc5c155838d2bf8b5f Mon Sep 17 00:00:00 2001 +From d611a68f05c0c86af27bf6beae189a90a946e2e3 Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Thu, 29 Nov 2018 18:00:23 -0800 -Subject: [PATCH 11/11] gdbserver ctrl-c handling +Subject: [PATCH 10/10] gdbserver ctrl-c handling This problem was created by the upstream commit 78708b7c8c After applying the commit, it will send SIGINT to the process
@@ -23,10 +23,10 @@ Signed-off-by: Khem Raj <[email protected]> 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdbserver/linux-low.cc b/gdbserver/linux-low.cc -index e45493339d2..aabc099b456 100644 +index 5c6191d941c..7f7acf6700d 100644 --- a/gdbserver/linux-low.cc +++ b/gdbserver/linux-low.cc -@@ -5714,7 +5714,7 @@ linux_process_target::request_interrupt () +@@ -5733,7 +5733,7 @@ linux_process_target::request_interrupt () { /* Send a SIGINT to the process group. This acts just like the user typed a ^C on the controlling terminal. */
@@ -36,5 +36,5 @@ index e45493339d2..aabc099b456 100644 bool -- -2.29.2 +2.33.1
meta/recipes-devtools/gdb/gdb/0012-arc-Add-support-for-signal-handlers.patch deleted +0 -218
218 lines not on this page · raw message
meta/recipes-devtools/gdb/gdb/0013-arc-Add-support-for-signal-frames-for-Linux-targets.patch deleted +0 -232
232 lines not on this page · raw message
meta/recipes-devtools/gdb/gdb/0014-arc-Take-into-account-the-REGNUM-in-supply-collect-g.patch deleted +0 -104
104 lines not on this page · raw message
meta/recipes-devtools/gdb/gdb/0015-gdb-Add-native-support-for-ARC-in-GNU-Linux.patch deleted +0 -414
414 lines not on this page · raw message
meta/recipes-devtools/gdb/gdb_11.1.bb renamed from meta/recipes-devtools/gdb/gdb_10.2.bb +0 -0
Signature · 1 line
2.33.1
PATCH 2/2 gdb: Add dependency on libgmp
gdb 11 has added this library as must have
--- meta/recipes-devtools/gdb/gdb-common.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
meta/recipes-devtools/gdb/gdb-common.inc +2 -1
@@ -2,7 +2,7 @@ SUMMARY = "GNU debugger" HOMEPAGE = "http://www.gnu.org/software/gdb/" DESCRIPTION = "GDB, the GNU Project debugger, allows you to see what is going on inside another program while it executes -- or what another program was doing at the moment it crashed." SECTION = "devel" -DEPENDS = "expat zlib ncurses virtual/libiconv ${LTTNGUST} bison-native" +DEPENDS = "expat gmp zlib ncurses virtual/libiconv ${LTTNGUST} bison-native" LTTNGUST = "lttng-ust" LTTNGUST:arc = ""
@@ -27,6 +27,7 @@ EXTRA_OECONF = "--disable-gdbtk --disable-x --disable-werror \ --disable-gas --disable-binutils \ --disable-ld --disable-gold \ --disable-gprof \ + --with-libgmp-prefix=${STAGING_EXECPREFIXDIR} \ " PACKAGECONFIG ??= "readline ${@bb.utils.filter('DISTRO_FEATURES', 'debuginfod', d)}"
Signature · 1 line
2.33.1
Quoted 31 lines · Khem Raj
Drop backported patches
Changes are here [1][1] https://sourceware.org/pipermail/gdb-announce/2021/000129.html
Signed-off-by Khem Raj <[email protected]>--- meta/conf/distro/include/tcmode-default.inc | 2 +- .../gdb/{gdb-10.2.inc => gdb-11.1.inc} | 14 +- ...ian_10.2.bb => gdb-cross-canadian_11.1.bb} | 0 .../{gdb-cross_10.2.bb => gdb-cross_11.1.bb} | 0 ...make-man-install-relative-to-DESTDIR.patch | 20 +- ...ux-nat-Define-_ABIO32-if-not-defined.patch | 8 +- ...e-pt_regs-uapi_pt_regs-on-GLIBC-syst.patch | 10 +- ...port-for-Renesas-SH-sh4-architecture.patch | 39 +- ...readline.a-when-using-disable-static.patch | 12 +- .../gdb/gdb/0006-use-asm-sgidefs.h.patch | 8 +- ...atch => 0007-Change-order-of-CFLAGS.patch} | 12 +- ...8-resolve-restrict-keyword-conflict.patch} | 8 +- ...> 0009-Fix-invalid-sigprocmask-call.patch} | 8 +- ...h => 0010-gdbserver-ctrl-c-handling.patch} | 10 +- ...-arc-Add-support-for-signal-handlers.patch | 218 --------- ...-for-signal-frames-for-Linux-targets.patch | 232 ---------- ...count-the-REGNUM-in-supply-collect-g.patch | 104 ----- ...-native-support-for-ARC-in-GNU-Linux.patch | 414 ------------------ .../gdb/{gdb_10.2.bb => gdb_11.1.bb} | 0 19 files changed, 74 insertions(+), 1045 deletions(-) rename meta/recipes-devtools/gdb/{gdb-10.2.inc => gdb-11.1.inc} (56%) rename meta/recipes-devtools/gdb/{gdb-cross-canadian_10.2.bb => gdb-cross-canadian_11.1.bb} (100%) rename meta/recipes-devtools/gdb/{gdb-cross_10.2.bb => gdb-cross_11.1.bb} (100%) rename meta/recipes-devtools/gdb/gdb/{0008-Change-order-of-CFLAGS.patch => 0007-Change-order-of-CFLAGS.patch} (75%)
Quoted 8 lines
rename meta/recipes-devtools/gdb/gdb/{0009-resolve-restrict-keyword-conflict.patch => 0008-resolve-restrict-keyword-conflict.patch} (91%)
rename meta/recipes-devtools/gdb/gdb/{0010-Fix-invalid-sigprocmask-call.patch => 0009-Fix-invalid-sigprocmask-call.patch} (90%)
rename meta/recipes-devtools/gdb/gdb/{0011-gdbserver-ctrl-c-handling.patch => 0010-gdbserver-ctrl-c-handling.patch} (82%)
delete mode 100644 meta/recipes-devtools/gdb/gdb/0012-arc-Add-support-for-signal-handlers.patch
delete mode 100644 meta/recipes-devtools/gdb/gdb/0013-arc-Add-support-for-signal-frames-for-Linux-targets.patch
delete mode 100644 meta/recipes-devtools/gdb/gdb/0014-arc-Take-into-account-the-REGNUM-in-supply-collect-g.patch
delete mode 100644 meta/recipes-devtools/gdb/gdb/0015-gdb-Add-native-support-for-ARC-in-GNU-Linux.patch
rename meta/recipes-devtools/gdb/{gdb_10.2.bb => gdb_11.1.bb} (100%)Breaks on mingw:
https://autobuilder.yoctoproject.org/typhoon/#/builders/64/builds/4299
Cheers,
Richard
Quoted 42 lines · Richard Purdie
Quoted 31 lines · Khem Raj
Drop backported patches
Changes are here [1][1] https://sourceware.org/pipermail/gdb-announce/2021/000129.html
Signed-off-by Khem Raj <[email protected]>--- meta/conf/distro/include/tcmode-default.inc | 2 +- .../gdb/{gdb-10.2.inc => gdb-11.1.inc} | 14 +- ...ian_10.2.bb => gdb-cross-canadian_11.1.bb} | 0 .../{gdb-cross_10.2.bb => gdb-cross_11.1.bb} | 0 ...make-man-install-relative-to-DESTDIR.patch | 20 +- ...ux-nat-Define-_ABIO32-if-not-defined.patch | 8 +- ...e-pt_regs-uapi_pt_regs-on-GLIBC-syst.patch | 10 +- ...port-for-Renesas-SH-sh4-architecture.patch | 39 +- ...readline.a-when-using-disable-static.patch | 12 +- .../gdb/gdb/0006-use-asm-sgidefs.h.patch | 8 +- ...atch => 0007-Change-order-of-CFLAGS.patch} | 12 +- ...8-resolve-restrict-keyword-conflict.patch} | 8 +- ...> 0009-Fix-invalid-sigprocmask-call.patch} | 8 +- ...h => 0010-gdbserver-ctrl-c-handling.patch} | 10 +- ...-arc-Add-support-for-signal-handlers.patch | 218 --------- ...-for-signal-frames-for-Linux-targets.patch | 232 ---------- ...count-the-REGNUM-in-supply-collect-g.patch | 104 ----- ...-native-support-for-ARC-in-GNU-Linux.patch | 414 ------------------ .../gdb/{gdb_10.2.bb => gdb_11.1.bb} | 0 19 files changed, 74 insertions(+), 1045 deletions(-) rename meta/recipes-devtools/gdb/{gdb-10.2.inc => gdb-11.1.inc} (56%) rename meta/recipes-devtools/gdb/{gdb-cross-canadian_10.2.bb => gdb-cross-canadian_11.1.bb} (100%) rename meta/recipes-devtools/gdb/{gdb-cross_10.2.bb => gdb-cross_11.1.bb} (100%) rename meta/recipes-devtools/gdb/gdb/{0008-Change-order-of-CFLAGS.patch => 0007-Change-order-of-CFLAGS.patch} (75%)Quoted 8 lines
rename meta/recipes-devtools/gdb/gdb/{0009-resolve-restrict-keyword-conflict.patch => 0008-resolve-restrict-keyword-conflict.patch} (91%) rename meta/recipes-devtools/gdb/gdb/{0010-Fix-invalid-sigprocmask-call.patch => 0009-Fix-invalid-sigprocmask-call.patch} (90%) rename meta/recipes-devtools/gdb/gdb/{0011-gdbserver-ctrl-c-handling.patch => 0010-gdbserver-ctrl-c-handling.patch} (82%) delete mode 100644 meta/recipes-devtools/gdb/gdb/0012-arc-Add-support-for-signal-handlers.patch delete mode 100644 meta/recipes-devtools/gdb/gdb/0013-arc-Add-support-for-signal-frames-for-Linux-targets.patch delete mode 100644 meta/recipes-devtools/gdb/gdb/0014-arc-Take-into-account-the-REGNUM-in-supply-collect-g.patch delete mode 100644 meta/recipes-devtools/gdb/gdb/0015-gdb-Add-native-support-for-ARC-in-GNU-Linux.patch rename meta/recipes-devtools/gdb/{gdb_10.2.bb => gdb_11.1.bb} (100%)
Quoted 4 lines
Breaks on mingw:
https://autobuilder.yoctoproject.org/typhoon/#/builders/64/builds/4299
I see
| sys-linux.c:140:10: fatal error: linux/ipx.h: No such file or directory | 140 | #include <linux/ipx.h> | | ^~~~~~~~~~~~~ | compilation terminated. | make[1]: *** [<builtin>: sys-linux.o] Error 1 | make[1]: Leaving directory
'/home/pokybuild/yocto-worker/musl-qemux86/build/build/tmp/work/core2-32-poky-linux-musl/ppp/2.4.9-r0/ppp-2.4.9/pppd'
perhaps wrong link ?
Quoted 4 lines
Cheers,
Richard
Quoted 57 lines · Khem Raj
Quoted 42 lines · Richard Purdie
Quoted 31 lines · Khem Raj
Drop backported patches
Changes are here [1][1] https://sourceware.org/pipermail/gdb-announce/2021/000129.html
Signed-off-by Khem Raj <[email protected]>--- meta/conf/distro/include/tcmode-default.inc | 2 +- .../gdb/{gdb-10.2.inc => gdb-11.1.inc} | 14 +- ...ian_10.2.bb => gdb-cross-canadian_11.1.bb} | 0 .../{gdb-cross_10.2.bb => gdb-cross_11.1.bb} | 0 ...make-man-install-relative-to-DESTDIR.patch | 20 +- ...ux-nat-Define-_ABIO32-if-not-defined.patch | 8 +- ...e-pt_regs-uapi_pt_regs-on-GLIBC-syst.patch | 10 +- ...port-for-Renesas-SH-sh4-architecture.patch | 39 +- ...readline.a-when-using-disable-static.patch | 12 +- .../gdb/gdb/0006-use-asm-sgidefs.h.patch | 8 +- ...atch => 0007-Change-order-of-CFLAGS.patch} | 12 +- ...8-resolve-restrict-keyword-conflict.patch} | 8 +- ...> 0009-Fix-invalid-sigprocmask-call.patch} | 8 +- ...h => 0010-gdbserver-ctrl-c-handling.patch} | 10 +- ...-arc-Add-support-for-signal-handlers.patch | 218 --------- ...-for-signal-frames-for-Linux-targets.patch | 232 ---------- ...count-the-REGNUM-in-supply-collect-g.patch | 104 ----- ...-native-support-for-ARC-in-GNU-Linux.patch | 414 ------------------ .../gdb/{gdb_10.2.bb => gdb_11.1.bb} | 0 19 files changed, 74 insertions(+), 1045 deletions(-) rename meta/recipes-devtools/gdb/{gdb-10.2.inc => gdb-11.1.inc} (56%) rename meta/recipes-devtools/gdb/{gdb-cross-canadian_10.2.bb => gdb-cross-canadian_11.1.bb} (100%) rename meta/recipes-devtools/gdb/{gdb-cross_10.2.bb => gdb-cross_11.1.bb} (100%) rename meta/recipes-devtools/gdb/gdb/{0008-Change-order-of-CFLAGS.patch => 0007-Change-order-of-CFLAGS.patch} (75%)Quoted 8 lines
rename meta/recipes-devtools/gdb/gdb/{0009-resolve-restrict-keyword-conflict.patch => 0008-resolve-restrict-keyword-conflict.patch} (91%) rename meta/recipes-devtools/gdb/gdb/{0010-Fix-invalid-sigprocmask-call.patch => 0009-Fix-invalid-sigprocmask-call.patch} (90%) rename meta/recipes-devtools/gdb/gdb/{0011-gdbserver-ctrl-c-handling.patch => 0010-gdbserver-ctrl-c-handling.patch} (82%) delete mode 100644 meta/recipes-devtools/gdb/gdb/0012-arc-Add-support-for-signal-handlers.patch delete mode 100644 meta/recipes-devtools/gdb/gdb/0013-arc-Add-support-for-signal-frames-for-Linux-targets.patch delete mode 100644 meta/recipes-devtools/gdb/gdb/0014-arc-Take-into-account-the-REGNUM-in-supply-collect-g.patch delete mode 100644 meta/recipes-devtools/gdb/gdb/0015-gdb-Add-native-support-for-ARC-in-GNU-Linux.patch rename meta/recipes-devtools/gdb/{gdb_10.2.bb => gdb_11.1.bb} (100%)Quoted 4 lines
Breaks on mingw:
https://autobuilder.yoctoproject.org/typhoon/#/builders/64/builds/4299
I see
Quoted 6 lines
sys-linux.c:140:10: fatal error:
linux/ipx.h: No such file or directory
140 | #include <linux/ipx.h>| ^~~~~~~~~~~~~compilation terminated.
make[1]: *** [<builtin>: sys-linux.o] Error 1
make[1]: Leaving directory
Quoted 3 lines
'
/home/pokybuild/yocto-worker/musl-qemux86/build/build/tmp/work/core2-32-poky-linux-musl/ppp/2.4.9-r0/ppp-2.4.9/pppd'perhaps wrong link ?
Sorry, https://autobuilder.yoctoproject.org/typhoon/#/builders/89/builds/4293
Cheers,
Richard
Quoted 59 lines · Richard Purdie
Quoted 57 lines · Khem Raj
Quoted 42 lines · Richard Purdie
Quoted 31 lines · Khem Raj
Drop backported patches
Changes are here [1][1] https://sourceware.org/pipermail/gdb-announce/2021/000129.html
Signed-off-by Khem Raj <[email protected]>--- meta/conf/distro/include/tcmode-default.inc | 2 +- .../gdb/{gdb-10.2.inc => gdb-11.1.inc} | 14 +- ...ian_10.2.bb => gdb-cross-canadian_11.1.bb} | 0 .../{gdb-cross_10.2.bb => gdb-cross_11.1.bb} | 0 ...make-man-install-relative-to-DESTDIR.patch | 20 +- ...ux-nat-Define-_ABIO32-if-not-defined.patch | 8 +- ...e-pt_regs-uapi_pt_regs-on-GLIBC-syst.patch | 10 +- ...port-for-Renesas-SH-sh4-architecture.patch | 39 +- ...readline.a-when-using-disable-static.patch | 12 +- .../gdb/gdb/0006-use-asm-sgidefs.h.patch | 8 +- ...atch => 0007-Change-order-of-CFLAGS.patch} | 12 +- ...8-resolve-restrict-keyword-conflict.patch} | 8 +- ...> 0009-Fix-invalid-sigprocmask-call.patch} | 8 +- ...h => 0010-gdbserver-ctrl-c-handling.patch} | 10 +- ...-arc-Add-support-for-signal-handlers.patch | 218 --------- ...-for-signal-frames-for-Linux-targets.patch | 232 ---------- ...count-the-REGNUM-in-supply-collect-g.patch | 104 ----- ...-native-support-for-ARC-in-GNU-Linux.patch | 414 ------------------ .../gdb/{gdb_10.2.bb => gdb_11.1.bb} | 0 19 files changed, 74 insertions(+), 1045 deletions(-) rename meta/recipes-devtools/gdb/{gdb-10.2.inc => gdb-11.1.inc} (56%) rename meta/recipes-devtools/gdb/{gdb-cross-canadian_10.2.bb => gdb-cross-canadian_11.1.bb} (100%) rename meta/recipes-devtools/gdb/{gdb-cross_10.2.bb => gdb-cross_11.1.bb} (100%) rename meta/recipes-devtools/gdb/gdb/{0008-Change-order-of-CFLAGS.patch => 0007-Change-order-of-CFLAGS.patch} (75%)Quoted 8 lines
rename meta/recipes-devtools/gdb/gdb/{0009-resolve-restrict-keyword-conflict.patch => 0008-resolve-restrict-keyword-conflict.patch} (91%) rename meta/recipes-devtools/gdb/gdb/{0010-Fix-invalid-sigprocmask-call.patch => 0009-Fix-invalid-sigprocmask-call.patch} (90%) rename meta/recipes-devtools/gdb/gdb/{0011-gdbserver-ctrl-c-handling.patch => 0010-gdbserver-ctrl-c-handling.patch} (82%) delete mode 100644 meta/recipes-devtools/gdb/gdb/0012-arc-Add-support-for-signal-handlers.patch delete mode 100644 meta/recipes-devtools/gdb/gdb/0013-arc-Add-support-for-signal-frames-for-Linux-targets.patch delete mode 100644 meta/recipes-devtools/gdb/gdb/0014-arc-Take-into-account-the-REGNUM-in-supply-collect-g.patch delete mode 100644 meta/recipes-devtools/gdb/gdb/0015-gdb-Add-native-support-for-ARC-in-GNU-Linux.patch rename meta/recipes-devtools/gdb/{gdb_10.2.bb => gdb_11.1.bb} (100%)Quoted 4 lines
Breaks on mingw:
https://autobuilder.yoctoproject.org/typhoon/#/builders/64/builds/4299
I see
Quoted 6 lines
sys-linux.c:140:10: fatal error:
linux/ipx.h: No such file or directory
140 | #include <linux/ipx.h>| ^~~~~~~~~~~~~compilation terminated.
make[1]: *** [<builtin>: sys-linux.o] Error 1
make[1]: Leaving directory
Quoted 6 lines
Quoted 3 lines
'
/home/pokybuild/yocto-worker/musl-qemux86/build/build/tmp/work/core2-32-poky-linux-musl/ppp/2.4.9-r0/ppp-2.4.9/pppd'perhaps wrong link ?
Sorry, https://autobuilder.yoctoproject.org/typhoon/#/builders/89/builds/4293
sent a fix to ml and also queued a build :)
https://autobuilder.yoctoproject.org/typhoon/#/buildrequests/238205
Quoted 5 lines
Cheers,
Richard