Re: [OE-core] [PATCH] gdb: Upgrade to 12.1

2023-02-21 Thread Khem Raj
On Tue, Feb 21, 2023 at 5:27 PM Randy MacLeod 
wrote:

> On 2022-05-12 15:28, Khem Raj wrote:
>
> Release Announcement [1] and Notes [2]
>
> [1] https://lists.gnu.org/archive/html/info-gnu/2022-05/msg0.html
> [2] 
> https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=blob_plain;f=gdb/NEWS;hb=gdb-12.1-release
>
> I just noticed that gdb-13.1 was released 2 days ago (Feb 19, 2023) .
>
> It seems like a good candidate to be included in the 4.2 release.
>
> $ git diff gdb-12-branch  gdb-13-branch gdb | diffstat | tail -1
>  6222 files changed, 142614 insertions(+), 63875 deletions(-)
>
> and  notes linked below.
>
> Khem,
>
> Are you working on that or should someone else start on it?
>

I have branch for 13.x already so will send patches tonight

../Randy
>
>
> https://www.sourceware.org/gdb/download/ANNOUNCEMENT
>
> https://www.sourceware.org/gdb/
>
>
> Signed-off-by: Khem Raj  
> ---
>  meta/conf/distro/include/tcmode-default.inc|  2 +-
>  ...canadian_11.2.bb => gdb-cross-canadian_12.1.bb} |  0
>  .../gdb/{gdb-cross_11.2.bb => gdb-cross_12.1.bb}   |  0
>  meta/recipes-devtools/gdb/gdb.inc  | 14 +++---
>  ...0001-make-man-install-relative-to-DESTDIR.patch | 10 +-
>  ...s-linux-nat-Define-_ABIO32-if-not-defined.patch |  8 
>  ...Define-pt_regs-uapi_pt_regs-on-GLIBC-syst.patch | 11 +--
>  ...-libreadline.a-when-using-disable-static.patch} | 14 +++---
>  ...gidefs.h.patch => 0005-use-asm-sgidefs.h.patch} |  8 
>  ...AGS.patch => 0006-Change-order-of-CFLAGS.patch} | 10 +-
>  ...> 0007-resolve-restrict-keyword-conflict.patch} |  6 +++---
>  ...tch => 0008-Fix-invalid-sigprocmask-call.patch} |  8 
>  patch => 0009-gdbserver-ctrl-c-handling.patch} | 10 +-
>  .../gdb/{gdb_11.2.bb => gdb_12.1.bb}   |  0
>  14 files changed, 50 insertions(+), 51 deletions(-)
>  rename meta/recipes-devtools/gdb/{gdb-cross-canadian_11.2.bb => 
> gdb-cross-canadian_12.1.bb} (100%)
>  rename meta/recipes-devtools/gdb/{gdb-cross_11.2.bb => gdb-cross_12.1.bb} 
> (100%)
>  rename 
> meta/recipes-devtools/gdb/gdb/{0005-Dont-disable-libreadline.a-when-using-disable-static.patch
>  => 0004-Dont-disable-libreadline.a-when-using-disable-static.patch} (80%)
>  rename meta/recipes-devtools/gdb/gdb/{0006-use-asm-sgidefs.h.patch => 
> 0005-use-asm-sgidefs.h.patch} (84%)
>  rename meta/recipes-devtools/gdb/gdb/{0007-Change-order-of-CFLAGS.patch => 
> 0006-Change-order-of-CFLAGS.patch} (80%)
>  rename 
> meta/recipes-devtools/gdb/gdb/{0008-resolve-restrict-keyword-conflict.patch 
> => 0007-resolve-restrict-keyword-conflict.patch} (93%)
>  rename 
> meta/recipes-devtools/gdb/gdb/{0009-Fix-invalid-sigprocmask-call.patch => 
> 0008-Fix-invalid-sigprocmask-call.patch} (90%)
>  rename meta/recipes-devtools/gdb/gdb/{0010-gdbserver-ctrl-c-handling.patch 
> => 0009-gdbserver-ctrl-c-handling.patch} (82%)
>  rename meta/recipes-devtools/gdb/{gdb_11.2.bb => gdb_12.1.bb} (100%)
>
> diff --git a/meta/conf/distro/include/tcmode-default.inc 
> b/meta/conf/distro/include/tcmode-default.inc
> index 9660f2804a7..1179ba172ff 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"
>  GCCVERSION ?= "12.%"
>  SDKGCCVERSION ?= "${GCCVERSION}"
>  BINUVERSION ?= "2.38%"
> -GDBVERSION ?= "11.%"
> +GDBVERSION ?= "12.%"
>  GLIBCVERSION ?= "2.35"
>  LINUXLIBCVERSION ?= "5.16%"
>  QEMUVERSION ?= "7.0%"
> diff --git a/meta/recipes-devtools/gdb/gdb-cross-canadian_11.2.bb 
> b/meta/recipes-devtools/gdb/gdb-cross-canadian_12.1.bb
> similarity index 100%
> rename from meta/recipes-devtools/gdb/gdb-cross-canadian_11.2.bb
> rename to meta/recipes-devtools/gdb/gdb-cross-canadian_12.1.bb
> diff --git a/meta/recipes-devtools/gdb/gdb-cross_11.2.bb 
> b/meta/recipes-devtools/gdb/gdb-cross_12.1.bb
> similarity index 100%
> rename from meta/recipes-devtools/gdb/gdb-cross_11.2.bb
> rename to meta/recipes-devtools/gdb/gdb-cross_12.1.bb
> diff --git a/meta/recipes-devtools/gdb/gdb.inc 
> b/meta/recipes-devtools/gdb/gdb.inc
> index 649ee287276..3b569fd40e7 100644
> --- a/meta/recipes-devtools/gdb/gdb.inc
> +++ b/meta/recipes-devtools/gdb/gdb.inc
> @@ -8,11 +8,11 @@ SRC_URI = "${GNU_MIRROR}/gdb/gdb-${PV}.tar.xz \
> file://0001-make-man-install-relative-to-DESTDIR.patch \
> file://0002-mips-linux-nat-Define-_ABIO32-if-not-defined.patch \
> 
> file://0003-ppc-ptrace-Define-pt_regs-uapi_pt_regs-on-GLIBC-syst.patch \
> -   
> file://0005-Dont-disable-libreadline.a-when-using-disable-static.patch \
> -   file://0006-use-asm-sgidefs.h.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 \
> +   
> 

Re: [OE-core] [PATCH] gdb: Upgrade to 12.1

2023-02-21 Thread Randy MacLeod

On 2022-05-12 15:28, Khem Raj wrote:

Release Announcement [1] and Notes [2]

[1]https://lists.gnu.org/archive/html/info-gnu/2022-05/msg0.html
[2]https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=blob_plain;f=gdb/NEWS;hb=gdb-12.1-release


I just noticed that gdb-13.1 was released 2 days ago (Feb 19, 2023) .

It seems like a good candidate to be included in the 4.2 release.

$ git diff gdb-12-branch  gdb-13-branch gdb | diffstat | tail -1
 6222 files changed, 142614 insertions(+), 63875 deletions(-)

and  notes linked below.

Khem,

Are you working on that or should someone else start on it?

../Randy


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

https://www.sourceware.org/gdb/



Signed-off-by: Khem Raj
---
  meta/conf/distro/include/tcmode-default.inc|  2 +-
  ...canadian_11.2.bb => gdb-cross-canadian_12.1.bb} |  0
  .../gdb/{gdb-cross_11.2.bb => gdb-cross_12.1.bb}   |  0
  meta/recipes-devtools/gdb/gdb.inc  | 14 +++---
  ...0001-make-man-install-relative-to-DESTDIR.patch | 10 +-
  ...s-linux-nat-Define-_ABIO32-if-not-defined.patch |  8 
  ...Define-pt_regs-uapi_pt_regs-on-GLIBC-syst.patch | 11 +--
  ...-libreadline.a-when-using-disable-static.patch} | 14 +++---
  ...gidefs.h.patch => 0005-use-asm-sgidefs.h.patch} |  8 
  ...AGS.patch => 0006-Change-order-of-CFLAGS.patch} | 10 +-
  ...> 0007-resolve-restrict-keyword-conflict.patch} |  6 +++---
  ...tch => 0008-Fix-invalid-sigprocmask-call.patch} |  8 
  patch => 0009-gdbserver-ctrl-c-handling.patch} | 10 +-
  .../gdb/{gdb_11.2.bb => gdb_12.1.bb}   |  0
  14 files changed, 50 insertions(+), 51 deletions(-)
  rename meta/recipes-devtools/gdb/{gdb-cross-canadian_11.2.bb => 
gdb-cross-canadian_12.1.bb} (100%)
  rename meta/recipes-devtools/gdb/{gdb-cross_11.2.bb => gdb-cross_12.1.bb} 
(100%)
  rename 
meta/recipes-devtools/gdb/gdb/{0005-Dont-disable-libreadline.a-when-using-disable-static.patch
 => 0004-Dont-disable-libreadline.a-when-using-disable-static.patch} (80%)
  rename meta/recipes-devtools/gdb/gdb/{0006-use-asm-sgidefs.h.patch => 
0005-use-asm-sgidefs.h.patch} (84%)
  rename meta/recipes-devtools/gdb/gdb/{0007-Change-order-of-CFLAGS.patch => 
0006-Change-order-of-CFLAGS.patch} (80%)
  rename 
meta/recipes-devtools/gdb/gdb/{0008-resolve-restrict-keyword-conflict.patch => 
0007-resolve-restrict-keyword-conflict.patch} (93%)
  rename meta/recipes-devtools/gdb/gdb/{0009-Fix-invalid-sigprocmask-call.patch 
=> 0008-Fix-invalid-sigprocmask-call.patch} (90%)
  rename meta/recipes-devtools/gdb/gdb/{0010-gdbserver-ctrl-c-handling.patch => 
0009-gdbserver-ctrl-c-handling.patch} (82%)
  rename meta/recipes-devtools/gdb/{gdb_11.2.bb => gdb_12.1.bb} (100%)

diff --git a/meta/conf/distro/include/tcmode-default.inc 
b/meta/conf/distro/include/tcmode-default.inc
index 9660f2804a7..1179ba172ff 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"
  GCCVERSION ?= "12.%"
  SDKGCCVERSION ?= "${GCCVERSION}"
  BINUVERSION ?= "2.38%"
-GDBVERSION ?= "11.%"
+GDBVERSION ?= "12.%"
  GLIBCVERSION ?= "2.35"
  LINUXLIBCVERSION ?= "5.16%"
  QEMUVERSION ?= "7.0%"
diff --git a/meta/recipes-devtools/gdb/gdb-cross-canadian_11.2.bb 
b/meta/recipes-devtools/gdb/gdb-cross-canadian_12.1.bb
similarity index 100%
rename from meta/recipes-devtools/gdb/gdb-cross-canadian_11.2.bb
rename to meta/recipes-devtools/gdb/gdb-cross-canadian_12.1.bb
diff --git a/meta/recipes-devtools/gdb/gdb-cross_11.2.bb 
b/meta/recipes-devtools/gdb/gdb-cross_12.1.bb
similarity index 100%
rename from meta/recipes-devtools/gdb/gdb-cross_11.2.bb
rename to meta/recipes-devtools/gdb/gdb-cross_12.1.bb
diff --git a/meta/recipes-devtools/gdb/gdb.inc 
b/meta/recipes-devtools/gdb/gdb.inc
index 649ee287276..3b569fd40e7 100644
--- a/meta/recipes-devtools/gdb/gdb.inc
+++ b/meta/recipes-devtools/gdb/gdb.inc
@@ -8,11 +8,11 @@ SRC_URI = "${GNU_MIRROR}/gdb/gdb-${PV}.tar.xz \
 file://0001-make-man-install-relative-to-DESTDIR.patch  \
 file://0002-mips-linux-nat-Define-_ABIO32-if-not-defined.patch  \
 
file://0003-ppc-ptrace-Define-pt_regs-uapi_pt_regs-on-GLIBC-syst.patch  \
-file://0005-Dont-disable-libreadline.a-when-using-disable-static.patch  \
-file://0006-use-asm-sgidefs.h.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  \
+file://0004-Dont-disable-libreadline.a-when-using-disable-static.patch  \
+file://0005-use-asm-sgidefs.h.patch  \
+file://0006-Change-order-of-CFLAGS.patch  \
+file://0007-resolve-restrict-keyword-conflict.patch  \
+file://0008-Fix-invalid-sigprocmask-call.patch  \
+file://0009-gdbserver-ctrl-c-handling.patch  \
 "
-SRC_URI[sha256sum] =