summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/conf/distro/include/tcmode-default.inc2
-rw-r--r--meta/recipes-devtools/gdb/gdb-10.1.inc (renamed from meta/recipes-devtools/gdb/gdb-9.2.inc)3
-rw-r--r--meta/recipes-devtools/gdb/gdb-common.inc4
-rw-r--r--meta/recipes-devtools/gdb/gdb-cross-canadian_10.1.bb (renamed from meta/recipes-devtools/gdb/gdb-cross-canadian_9.2.bb)0
-rw-r--r--meta/recipes-devtools/gdb/gdb-cross_10.1.bb (renamed from meta/recipes-devtools/gdb/gdb-cross_9.2.bb)0
-rw-r--r--meta/recipes-devtools/gdb/gdb/0001-make-man-install-relative-to-DESTDIR.patch9
-rw-r--r--meta/recipes-devtools/gdb/gdb/0002-mips-linux-nat-Define-_ABIO32-if-not-defined.patch9
-rw-r--r--meta/recipes-devtools/gdb/gdb/0003-ppc-ptrace-Define-pt_regs-uapi_pt_regs-on-GLIBC-syst.patch50
-rw-r--r--meta/recipes-devtools/gdb/gdb/0004-Add-support-for-Renesas-SH-sh4-architecture.patch58
-rw-r--r--meta/recipes-devtools/gdb/gdb/0005-Dont-disable-libreadline.a-when-using-disable-static.patch13
-rw-r--r--meta/recipes-devtools/gdb/gdb/0006-use-asm-sgidefs.h.patch9
-rw-r--r--meta/recipes-devtools/gdb/gdb/0007-Use-exorted-definitions-of-SIGRTMIN.patch13
-rw-r--r--meta/recipes-devtools/gdb/gdb/0008-Change-order-of-CFLAGS.patch19
-rw-r--r--meta/recipes-devtools/gdb/gdb/0009-resolve-restrict-keyword-conflict.patch9
-rw-r--r--meta/recipes-devtools/gdb/gdb/0010-Fix-invalid-sigprocmask-call.patch17
-rw-r--r--meta/recipes-devtools/gdb/gdb/0011-gdbserver-ctrl-c-handling.patch33
-rw-r--r--meta/recipes-devtools/gdb/gdb_10.1.bb (renamed from meta/recipes-devtools/gdb/gdb_9.2.bb)0
17 files changed, 139 insertions, 109 deletions
diff --git a/meta/conf/distro/include/tcmode-default.inc b/meta/conf/distro/include/tcmode-default.inc
index 50e8a20f35..75796a73fb 100644
--- a/meta/conf/distro/include/tcmode-default.inc
+++ b/meta/conf/distro/include/tcmode-default.inc
@@ -19,7 +19,7 @@ PREFERRED_PROVIDER_virtual/gettext ??= "gettext"
19GCCVERSION ?= "10.%" 19GCCVERSION ?= "10.%"
20SDKGCCVERSION ?= "${GCCVERSION}" 20SDKGCCVERSION ?= "${GCCVERSION}"
21BINUVERSION ?= "2.35%" 21BINUVERSION ?= "2.35%"
22GDBVERSION ?= "9.%" 22GDBVERSION ?= "10.%"
23GLIBCVERSION ?= "2.32" 23GLIBCVERSION ?= "2.32"
24LINUXLIBCVERSION ?= "5.8%" 24LINUXLIBCVERSION ?= "5.8%"
25QEMUVERSION ?= "5.1%" 25QEMUVERSION ?= "5.1%"
diff --git a/meta/recipes-devtools/gdb/gdb-9.2.inc b/meta/recipes-devtools/gdb/gdb-10.1.inc
index 017b61ef62..4b8de2b4e6 100644
--- a/meta/recipes-devtools/gdb/gdb-9.2.inc
+++ b/meta/recipes-devtools/gdb/gdb-10.1.inc
@@ -17,5 +17,4 @@ SRC_URI = "${GNU_MIRROR}/gdb/gdb-${PV}.tar.xz \
17 file://0010-Fix-invalid-sigprocmask-call.patch \ 17 file://0010-Fix-invalid-sigprocmask-call.patch \
18 file://0011-gdbserver-ctrl-c-handling.patch \ 18 file://0011-gdbserver-ctrl-c-handling.patch \
19 " 19 "
20SRC_URI[md5sum] = "db95524e554870209ab7d9f8fd8dc557" 20SRC_URI[sha256sum] = "f82f1eceeec14a3afa2de8d9b0d3c91d5a3820e23e0a01bbb70ef9f0276b62c0"
21SRC_URI[sha256sum] = "360cd7ae79b776988e89d8f9a01c985d0b1fa21c767a4295e5f88cb49175c555"
diff --git a/meta/recipes-devtools/gdb/gdb-common.inc b/meta/recipes-devtools/gdb/gdb-common.inc
index 08f615addf..46a793595d 100644
--- a/meta/recipes-devtools/gdb/gdb-common.inc
+++ b/meta/recipes-devtools/gdb/gdb-common.inc
@@ -15,8 +15,6 @@ UPSTREAM_CHECK_GITTAGREGEX = "gdb\-(?P<pver>.+)\-release"
15 15
16B = "${WORKDIR}/build-${TARGET_SYS}" 16B = "${WORKDIR}/build-${TARGET_SYS}"
17 17
18EXTRA_OEMAKE = "'SUBDIRS=intl mmalloc libiberty opcodes bfd sim gdb etc utils'"
19
20EXPAT = "--with-expat --with-libexpat-prefix=${STAGING_DIR_HOST}" 18EXPAT = "--with-expat --with-libexpat-prefix=${STAGING_DIR_HOST}"
21 19
22EXTRA_OECONF = "--disable-gdbtk --disable-x --disable-werror \ 20EXTRA_OECONF = "--disable-gdbtk --disable-x --disable-werror \
@@ -40,6 +38,8 @@ PACKAGECONFIG[tui] = "--enable-tui,--disable-tui"
40 38
41GDBPROPREFIX = "--program-prefix=''" 39GDBPROPREFIX = "--program-prefix=''"
42 40
41DISABLE_STATIC = ""
42
43do_configure () { 43do_configure () {
44 # override this function to avoid the autoconf/automake/aclocal/autoheader 44 # override this function to avoid the autoconf/automake/aclocal/autoheader
45 # calls for now 45 # calls for now
diff --git a/meta/recipes-devtools/gdb/gdb-cross-canadian_9.2.bb b/meta/recipes-devtools/gdb/gdb-cross-canadian_10.1.bb
index 301035940c..301035940c 100644
--- a/meta/recipes-devtools/gdb/gdb-cross-canadian_9.2.bb
+++ b/meta/recipes-devtools/gdb/gdb-cross-canadian_10.1.bb
diff --git a/meta/recipes-devtools/gdb/gdb-cross_9.2.bb b/meta/recipes-devtools/gdb/gdb-cross_10.1.bb
index 50cf159fdb..50cf159fdb 100644
--- a/meta/recipes-devtools/gdb/gdb-cross_9.2.bb
+++ b/meta/recipes-devtools/gdb/gdb-cross_10.1.bb
diff --git a/meta/recipes-devtools/gdb/gdb/0001-make-man-install-relative-to-DESTDIR.patch b/meta/recipes-devtools/gdb/gdb/0001-make-man-install-relative-to-DESTDIR.patch
index 82287ea13a..84d178332d 100644
--- a/meta/recipes-devtools/gdb/gdb/0001-make-man-install-relative-to-DESTDIR.patch
+++ b/meta/recipes-devtools/gdb/gdb/0001-make-man-install-relative-to-DESTDIR.patch
@@ -1,7 +1,7 @@
1From 036f8e1d387f65e52cb021dbb1bd28e8b75cf017 Mon Sep 17 00:00:00 2001 1From e5126c7167e26f865990dc5f86344602603aa8c6 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 2 Mar 2015 02:27:55 +0000 3Date: Mon, 2 Mar 2015 02:27:55 +0000
4Subject: [PATCH] make man install relative to DESTDIR 4Subject: [PATCH 01/11] make man install relative to DESTDIR
5 5
6Upstream-Status: Pending 6Upstream-Status: Pending
7 7
@@ -11,7 +11,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
11 1 file changed, 1 insertion(+), 1 deletion(-) 11 1 file changed, 1 insertion(+), 1 deletion(-)
12 12
13diff --git a/sim/common/Makefile.in b/sim/common/Makefile.in 13diff --git a/sim/common/Makefile.in b/sim/common/Makefile.in
14index c6de14122c..c4b1214946 100644 14index f713fcaa35b..7c553709d3f 100644
15--- a/sim/common/Makefile.in 15--- a/sim/common/Makefile.in
16+++ b/sim/common/Makefile.in 16+++ b/sim/common/Makefile.in
17@@ -35,7 +35,7 @@ tooldir = $(libdir)/$(target_alias) 17@@ -35,7 +35,7 @@ tooldir = $(libdir)/$(target_alias)
@@ -23,3 +23,6 @@ index c6de14122c..c4b1214946 100644
23 infodir = @infodir@ 23 infodir = @infodir@
24 includedir = @includedir@ 24 includedir = @includedir@
25 25
26--
272.29.2
28
diff --git a/meta/recipes-devtools/gdb/gdb/0002-mips-linux-nat-Define-_ABIO32-if-not-defined.patch b/meta/recipes-devtools/gdb/gdb/0002-mips-linux-nat-Define-_ABIO32-if-not-defined.patch
index 6067caf63d..f830993d5e 100644
--- a/meta/recipes-devtools/gdb/gdb/0002-mips-linux-nat-Define-_ABIO32-if-not-defined.patch
+++ b/meta/recipes-devtools/gdb/gdb/0002-mips-linux-nat-Define-_ABIO32-if-not-defined.patch
@@ -1,7 +1,7 @@
1From 6bff2862f9597f324a9385eb2f828e838e51a8a1 Mon Sep 17 00:00:00 2001 1From 0680242c9a3a0149a23e63034ecb4404de2293dd Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 23 Mar 2016 06:30:09 +0000 3Date: Wed, 23 Mar 2016 06:30:09 +0000
4Subject: [PATCH] mips-linux-nat: Define _ABIO32 if not defined 4Subject: [PATCH 02/11] mips-linux-nat: Define _ABIO32 if not defined
5 5
6This helps building gdb on mips64 on musl, since 6This helps building gdb on mips64 on musl, since
7musl does not provide sgidefs.h this define is 7musl does not provide sgidefs.h this define is
@@ -16,7 +16,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
16 1 file changed, 4 insertions(+) 16 1 file changed, 4 insertions(+)
17 17
18diff --git a/gdb/mips-linux-nat.c b/gdb/mips-linux-nat.c 18diff --git a/gdb/mips-linux-nat.c b/gdb/mips-linux-nat.c
19index 104c972f24..7f575b3363 100644 19index 38ff461a35b..4337795bac8 100644
20--- a/gdb/mips-linux-nat.c 20--- a/gdb/mips-linux-nat.c
21+++ b/gdb/mips-linux-nat.c 21+++ b/gdb/mips-linux-nat.c
22@@ -41,6 +41,10 @@ 22@@ -41,6 +41,10 @@
@@ -30,3 +30,6 @@ index 104c972f24..7f575b3363 100644
30 30
31 class mips_linux_nat_target final : public linux_nat_trad_target 31 class mips_linux_nat_target final : public linux_nat_trad_target
32 { 32 {
33--
342.29.2
35
diff --git a/meta/recipes-devtools/gdb/gdb/0003-ppc-ptrace-Define-pt_regs-uapi_pt_regs-on-GLIBC-syst.patch b/meta/recipes-devtools/gdb/gdb/0003-ppc-ptrace-Define-pt_regs-uapi_pt_regs-on-GLIBC-syst.patch
index c4bab7bb1a..cbe1779db7 100644
--- a/meta/recipes-devtools/gdb/gdb/0003-ppc-ptrace-Define-pt_regs-uapi_pt_regs-on-GLIBC-syst.patch
+++ b/meta/recipes-devtools/gdb/gdb/0003-ppc-ptrace-Define-pt_regs-uapi_pt_regs-on-GLIBC-syst.patch
@@ -1,36 +1,19 @@
1From d5817bcf2f7313699bfa85b41220d862db327664 Mon Sep 17 00:00:00 2001 1From afbb66c244b1ae0aaaa90d88d3cd484f741c614f Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 30 Apr 2016 18:32:14 -0700 3Date: Sat, 30 Apr 2016 18:32:14 -0700
4Subject: [PATCH] ppc/ptrace: Define pt_regs uapi_pt_regs on !GLIBC systems 4Subject: [PATCH 03/11] ppc/ptrace: Define pt_regs uapi_pt_regs on !GLIBC
5 systems
5 6
6Upstream-Status: Pending 7Upstream-Status: Pending
7 8
8Signed-off-by: Khem Raj <raj.khem@gmail.com> 9Signed-off-by: Khem Raj <raj.khem@gmail.com>
9--- 10---
10 gdb/gdbserver/linux-ppc-low.c | 6 ++++++ 11 gdb/nat/ppc-linux.h | 6 ++++++
11 gdb/nat/ppc-linux.h | 6 ++++++ 12 gdbserver/linux-ppc-low.cc | 6 ++++++
12 2 files changed, 12 insertions(+) 13 2 files changed, 12 insertions(+)
13 14
14diff --git a/gdb/gdbserver/linux-ppc-low.c b/gdb/gdbserver/linux-ppc-low.c
15index 5d8d67bec2..ffcf65ab58 100644
16--- a/gdb/gdbserver/linux-ppc-low.c
17+++ b/gdb/gdbserver/linux-ppc-low.c
18@@ -23,7 +23,13 @@
19 #include "elf/common.h"
20 #include <sys/uio.h>
21 #include <elf.h>
22+#if !defined(__GLIBC__)
23+# define pt_regs uapi_pt_regs
24+#endif
25 #include <asm/ptrace.h>
26+#if !defined(__GLIBC__)
27+# undef pt_regs
28+#endif
29
30 #include "arch/ppc-linux-common.h"
31 #include "arch/ppc-linux-tdesc.h"
32diff --git a/gdb/nat/ppc-linux.h b/gdb/nat/ppc-linux.h 15diff --git a/gdb/nat/ppc-linux.h b/gdb/nat/ppc-linux.h
33index d937a65b69..1fd54b4a0e 100644 16index d937a65b69c..1fd54b4a0e0 100644
34--- a/gdb/nat/ppc-linux.h 17--- a/gdb/nat/ppc-linux.h
35+++ b/gdb/nat/ppc-linux.h 18+++ b/gdb/nat/ppc-linux.h
36@@ -18,7 +18,13 @@ 19@@ -18,7 +18,13 @@
@@ -47,3 +30,24 @@ index d937a65b69..1fd54b4a0e 100644
47 #include <asm/cputable.h> 30 #include <asm/cputable.h>
48 31
49 /* This sometimes isn't defined. */ 32 /* This sometimes isn't defined. */
33diff --git a/gdbserver/linux-ppc-low.cc b/gdbserver/linux-ppc-low.cc
34index 337d555aee7..5d518f37268 100644
35--- a/gdbserver/linux-ppc-low.cc
36+++ b/gdbserver/linux-ppc-low.cc
37@@ -23,7 +23,13 @@
38 #include "elf/common.h"
39 #include <sys/uio.h>
40 #include <elf.h>
41+#if !defined(__GLIBC__)
42+# define pt_regs uapi_pt_regs
43+#endif
44 #include <asm/ptrace.h>
45+#if !defined(__GLIBC__)
46+# undef pt_regs
47+#endif
48
49 #include "arch/ppc-linux-common.h"
50 #include "arch/ppc-linux-tdesc.h"
51--
522.29.2
53
diff --git a/meta/recipes-devtools/gdb/gdb/0004-Add-support-for-Renesas-SH-sh4-architecture.patch b/meta/recipes-devtools/gdb/gdb/0004-Add-support-for-Renesas-SH-sh4-architecture.patch
index fd165d4b81..561cfff943 100644
--- a/meta/recipes-devtools/gdb/gdb/0004-Add-support-for-Renesas-SH-sh4-architecture.patch
+++ b/meta/recipes-devtools/gdb/gdb/0004-Add-support-for-Renesas-SH-sh4-architecture.patch
@@ -1,7 +1,7 @@
1From 505f10a0ea1a8bba0584859d9a348bb779593ec2 Mon Sep 17 00:00:00 2001 1From 26e406962cf7298837b350b979afff0ac34ecb0b Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 2 Mar 2015 02:31:12 +0000 3Date: Mon, 2 Mar 2015 02:31:12 +0000
4Subject: [PATCH] Add support for Renesas SH (sh4) architecture. 4Subject: [PATCH 04/11] Add support for Renesas SH (sh4) architecture.
5 5
6gdb (7.4-1~cvs20111117.2) experimental; urgency=low 6gdb (7.4-1~cvs20111117.2) experimental; urgency=low
7 . 7 .
@@ -16,7 +16,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
16 gdb/Makefile.in | 2 + 16 gdb/Makefile.in | 2 +
17 gdb/configure.host | 1 + 17 gdb/configure.host | 1 +
18 gdb/sh-linux-tdep.c | 519 +++++++++++++++++++++++++++ 18 gdb/sh-linux-tdep.c | 519 +++++++++++++++++++++++++++
19 gdb/sh-tdep.c | 53 ++- 19 gdb/sh-tdep.c | 52 +--
20 gdb/sh-tdep.h | 49 +++ 20 gdb/sh-tdep.h | 49 +++
21 gdb/testsuite/gdb.asm/asm-source.exp | 5 + 21 gdb/testsuite/gdb.asm/asm-source.exp | 5 +
22 gdb/testsuite/gdb.asm/sh.inc | 3 +- 22 gdb/testsuite/gdb.asm/sh.inc | 3 +-
@@ -24,13 +24,13 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
24 gdb/testsuite/gdb.base/annota3.c | 4 + 24 gdb/testsuite/gdb.base/annota3.c | 4 +
25 gdb/testsuite/gdb.base/sigall.c | 3 + 25 gdb/testsuite/gdb.base/sigall.c | 3 +
26 gdb/testsuite/gdb.base/signals.c | 4 + 26 gdb/testsuite/gdb.base/signals.c | 4 +
27 11 files changed, 617 insertions(+), 29 deletions(-) 27 11 files changed, 617 insertions(+), 28 deletions(-)
28 28
29diff --git a/gdb/Makefile.in b/gdb/Makefile.in 29diff --git a/gdb/Makefile.in b/gdb/Makefile.in
30index c3e074b21f..42dd7af59c 100644 30index 4808357e651..a009004ab05 100644
31--- a/gdb/Makefile.in 31--- a/gdb/Makefile.in
32+++ b/gdb/Makefile.in 32+++ b/gdb/Makefile.in
33@@ -2317,6 +2317,8 @@ ALLDEPFILES = \ 33@@ -2273,6 +2273,8 @@ ALLDEPFILES = \
34 sh-nbsd-nat.c \ 34 sh-nbsd-nat.c \
35 sh-nbsd-tdep.c \ 35 sh-nbsd-tdep.c \
36 sh-tdep.c \ 36 sh-tdep.c \
@@ -40,7 +40,7 @@ index c3e074b21f..42dd7af59c 100644
40 solib-aix.c \ 40 solib-aix.c \
41 solib-svr4.c \ 41 solib-svr4.c \
42diff --git a/gdb/configure.host b/gdb/configure.host 42diff --git a/gdb/configure.host b/gdb/configure.host
43index ce52823729..5b5173a71a 100644 43index ce528237291..5b5173a71aa 100644
44--- a/gdb/configure.host 44--- a/gdb/configure.host
45+++ b/gdb/configure.host 45+++ b/gdb/configure.host
46@@ -148,6 +148,7 @@ riscv*-*-linux*) gdb_host=linux ;; 46@@ -148,6 +148,7 @@ riscv*-*-linux*) gdb_host=linux ;;
@@ -52,7 +52,7 @@ index ce52823729..5b5173a71a 100644
52 gdb_host=nbsd ;; 52 gdb_host=nbsd ;;
53 sh*-*-openbsd*) gdb_host=nbsd ;; 53 sh*-*-openbsd*) gdb_host=nbsd ;;
54diff --git a/gdb/sh-linux-tdep.c b/gdb/sh-linux-tdep.c 54diff --git a/gdb/sh-linux-tdep.c b/gdb/sh-linux-tdep.c
55index 13c10eeeda..1d0d583a64 100644 55index 5d2f38f5801..06a45b74827 100644
56--- a/gdb/sh-linux-tdep.c 56--- a/gdb/sh-linux-tdep.c
57+++ b/gdb/sh-linux-tdep.c 57+++ b/gdb/sh-linux-tdep.c
58@@ -18,14 +18,37 @@ 58@@ -18,14 +18,37 @@
@@ -600,7 +600,7 @@ index 13c10eeeda..1d0d583a64 100644
600 600
601 /* GNU/Linux uses SVR4-style shared libraries. */ 601 /* GNU/Linux uses SVR4-style shared libraries. */
602diff --git a/gdb/sh-tdep.c b/gdb/sh-tdep.c 602diff --git a/gdb/sh-tdep.c b/gdb/sh-tdep.c
603index e3aee0ac28..5958cf3688 100644 603index 7aadf9165ca..e173e215a2d 100644
604--- a/gdb/sh-tdep.c 604--- a/gdb/sh-tdep.c
605+++ b/gdb/sh-tdep.c 605+++ b/gdb/sh-tdep.c
606@@ -21,6 +21,9 @@ 606@@ -21,6 +21,9 @@
@@ -637,16 +637,15 @@ index e3aee0ac28..5958cf3688 100644
637 static int 637 static int
638 sh_is_renesas_calling_convention (struct type *func_type) 638 sh_is_renesas_calling_convention (struct type *func_type)
639 { 639 {
640@@ -1050,7 +1036,7 @@ sh_treat_as_flt_p (struct type *type) 640@@ -1050,6 +1036,7 @@ sh_treat_as_flt_p (struct type *type)
641 return 0; 641 return 0;
642 /* Otherwise if the type of that member is float, the whole type is 642 /* Otherwise if the type of that member is float, the whole type is
643 treated as float. */ 643 treated as float. */
644- if (TYPE_CODE (TYPE_FIELD_TYPE (type, 0)) == TYPE_CODE_FLT) 644+ type = check_typedef (type);
645+ if (TYPE_CODE (check_typedef (TYPE_FIELD_TYPE (type, 0))) == TYPE_CODE_FLT) 645 if (type->field (0).type ()->code () == TYPE_CODE_FLT)
646 return 1; 646 return 1;
647 /* Otherwise it's not treated as float. */ 647 /* Otherwise it's not treated as float. */
648 return 0; 648@@ -1100,7 +1087,7 @@ sh_push_dummy_call_fpu (struct gdbarch *gdbarch,
649@@ -1100,7 +1086,7 @@ sh_push_dummy_call_fpu (struct gdbarch *gdbarch,
650 in four registers available. Loop thru args from first to last. */ 649 in four registers available. Loop thru args from first to last. */
651 for (argnum = 0; argnum < nargs; argnum++) 650 for (argnum = 0; argnum < nargs; argnum++)
652 { 651 {
@@ -655,7 +654,7 @@ index e3aee0ac28..5958cf3688 100644
655 len = TYPE_LENGTH (type); 654 len = TYPE_LENGTH (type);
656 val = sh_justify_value_in_reg (gdbarch, args[argnum], len); 655 val = sh_justify_value_in_reg (gdbarch, args[argnum], len);
657 656
658@@ -1835,7 +1821,7 @@ sh_dwarf2_frame_init_reg (struct gdbarch *gdbarch, int regnum, 657@@ -1835,7 +1822,7 @@ sh_dwarf2_frame_init_reg (struct gdbarch *gdbarch, int regnum,
659 reg->how = DWARF2_FRAME_REG_UNDEFINED; 658 reg->how = DWARF2_FRAME_REG_UNDEFINED;
660 } 659 }
661 660
@@ -664,7 +663,7 @@ index e3aee0ac28..5958cf3688 100644
664 sh_alloc_frame_cache (void) 663 sh_alloc_frame_cache (void)
665 { 664 {
666 struct sh_frame_cache *cache; 665 struct sh_frame_cache *cache;
667@@ -1862,7 +1848,7 @@ sh_alloc_frame_cache (void) 666@@ -1862,7 +1849,7 @@ sh_alloc_frame_cache (void)
668 return cache; 667 return cache;
669 } 668 }
670 669
@@ -673,7 +672,7 @@ index e3aee0ac28..5958cf3688 100644
673 sh_frame_cache (struct frame_info *this_frame, void **this_cache) 672 sh_frame_cache (struct frame_info *this_frame, void **this_cache)
674 { 673 {
675 struct gdbarch *gdbarch = get_frame_arch (this_frame); 674 struct gdbarch *gdbarch = get_frame_arch (this_frame);
676@@ -1929,9 +1915,9 @@ sh_frame_cache (struct frame_info *this_frame, void **this_cache) 675@@ -1929,9 +1916,9 @@ sh_frame_cache (struct frame_info *this_frame, void **this_cache)
677 return cache; 676 return cache;
678 } 677 }
679 678
@@ -686,7 +685,7 @@ index e3aee0ac28..5958cf3688 100644
686 { 685 {
687 struct gdbarch *gdbarch = get_frame_arch (this_frame); 686 struct gdbarch *gdbarch = get_frame_arch (this_frame);
688 struct sh_frame_cache *cache = sh_frame_cache (this_frame, this_cache); 687 struct sh_frame_cache *cache = sh_frame_cache (this_frame, this_cache);
689@@ -1945,7 +1931,7 @@ sh_frame_prev_register (struct frame_info *this_frame, 688@@ -1945,7 +1932,7 @@ sh_frame_prev_register (struct frame_info *this_frame,
690 the current frame. Frob regnum so that we pull the value from 689 the current frame. Frob regnum so that we pull the value from
691 the correct place. */ 690 the correct place. */
692 if (regnum == gdbarch_pc_regnum (gdbarch)) 691 if (regnum == gdbarch_pc_regnum (gdbarch))
@@ -695,7 +694,7 @@ index e3aee0ac28..5958cf3688 100644
695 694
696 if (regnum < SH_NUM_REGS && cache->saved_regs[regnum] != -1) 695 if (regnum < SH_NUM_REGS && cache->saved_regs[regnum] != -1)
697 return frame_unwind_got_memory (this_frame, regnum, 696 return frame_unwind_got_memory (this_frame, regnum,
698@@ -2234,8 +2220,8 @@ sh_return_in_first_hidden_param_p (struct gdbarch *gdbarch, 697@@ -2234,8 +2221,8 @@ sh_return_in_first_hidden_param_p (struct gdbarch *gdbarch,
699 static struct gdbarch * 698 static struct gdbarch *
700 sh_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) 699 sh_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
701 { 700 {
@@ -705,7 +704,7 @@ index e3aee0ac28..5958cf3688 100644
705 704
706 /* If there is already a candidate, use it. */ 705 /* If there is already a candidate, use it. */
707 arches = gdbarch_list_lookup_by_info (arches, &info); 706 arches = gdbarch_list_lookup_by_info (arches, &info);
708@@ -2247,6 +2233,18 @@ sh_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) 707@@ -2247,6 +2234,18 @@ sh_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
709 tdep = XCNEW (struct gdbarch_tdep); 708 tdep = XCNEW (struct gdbarch_tdep);
710 gdbarch = gdbarch_alloc (&info, tdep); 709 gdbarch = gdbarch_alloc (&info, tdep);
711 710
@@ -724,7 +723,7 @@ index e3aee0ac28..5958cf3688 100644
724 set_gdbarch_short_bit (gdbarch, 2 * TARGET_CHAR_BIT); 723 set_gdbarch_short_bit (gdbarch, 2 * TARGET_CHAR_BIT);
725 set_gdbarch_int_bit (gdbarch, 4 * TARGET_CHAR_BIT); 724 set_gdbarch_int_bit (gdbarch, 4 * TARGET_CHAR_BIT);
726 set_gdbarch_long_bit (gdbarch, 4 * TARGET_CHAR_BIT); 725 set_gdbarch_long_bit (gdbarch, 4 * TARGET_CHAR_BIT);
727@@ -2398,10 +2396,11 @@ sh_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) 726@@ -2398,10 +2397,11 @@ sh_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
728 break; 727 break;
729 } 728 }
730 729
@@ -738,7 +737,7 @@ index e3aee0ac28..5958cf3688 100644
738 frame_unwind_append_unwinder (gdbarch, &sh_frame_unwind); 737 frame_unwind_append_unwinder (gdbarch, &sh_frame_unwind);
739 738
740diff --git a/gdb/sh-tdep.h b/gdb/sh-tdep.h 739diff --git a/gdb/sh-tdep.h b/gdb/sh-tdep.h
741index 76e2e76e39..2710f63010 100644 740index 76e2e76e39b..2710f63010c 100644
742--- a/gdb/sh-tdep.h 741--- a/gdb/sh-tdep.h
743+++ b/gdb/sh-tdep.h 742+++ b/gdb/sh-tdep.h
744@@ -21,6 +21,12 @@ 743@@ -21,6 +21,12 @@
@@ -821,7 +820,7 @@ index 76e2e76e39..2710f63010 100644
821 where each general-purpose register is stored inside the associated 820 where each general-purpose register is stored inside the associated
822 core file section. */ 821 core file section. */
823diff --git a/gdb/testsuite/gdb.asm/asm-source.exp b/gdb/testsuite/gdb.asm/asm-source.exp 822diff --git a/gdb/testsuite/gdb.asm/asm-source.exp b/gdb/testsuite/gdb.asm/asm-source.exp
824index 4914498f98..6e25cbed18 100644 823index 4914498f98c..6e25cbed185 100644
825--- a/gdb/testsuite/gdb.asm/asm-source.exp 824--- a/gdb/testsuite/gdb.asm/asm-source.exp
826+++ b/gdb/testsuite/gdb.asm/asm-source.exp 825+++ b/gdb/testsuite/gdb.asm/asm-source.exp
827@@ -116,6 +116,11 @@ switch -glob -- [istarget] { 826@@ -116,6 +116,11 @@ switch -glob -- [istarget] {
@@ -837,7 +836,7 @@ index 4914498f98..6e25cbed18 100644
837 set asm-arch sh 836 set asm-arch sh
838 set debug-flags "-gdwarf-2" 837 set debug-flags "-gdwarf-2"
839diff --git a/gdb/testsuite/gdb.asm/sh.inc b/gdb/testsuite/gdb.asm/sh.inc 838diff --git a/gdb/testsuite/gdb.asm/sh.inc b/gdb/testsuite/gdb.asm/sh.inc
840index a4a5fc545e..89efed7795 100644 839index a4a5fc545e4..89efed7795c 100644
841--- a/gdb/testsuite/gdb.asm/sh.inc 840--- a/gdb/testsuite/gdb.asm/sh.inc
842+++ b/gdb/testsuite/gdb.asm/sh.inc 841+++ b/gdb/testsuite/gdb.asm/sh.inc
843@@ -40,9 +40,8 @@ 842@@ -40,9 +40,8 @@
@@ -852,7 +851,7 @@ index a4a5fc545e..89efed7795 100644
852 .align 1 851 .align 1
853 .Lafterconst\@: 852 .Lafterconst\@:
854diff --git a/gdb/testsuite/gdb.base/annota1.c b/gdb/testsuite/gdb.base/annota1.c 853diff --git a/gdb/testsuite/gdb.base/annota1.c b/gdb/testsuite/gdb.base/annota1.c
855index 424e1b8327..0de2e7b633 100644 854index 424e1b83278..0de2e7b633a 100644
856--- a/gdb/testsuite/gdb.base/annota1.c 855--- a/gdb/testsuite/gdb.base/annota1.c
857+++ b/gdb/testsuite/gdb.base/annota1.c 856+++ b/gdb/testsuite/gdb.base/annota1.c
858@@ -1,6 +1,9 @@ 857@@ -1,6 +1,9 @@
@@ -866,7 +865,7 @@ index 424e1b8327..0de2e7b633 100644
866 void 865 void
867 handle_USR1 (int sig) 866 handle_USR1 (int sig)
868diff --git a/gdb/testsuite/gdb.base/annota3.c b/gdb/testsuite/gdb.base/annota3.c 867diff --git a/gdb/testsuite/gdb.base/annota3.c b/gdb/testsuite/gdb.base/annota3.c
869index 424e1b8327..952aaf218a 100644 868index 424e1b83278..952aaf218ab 100644
870--- a/gdb/testsuite/gdb.base/annota3.c 869--- a/gdb/testsuite/gdb.base/annota3.c
871+++ b/gdb/testsuite/gdb.base/annota3.c 870+++ b/gdb/testsuite/gdb.base/annota3.c
872@@ -1,6 +1,10 @@ 871@@ -1,6 +1,10 @@
@@ -881,7 +880,7 @@ index 424e1b8327..952aaf218a 100644
881 void 880 void
882 handle_USR1 (int sig) 881 handle_USR1 (int sig)
883diff --git a/gdb/testsuite/gdb.base/sigall.c b/gdb/testsuite/gdb.base/sigall.c 882diff --git a/gdb/testsuite/gdb.base/sigall.c b/gdb/testsuite/gdb.base/sigall.c
884index 81f3b08d6b..1574b2d6cb 100644 883index 81f3b08d6bc..1574b2d6cb8 100644
885--- a/gdb/testsuite/gdb.base/sigall.c 884--- a/gdb/testsuite/gdb.base/sigall.c
886+++ b/gdb/testsuite/gdb.base/sigall.c 885+++ b/gdb/testsuite/gdb.base/sigall.c
887@@ -1,6 +1,9 @@ 886@@ -1,6 +1,9 @@
@@ -895,7 +894,7 @@ index 81f3b08d6b..1574b2d6cb 100644
895 /* Signal handlers, we set breakpoints in them to make sure that the 894 /* Signal handlers, we set breakpoints in them to make sure that the
896 signals really get delivered. */ 895 signals really get delivered. */
897diff --git a/gdb/testsuite/gdb.base/signals.c b/gdb/testsuite/gdb.base/signals.c 896diff --git a/gdb/testsuite/gdb.base/signals.c b/gdb/testsuite/gdb.base/signals.c
898index 756606880f..1205a9bc9c 100644 897index 756606880fa..1205a9bc9c5 100644
899--- a/gdb/testsuite/gdb.base/signals.c 898--- a/gdb/testsuite/gdb.base/signals.c
900+++ b/gdb/testsuite/gdb.base/signals.c 899+++ b/gdb/testsuite/gdb.base/signals.c
901@@ -3,6 +3,10 @@ 900@@ -3,6 +3,10 @@
@@ -909,3 +908,6 @@ index 756606880f..1205a9bc9c 100644
909 908
910 static int count = 0; 909 static int count = 0;
911 910
911--
9122.29.2
913
diff --git a/meta/recipes-devtools/gdb/gdb/0005-Dont-disable-libreadline.a-when-using-disable-static.patch b/meta/recipes-devtools/gdb/gdb/0005-Dont-disable-libreadline.a-when-using-disable-static.patch
index d0360da439..71eab1c2b1 100644
--- a/meta/recipes-devtools/gdb/gdb/0005-Dont-disable-libreadline.a-when-using-disable-static.patch
+++ b/meta/recipes-devtools/gdb/gdb/0005-Dont-disable-libreadline.a-when-using-disable-static.patch
@@ -1,7 +1,7 @@
1From d132f21d89157e980574da7d0c949f6dd17df8c3 Mon Sep 17 00:00:00 2001 1From ec566877c50bdae0013a38dd457004e1db725d86 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 30 Apr 2016 15:25:03 -0700 3Date: Sat, 30 Apr 2016 15:25:03 -0700
4Subject: [PATCH] Dont disable libreadline.a when using --disable-static 4Subject: [PATCH 05/11] Dont disable libreadline.a when using --disable-static
5 5
6If gdb is configured with --disable-static then this is dutifully passed to 6If gdb is configured with --disable-static then this is dutifully passed to
7readline which then disables libreadline.a, which causes a problem when gdb 7readline which then disables libreadline.a, which causes a problem when gdb
@@ -19,7 +19,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
19 2 files changed, 3 insertions(+), 2 deletions(-) 19 2 files changed, 3 insertions(+), 2 deletions(-)
20 20
21diff --git a/Makefile.def b/Makefile.def 21diff --git a/Makefile.def b/Makefile.def
22index 311feb9de3..24c0685d48 100644 22index 76d062bb671..e0a1e2b14b1 100644
23--- a/Makefile.def 23--- a/Makefile.def
24+++ b/Makefile.def 24+++ b/Makefile.def
25@@ -105,7 +105,8 @@ host_modules= { module= libiconv; 25@@ -105,7 +105,8 @@ host_modules= { module= libiconv;
@@ -33,10 +33,10 @@ index 311feb9de3..24c0685d48 100644
33 host_modules= { module= sim; }; 33 host_modules= { module= sim; };
34 host_modules= { module= texinfo; no_install= true; }; 34 host_modules= { module= texinfo; no_install= true; };
35diff --git a/Makefile.in b/Makefile.in 35diff --git a/Makefile.in b/Makefile.in
36index 1aabf6ede4..d957efde81 100644 36index 9dfd39fae13..eaf1dd0f229 100644
37--- a/Makefile.in 37--- a/Makefile.in
38+++ b/Makefile.in 38+++ b/Makefile.in
39@@ -25510,7 +25510,7 @@ configure-readline: 39@@ -25548,7 +25548,7 @@ configure-readline:
40 $$s/$$module_srcdir/configure \ 40 $$s/$$module_srcdir/configure \
41 --srcdir=$${topdir}/$$module_srcdir \ 41 --srcdir=$${topdir}/$$module_srcdir \
42 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ 42 $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
@@ -45,3 +45,6 @@ index 1aabf6ede4..d957efde81 100644
45 || exit 1 45 || exit 1
46 @endif readline 46 @endif readline
47 47
48--
492.29.2
50
diff --git a/meta/recipes-devtools/gdb/gdb/0006-use-asm-sgidefs.h.patch b/meta/recipes-devtools/gdb/gdb/0006-use-asm-sgidefs.h.patch
index d222d01083..a2932be6fb 100644
--- a/meta/recipes-devtools/gdb/gdb/0006-use-asm-sgidefs.h.patch
+++ b/meta/recipes-devtools/gdb/gdb/0006-use-asm-sgidefs.h.patch
@@ -1,7 +1,7 @@
1From 329e5bf29e934ba99622372a9660865864bb0298 Mon Sep 17 00:00:00 2001 1From 4b02e54b87d435e1715ce871bcce720561a7afb1 Mon Sep 17 00:00:00 2001
2From: Andre McCurdy <amccurdy@gmail.com> 2From: Andre McCurdy <amccurdy@gmail.com>
3Date: Sat, 30 Apr 2016 15:29:06 -0700 3Date: Sat, 30 Apr 2016 15:29:06 -0700
4Subject: [PATCH] use <asm/sgidefs.h> 4Subject: [PATCH 06/11] use <asm/sgidefs.h>
5 5
6Build fix for MIPS with musl libc 6Build fix for MIPS with musl libc
7 7
@@ -19,7 +19,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
19 1 file changed, 1 insertion(+), 1 deletion(-) 19 1 file changed, 1 insertion(+), 1 deletion(-)
20 20
21diff --git a/gdb/mips-linux-nat.c b/gdb/mips-linux-nat.c 21diff --git a/gdb/mips-linux-nat.c b/gdb/mips-linux-nat.c
22index 7f575b3363..dc93a64a93 100644 22index 4337795bac8..7c8e54cabe0 100644
23--- a/gdb/mips-linux-nat.c 23--- a/gdb/mips-linux-nat.c
24+++ b/gdb/mips-linux-nat.c 24+++ b/gdb/mips-linux-nat.c
25@@ -31,7 +31,7 @@ 25@@ -31,7 +31,7 @@
@@ -31,3 +31,6 @@ index 7f575b3363..dc93a64a93 100644
31 #include "nat/gdb_ptrace.h" 31 #include "nat/gdb_ptrace.h"
32 #include <asm/ptrace.h> 32 #include <asm/ptrace.h>
33 #include "inf-ptrace.h" 33 #include "inf-ptrace.h"
34--
352.29.2
36
diff --git a/meta/recipes-devtools/gdb/gdb/0007-Use-exorted-definitions-of-SIGRTMIN.patch b/meta/recipes-devtools/gdb/gdb/0007-Use-exorted-definitions-of-SIGRTMIN.patch
index 09896611f0..8cbc50b75f 100644
--- a/meta/recipes-devtools/gdb/gdb/0007-Use-exorted-definitions-of-SIGRTMIN.patch
+++ b/meta/recipes-devtools/gdb/gdb/0007-Use-exorted-definitions-of-SIGRTMIN.patch
@@ -1,7 +1,7 @@
1From 782bb2ab9b104dad4bbaed1d9ac769ce7e5b9f4d Mon Sep 17 00:00:00 2001 1From 53f694ffa1ee9893b834758413c23947957f0fee Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 30 Apr 2016 15:31:40 -0700 3Date: Sat, 30 Apr 2016 15:31:40 -0700
4Subject: [PATCH] Use exorted definitions of SIGRTMIN 4Subject: [PATCH 07/11] Use exorted definitions of SIGRTMIN
5 5
6Define W_STOPCODE if not defined already 6Define W_STOPCODE if not defined already
7 7
@@ -20,10 +20,10 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
20 2 files changed, 6 insertions(+), 2 deletions(-) 20 2 files changed, 6 insertions(+), 2 deletions(-)
21 21
22diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c 22diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c
23index 4484fa5c87..3bb0ee7a49 100644 23index b81014024c7..e0513d47122 100644
24--- a/gdb/linux-nat.c 24--- a/gdb/linux-nat.c
25+++ b/gdb/linux-nat.c 25+++ b/gdb/linux-nat.c
26@@ -4588,6 +4588,6 @@ lin_thread_get_thread_signals (sigset_t *set) 26@@ -4428,6 +4428,6 @@ lin_thread_get_thread_signals (sigset_t *set)
27 /* NPTL reserves the first two RT signals, but does not provide any 27 /* NPTL reserves the first two RT signals, but does not provide any
28 way for the debugger to query the signal numbers - fortunately 28 way for the debugger to query the signal numbers - fortunately
29 they don't change. */ 29 they don't change. */
@@ -33,7 +33,7 @@ index 4484fa5c87..3bb0ee7a49 100644
33+ sigaddset (set, SIGRTMIN + 1); 33+ sigaddset (set, SIGRTMIN + 1);
34 } 34 }
35diff --git a/gdb/nat/linux-nat.h b/gdb/nat/linux-nat.h 35diff --git a/gdb/nat/linux-nat.h b/gdb/nat/linux-nat.h
36index 44dcbb7758..975d7276f6 100644 36index 44dcbb7758d..975d7276f66 100644
37--- a/gdb/nat/linux-nat.h 37--- a/gdb/nat/linux-nat.h
38+++ b/gdb/nat/linux-nat.h 38+++ b/gdb/nat/linux-nat.h
39@@ -91,4 +91,8 @@ extern void linux_stop_lwp (struct lwp_info *lwp); 39@@ -91,4 +91,8 @@ extern void linux_stop_lwp (struct lwp_info *lwp);
@@ -45,3 +45,6 @@ index 44dcbb7758..975d7276f6 100644
45+#endif 45+#endif
46+ 46+
47 #endif /* NAT_LINUX_NAT_H */ 47 #endif /* NAT_LINUX_NAT_H */
48--
492.29.2
50
diff --git a/meta/recipes-devtools/gdb/gdb/0008-Change-order-of-CFLAGS.patch b/meta/recipes-devtools/gdb/gdb/0008-Change-order-of-CFLAGS.patch
index 18168c6bae..4622752247 100644
--- a/meta/recipes-devtools/gdb/gdb/0008-Change-order-of-CFLAGS.patch
+++ b/meta/recipes-devtools/gdb/gdb/0008-Change-order-of-CFLAGS.patch
@@ -1,7 +1,7 @@
1From 40c9c174590ce6fdc873b453285249fe957f376d Mon Sep 17 00:00:00 2001 1From 07175ae348c9d07581e1db94762d5a2d577a75ad Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 30 Apr 2016 15:35:39 -0700 3Date: Sat, 30 Apr 2016 15:35:39 -0700
4Subject: [PATCH] Change order of CFLAGS 4Subject: [PATCH 08/11] Change order of CFLAGS
5 5
6Lets us override Werror if need be 6Lets us override Werror if need be
7 7
@@ -9,14 +9,14 @@ Upstream-Status: Inappropriate
9 9
10Signed-off-by: Khem Raj <raj.khem@gmail.com> 10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11--- 11---
12 gdb/gdbserver/Makefile.in | 2 +- 12 gdbserver/Makefile.in | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-) 13 1 file changed, 1 insertion(+), 1 deletion(-)
14 14
15diff --git a/gdb/gdbserver/Makefile.in b/gdb/gdbserver/Makefile.in 15diff --git a/gdbserver/Makefile.in b/gdbserver/Makefile.in
16index 16a9f2fd38..b9c8cd9c41 100644 16index 2b1a77f2de7..cb5ddb12fd5 100644
17--- a/gdb/gdbserver/Makefile.in 17--- a/gdbserver/Makefile.in
18+++ b/gdb/gdbserver/Makefile.in 18+++ b/gdbserver/Makefile.in
19@@ -146,7 +146,7 @@ PTHREAD_LIBS = @PTHREAD_LIBS@ 19@@ -161,7 +161,7 @@ WIN32APILIBS = @WIN32APILIBS@
20 INTERNAL_CFLAGS_BASE = ${CXXFLAGS} ${GLOBAL_CFLAGS} \ 20 INTERNAL_CFLAGS_BASE = ${CXXFLAGS} ${GLOBAL_CFLAGS} \
21 ${PROFILE_CFLAGS} ${INCLUDE_CFLAGS} ${CPPFLAGS} $(PTHREAD_CFLAGS) 21 ${PROFILE_CFLAGS} ${INCLUDE_CFLAGS} ${CPPFLAGS} $(PTHREAD_CFLAGS)
22 INTERNAL_WARN_CFLAGS = ${INTERNAL_CFLAGS_BASE} $(WARN_CFLAGS) 22 INTERNAL_WARN_CFLAGS = ${INTERNAL_CFLAGS_BASE} $(WARN_CFLAGS)
@@ -25,3 +25,6 @@ index 16a9f2fd38..b9c8cd9c41 100644
25 25
26 # LDFLAGS is specifically reserved for setting from the command line 26 # LDFLAGS is specifically reserved for setting from the command line
27 # when running make. 27 # when running make.
28--
292.29.2
30
diff --git a/meta/recipes-devtools/gdb/gdb/0009-resolve-restrict-keyword-conflict.patch b/meta/recipes-devtools/gdb/gdb/0009-resolve-restrict-keyword-conflict.patch
index 8f15c49d0e..698fdb0672 100644
--- a/meta/recipes-devtools/gdb/gdb/0009-resolve-restrict-keyword-conflict.patch
+++ b/meta/recipes-devtools/gdb/gdb/0009-resolve-restrict-keyword-conflict.patch
@@ -1,7 +1,7 @@
1From 5b69a98f6bb7363a1f79f29bac2b25b7df6d2fdd Mon Sep 17 00:00:00 2001 1From 73a3babe48c7948f71683d0862eddc1609fdaa3d Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 10 May 2016 08:47:05 -0700 3Date: Tue, 10 May 2016 08:47:05 -0700
4Subject: [PATCH] resolve restrict keyword conflict 4Subject: [PATCH 09/11] resolve restrict keyword conflict
5 5
6GCC detects that we call 'restrict' as param name in function 6GCC detects that we call 'restrict' as param name in function
7signatures and complains since both params are called 'restrict' 7signatures and complains since both params are called 'restrict'
@@ -15,7 +15,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
15 1 file changed, 4 insertions(+), 4 deletions(-) 15 1 file changed, 4 insertions(+), 4 deletions(-)
16 16
17diff --git a/gnulib/import/sys_time.in.h b/gnulib/import/sys_time.in.h 17diff --git a/gnulib/import/sys_time.in.h b/gnulib/import/sys_time.in.h
18index d535a6a48b..7c34d5a1aa 100644 18index d30b26719b2..fd76af5e6d9 100644
19--- a/gnulib/import/sys_time.in.h 19--- a/gnulib/import/sys_time.in.h
20+++ b/gnulib/import/sys_time.in.h 20+++ b/gnulib/import/sys_time.in.h
21@@ -93,20 +93,20 @@ struct timeval 21@@ -93,20 +93,20 @@ struct timeval
@@ -43,3 +43,6 @@ index d535a6a48b..7c34d5a1aa 100644
43 # endif 43 # endif
44 _GL_CXXALIASWARN (gettimeofday); 44 _GL_CXXALIASWARN (gettimeofday);
45 # if defined __cplusplus && defined GNULIB_NAMESPACE 45 # if defined __cplusplus && defined GNULIB_NAMESPACE
46--
472.29.2
48
diff --git a/meta/recipes-devtools/gdb/gdb/0010-Fix-invalid-sigprocmask-call.patch b/meta/recipes-devtools/gdb/gdb/0010-Fix-invalid-sigprocmask-call.patch
index 5209c00275..7cf3eae753 100644
--- a/meta/recipes-devtools/gdb/gdb/0010-Fix-invalid-sigprocmask-call.patch
+++ b/meta/recipes-devtools/gdb/gdb/0010-Fix-invalid-sigprocmask-call.patch
@@ -1,7 +1,7 @@
1From bc1f01ff5e524f7777083024bce348a9b0017a7a Mon Sep 17 00:00:00 2001 1From c5c5372c6a319cac8b3f9f86304fcebcbb5ea06f Mon Sep 17 00:00:00 2001
2From: Yousong Zhou <yszhou4tech@gmail.com> 2From: Yousong Zhou <yszhou4tech@gmail.com>
3Date: Fri, 24 Mar 2017 10:36:03 +0800 3Date: Fri, 24 Mar 2017 10:36:03 +0800
4Subject: [PATCH] Fix invalid sigprocmask call 4Subject: [PATCH 10/11] Fix invalid sigprocmask call
5MIME-Version: 1.0 5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8 6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit 7Content-Transfer-Encoding: 8bit
@@ -28,13 +28,13 @@ Upstream-Status: Pending [not author, cherry-picked from LEDE https://bugs.lede-
28Signed-off-by: André Draszik <adraszik@tycoint.com> 28Signed-off-by: André Draszik <adraszik@tycoint.com>
29Signed-off-by: Khem Raj <raj.khem@gmail.com> 29Signed-off-by: Khem Raj <raj.khem@gmail.com>
30--- 30---
31 gdb/gdbsupport/signals-state-save-restore.c | 2 +- 31 gdbsupport/signals-state-save-restore.cc | 2 +-
32 1 file changed, 1 insertion(+), 1 deletion(-) 32 1 file changed, 1 insertion(+), 1 deletion(-)
33 33
34diff --git a/gdb/gdbsupport/signals-state-save-restore.c b/gdb/gdbsupport/signals-state-save-restore.c 34diff --git a/gdbsupport/signals-state-save-restore.cc b/gdbsupport/signals-state-save-restore.cc
35index c292d498da..af9dcaeb08 100644 35index c292d498daf..af9dcaeb08e 100644
36--- a/gdb/gdbsupport/signals-state-save-restore.c 36--- a/gdbsupport/signals-state-save-restore.cc
37+++ b/gdb/gdbsupport/signals-state-save-restore.c 37+++ b/gdbsupport/signals-state-save-restore.cc
38@@ -38,7 +38,7 @@ save_original_signals_state (bool quiet) 38@@ -38,7 +38,7 @@ save_original_signals_state (bool quiet)
39 int i; 39 int i;
40 int res; 40 int res;
@@ -44,3 +44,6 @@ index c292d498da..af9dcaeb08 100644
44 if (res == -1) 44 if (res == -1)
45 perror_with_name (("sigprocmask")); 45 perror_with_name (("sigprocmask"));
46 46
47--
482.29.2
49
diff --git a/meta/recipes-devtools/gdb/gdb/0011-gdbserver-ctrl-c-handling.patch b/meta/recipes-devtools/gdb/gdb/0011-gdbserver-ctrl-c-handling.patch
index eedd94c4d4..0a596b522f 100644
--- a/meta/recipes-devtools/gdb/gdb/0011-gdbserver-ctrl-c-handling.patch
+++ b/meta/recipes-devtools/gdb/gdb/0011-gdbserver-ctrl-c-handling.patch
@@ -1,7 +1,7 @@
1From 3d6700d38153a0ec8e0800de703a5089a8cd3d2d Mon Sep 17 00:00:00 2001 1From 63df98fa78c8a6e12b40ebdc5c155838d2bf8b5f Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 29 Nov 2018 18:00:23 -0800 3Date: Thu, 29 Nov 2018 18:00:23 -0800
4Subject: [PATCH] gdbserver ctrl-c handling 4Subject: [PATCH 11/11] gdbserver ctrl-c handling
5 5
6This problem was created by the upstream commit 78708b7c8c 6This problem was created by the upstream commit 78708b7c8c
7After applying the commit, it will send SIGINT to the process 7After applying the commit, it will send SIGINT to the process
@@ -19,21 +19,22 @@ Author: Josh Gao
19Signed-off-by: Zhixiong Chi <zhixiong.chi@windriver.com> 19Signed-off-by: Zhixiong Chi <zhixiong.chi@windriver.com>
20Signed-off-by: Khem Raj <raj.khem@gmail.com> 20Signed-off-by: Khem Raj <raj.khem@gmail.com>
21--- 21---
22 gdb/gdbserver/linux-low.c | 4 +--- 22 gdbserver/linux-low.cc | 2 +-
23 1 file changed, 1 insertion(+), 3 deletions(-) 23 1 file changed, 1 insertion(+), 1 deletion(-)
24 24
25diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c 25diff --git a/gdbserver/linux-low.cc b/gdbserver/linux-low.cc
26index 4255795ea6..762f8bafb6 100644 26index e45493339d2..aabc099b456 100644
27--- a/gdb/gdbserver/linux-low.c 27--- a/gdbserver/linux-low.cc
28+++ b/gdb/gdbserver/linux-low.c 28+++ b/gdbserver/linux-low.cc
29@@ -5904,9 +5904,7 @@ linux_look_up_symbols (void) 29@@ -5714,7 +5714,7 @@ linux_process_target::request_interrupt ()
30 static void
31 linux_request_interrupt (void)
32 { 30 {
33- /* Send a SIGINT to the process group. This acts just like the user 31 /* Send a SIGINT to the process group. This acts just like the user
34- typed a ^C on the controlling terminal. */ 32 typed a ^C on the controlling terminal. */
35- kill (-signal_pid, SIGINT); 33- ::kill (-signal_pid, SIGINT);
36+ kill (signal_pid, SIGINT); 34+ ::kill (signal_pid, SIGINT);
37 } 35 }
38 36
39 /* Copy LEN bytes from inferior's auxiliary vector starting at OFFSET 37 bool
38--
392.29.2
40
diff --git a/meta/recipes-devtools/gdb/gdb_9.2.bb b/meta/recipes-devtools/gdb/gdb_10.1.bb
index d70757a151..d70757a151 100644
--- a/meta/recipes-devtools/gdb/gdb_9.2.bb
+++ b/meta/recipes-devtools/gdb/gdb_10.1.bb