[gentoo-commits] repo/gentoo:master commit in: dev-debug/gdb/

2024-06-01 Thread Sam James
commit: 6ca5c05218aebc2add4f0d690c03baf876cf40be
Author: Sam James  gentoo  org>
AuthorDate: Sat Jun  1 23:50:15 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Sat Jun  1 23:50:15 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6ca5c052

dev-debug/gdb: add 15.0.91 (unkeyworded)

Signed-off-by: Sam James  gentoo.org>

 dev-debug/gdb/Manifest   |   1 +
 dev-debug/gdb/gdb-15.0.91.ebuild | 322 +++
 2 files changed, 323 insertions(+)

diff --git a/dev-debug/gdb/Manifest b/dev-debug/gdb/Manifest
index f07f85a7ddba..90feed16c7be 100644
--- a/dev-debug/gdb/Manifest
+++ b/dev-debug/gdb/Manifest
@@ -1,2 +1,3 @@
 DIST gdb-14.2-sim-modern-c99.patch.xz 5348 BLAKE2B 
f8039cdf1b49d12eead0dae7db88dbfad4c47eda696ee26b0bd140605d1d62d4a88557518d4e18c86fffb3c6194782d16e459f4392df71d2ec1af271ccb2838d
 SHA512 
f44239871c584f5d6de98db8d6a6766103a8a6fc92dada7d37f04bdc53efe635cca7dfaa778d620348559814f4784a33e5f72a8dd376dc96fba8ec27032ab389
 DIST gdb-14.2.tar.xz 24111936 BLAKE2B 
65765dfd1ed08e19bb881fc7ae98d6ee4914f38a9a2bb0d0ca73bef472669664f807fe9c04e8dffd7025be98e736ac52f88ff5851ceddbb01a361885b18befc8
 SHA512 
7e07941f1fe661288cc571b4964012ceabc1760624fce20320db2f470c01439b2386f859b5288da13204b758e2e3b22a74c68c012178db93b9529b06f1e22ede
+DIST gdb-15.0.91.tar.xz 24278716 BLAKE2B 
8fbbabf40472e6414ef180a9a072db5fa12c9663e723f763c5ebc9583d160d0ca3dc5910e043dba8b12a494a12c202ad095e36e0a0ea2ba1e8e548c3ba1e5221
 SHA512 
a946b5a074cec93b06b175276c55614b306cfcabb1f467dc0c2f60085cb6853c6d62511a9570ae9ea778c05bad245d8e6e17b15a29b85d48e60d9c8a72086e2e

diff --git a/dev-debug/gdb/gdb-15.0.91.ebuild b/dev-debug/gdb/gdb-15.0.91.ebuild
new file mode 100644
index ..541bf7f8915a
--- /dev/null
+++ b/dev-debug/gdb/gdb-15.0.91.ebuild
@@ -0,0 +1,322 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+# See https://sourceware.org/gdb/wiki/DistroAdvice for general packaging
+# tips & notes.
+
+PYTHON_COMPAT=( python3_{10..12} )
+inherit flag-o-matic python-single-r1 strip-linguas toolchain-funcs
+
+export CTARGET=${CTARGET:-${CHOST}}
+
+if [[ ${CTARGET} == ${CHOST} ]] ; then
+   if [[ ${CATEGORY} == cross-* ]] ; then
+   export CTARGET=${CATEGORY#cross-}
+   fi
+fi
+
+is_cross() { [[ ${CHOST} != ${CTARGET} ]] ; }
+
+case ${PV} in
+   *)
+   # live git tree
+   EGIT_REPO_URI="https://sourceware.org/git/binutils-gdb.git;
+   inherit git-r3
+   SRC_URI=""
+   ;;
+   *.*.50_p2???|*.*.90_p2???)
+   # Weekly snapshots
+   MY_PV="${PV/_p/.}"
+   SRC_URI="
+   
https://sourceware.org/pub/gdb/snapshots/branch/gdb-weekly-${MY_PV}.tar.xz
+   
https://sourceware.org/pub/gdb/snapshots/current/gdb-weekly-${MY_PV}.tar.xz
+   
https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/gdb-weekly-${MY_PV}.tar.xz
+   "
+   S="${WORKDIR}/${PN}-${MY_PV}"
+
+   # e.g. 13.1.90_p20230325 is a snapshot on the stable branch, so 
it's fine
+   if [[ ${PV} == *.[123456789].9?_p2??? ]] ; then
+   REGULAR_RELEASE=1
+   fi
+   ;;
+   *.*.9?)
+   # Prereleases
+   MY_PV="${PV/_p/.}"
+   SRC_URI="
+   
https://sourceware.org/pub/gdb/snapshots/branch/gdb-${MY_PV}.tar.xz
+   
https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/gdb-${MY_PV}.tar.xz
+   "
+   S="${WORKDIR}/${PN}-${MY_PV}"
+   ;;
+   *)
+   # Normal upstream release
+   SRC_URI="
+   mirror://gnu/gdb/${P}.tar.xz
+   https://sourceware.org/pub/gdb/releases/${P}.tar.xz
+   "
+
+   REGULAR_RELEASE=1
+esac
+
+PATCH_DEV=""
+PATCH_VER=""
+DESCRIPTION="GNU debugger"
+HOMEPAGE="https://sourceware.org/gdb/;
+SRC_URI="
+   ${SRC_URI}
+   
${PATCH_DEV:+https://dev.gentoo.org/~${PATCH_DEV}/distfiles/${CATEGORY}/${PN}/${P}-patches-${PATCH_VER}.tar.xz}
+   ${PATCH_VER:+mirror://gentoo/${P}-patches-${PATCH_VER}.tar.xz}
+"
+
+LICENSE="GPL-3+ LGPL-2.1+"
+SLOT="0"
+IUSE="cet debuginfod guile lzma multitarget nls +python +server sim 
source-highlight test vanilla xml xxhash zstd"
+if [[ -n ${REGULAR_RELEASE} ]] ; then
+   KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc 
~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris"
+fi
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+   dev-libs/mpfr:=
+   dev-libs/gmp:=
+   >=sys-libs/ncurses-5.2-r2:=
+   >=sys-libs/readline-7:=
+   sys-libs/zlib
+   elibc_glibc? ( net-libs/libnsl:= )
+   

[gentoo-commits] repo/gentoo:master commit in: dev-debug/gdb/files/

2024-05-24 Thread Conrad Kostecki
commit: 08c5262b636f1cc983089ba332470e6256e9e8ea
Author: Michael Mair-Keimberger  levelnine  at>
AuthorDate: Sun May 19 10:51:13 2024 +
Commit: Conrad Kostecki  gentoo  org>
CommitDate: Fri May 24 23:35:14 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=08c5262b

dev-debug/gdb: remove unused patches

Signed-off-by: Michael Mair-Keimberger  levelnine.at>
Signed-off-by: Conrad Kostecki  gentoo.org>

 .../files/gdb-14.1-fix-dll-export-forwarding.patch |  60 
 .../gdb/files/gdb-14.1-fix-list-segfault.patch | 101 ---
 .../gdb-14.1-fix-print-global-variable-stubs.patch | 109 -
 3 files changed, 270 deletions(-)

diff --git a/dev-debug/gdb/files/gdb-14.1-fix-dll-export-forwarding.patch 
b/dev-debug/gdb/files/gdb-14.1-fix-dll-export-forwarding.patch
deleted file mode 100644
index 8c2a49f8042f..
--- a/dev-debug/gdb/files/gdb-14.1-fix-dll-export-forwarding.patch
+++ /dev/null
@@ -1,60 +0,0 @@
-Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=31112
-
-From 
https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff;h=43a608adb04251be8999304cf724f55b2d840ac3
-From: Hannes Domani 
-Date: Wed, 6 Dec 2023 20:52:06 +0100
-Subject: [PATCH] Fix DLL export forwarding
-
-I noticed it when I was trying to set a breakpoint at ExitProcess:
-```
-(gdb) b ExitProcess
-Breakpoint 1 at 0x14001fdd0
-(gdb) r
-Starting program: C:\qiewer\heob\heob64.exe
-Warning:
-Cannot insert breakpoint 1.
-Cannot access memory at address 0x3dbf4120
-Cannot insert breakpoint 1.
-Cannot access memory at address 0x77644120
-```
-
-The problem doesn't exist in gdb 13.2, and the difference can easily be
-seen when printing ExitProcess.
-gdb 14.1:
-```
-(gdb) p ExitProcess
-$1 = {} 0x77644120 
-```
-gdb 13.2:
-```
-(gdb) p ExitProcess
-$1 = {} 0x77734120 
-```
-
-The new behavior started with 9675da25357c7a3f472731ddc6eb3becc65b469a,
-where VMA was then calculated relative to FORWARD_DLL_NAME, while it was
-relative to DLL_NAME before.
-
-Fixed by calculating VMA relative to DLL_NAME again.
-
-Bug: https://sourceware.org/PR31112
-Approved-By: Tom Tromey 
-
-(cherry picked from commit 2574cd903dd84e7081506e24c2e232ecda11a736)
 a/gdb/coff-pe-read.c
-+++ b/gdb/coff-pe-read.c
-@@ -210,7 +210,10 @@ add_pe_forwarded_sym (minimal_symbol_reader ,
- " \"%s\" in dll \"%s\", pointing to \"%s\"\n"),
-   sym_name, dll_name, forward_qualified_name.c_str ());
- 
--  unrelocated_addr vma = msymbol.minsym->unrelocated_address ();
-+  /* Calculate VMA as if it were relative to DLL_NAME/OBJFILE, even though
-+ it actually points inside another dll (FORWARD_DLL_NAME).  */
-+  unrelocated_addr vma = unrelocated_addr (msymbol.value_address ()
-+ - objfile->text_section_offset ());
-   msymtype = msymbol.minsym->type ();
-   section = msymbol.minsym->section_index ();
- 
--- 
-2.39.3
-

diff --git a/dev-debug/gdb/files/gdb-14.1-fix-list-segfault.patch 
b/dev-debug/gdb/files/gdb-14.1-fix-list-segfault.patch
deleted file mode 100644
index 76557b5a7e00..
--- a/dev-debug/gdb/files/gdb-14.1-fix-list-segfault.patch
+++ /dev/null
@@ -1,101 +0,0 @@
-Bug: https://bugs.gentoo.org/922336
-Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=31256
-
-From 
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=0068bd6fb3579dd8df7561e038cb3fe27f122b0e
-From: Guinevere Larsen 
-To: gdb-patc...@sourceware.org
-Cc: Guinevere Larsen 
-Subject: [PATCH] gdb: fix "list ." related crash
-Date: Tue, 23 Jan 2024 11:50:43 +0100
-
-When a user attempts to use the "list ." command with an inferior that
-doesn't have debug symbols, GDB would crash. This was reported as PR
-gdb/31256.
-
-The crash would happen when attempting to get the current symtab_and_line
-for the stop location, because the symtab would return a null pointer
-and we'd attempt to dereference it to print the line.
-
-This commit fixes that by checking for an empty symtab and erroring out
-of the function if it happens.
-
-Bug: https://sourceware.org/PR31256
 a/gdb/cli/cli-cmds.c
-+++ b/gdb/cli/cli-cmds.c
-@@ -1291,6 +1291,8 @@ list_command (const char *arg, int from_tty)
- set_default_source_symtab_and_line ();
- cursal = get_current_source_symtab_and_line ();
-   }
-+if (cursal.symtab == nullptr)
-+  error (_("No debug information available to print source lines."));
- list_around_line (arg, cursal);
- /* Set the repeat args so just pressing "enter" after using "list ."
-will print the following lines instead of the same lines again. */
 /dev/null
-+++ b/gdb/testsuite/gdb.base/list-nodebug.c
-@@ -0,0 +1,21 @@
-+/* This testcase is part of GDB, the GNU debugger.
-+
-+   Copyright 2024 Free Software Foundation, Inc.
-+
-+   This program is free software; you can redistribute it and/or modify
-+   it under the terms of the GNU General Public 

[gentoo-commits] repo/gentoo:master commit in: dev-debug/gdb/files/, dev-debug/gdb/

2024-05-22 Thread Sam James
commit: d6047265f563e8ba4deca92eb583eb0eb33ffcf9
Author: Sam James  gentoo  org>
AuthorDate: Wed May 22 19:23:01 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Wed May 22 19:23:01 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d6047265

dev-debug/gdb: move c99 patch to devspace

Signed-off-by: Sam James  gentoo.org>

 dev-debug/gdb/Manifest|   1 +
 dev-debug/gdb/files/gdb-14.2-sim-modern-c99.patch | 765 --
 dev-debug/gdb/gdb-14.2-r1.ebuild  |   6 +-
 3 files changed, 4 insertions(+), 768 deletions(-)

diff --git a/dev-debug/gdb/Manifest b/dev-debug/gdb/Manifest
index 81b93c4c69ae..f07f85a7ddba 100644
--- a/dev-debug/gdb/Manifest
+++ b/dev-debug/gdb/Manifest
@@ -1 +1,2 @@
+DIST gdb-14.2-sim-modern-c99.patch.xz 5348 BLAKE2B 
f8039cdf1b49d12eead0dae7db88dbfad4c47eda696ee26b0bd140605d1d62d4a88557518d4e18c86fffb3c6194782d16e459f4392df71d2ec1af271ccb2838d
 SHA512 
f44239871c584f5d6de98db8d6a6766103a8a6fc92dada7d37f04bdc53efe635cca7dfaa778d620348559814f4784a33e5f72a8dd376dc96fba8ec27032ab389
 DIST gdb-14.2.tar.xz 24111936 BLAKE2B 
65765dfd1ed08e19bb881fc7ae98d6ee4914f38a9a2bb0d0ca73bef472669664f807fe9c04e8dffd7025be98e736ac52f88ff5851ceddbb01a361885b18befc8
 SHA512 
7e07941f1fe661288cc571b4964012ceabc1760624fce20320db2f470c01439b2386f859b5288da13204b758e2e3b22a74c68c012178db93b9529b06f1e22ede

diff --git a/dev-debug/gdb/files/gdb-14.2-sim-modern-c99.patch 
b/dev-debug/gdb/files/gdb-14.2-sim-modern-c99.patch
deleted file mode 100644
index d453785b22f9..
--- a/dev-debug/gdb/files/gdb-14.2-sim-modern-c99.patch
+++ /dev/null
@@ -1,765 +0,0 @@
-https://bugs.gentoo.org/871543
-https://bugs.gentoo.org/919121
-
-From 62695d59e35f1d199a6fc5ddd6f4e4fbd347a016 Mon Sep 17 00:00:00 2001
-From: Mike Frysinger 
-Date: Thu, 7 Dec 2023 06:22:32 -0700
-Subject: [PATCH 1/6] sim: m32r: add more cgen prototypes to enable -Werror in
- most files
-
-(cherry picked from commit 5e43a46efc48eeb4951f498b227aee5eb71c137b)

- sim/Makefile.in | 11 ---
- sim/m32r/local.mk   | 11 ---
- sim/m32r/m32r-sim.h | 29 +++--
- 3 files changed, 27 insertions(+), 24 deletions(-)
-
-diff --git a/sim/Makefile.in b/sim/Makefile.in
-index 3dd14543450..00b5c2b91fa 100644
 a/sim/Makefile.in
-+++ b/sim/Makefile.in
-@@ -2471,17 +2471,6 @@ testsuite_common_CPPFLAGS = \
- # opc2c leaks memory, and therefore makes AddressSanitizer unhappy.  Disable
- # leak detection while running it.
- @SIM_ENABLE_ARCH_m32c_TRUE@m32c_OPC2C_RUN = ASAN_OPTIONS=detect_leaks=0 
m32c/opc2c$(EXEEXT)
--@SIM_ENABLE_ARCH_m32r_TRUE@AM_CFLAGS_m32r_cpu.o = -Wno-error
--@SIM_ENABLE_ARCH_m32r_TRUE@AM_CFLAGS_m32r_cpu2.o = -Wno-error
--@SIM_ENABLE_ARCH_m32r_TRUE@AM_CFLAGS_m32r_cpux.o = -Wno-error
--@SIM_ENABLE_ARCH_m32r_TRUE@AM_CFLAGS_m32r_m32r.o = -Wno-error
--@SIM_ENABLE_ARCH_m32r_TRUE@AM_CFLAGS_m32r_m32r2.o = -Wno-error
--@SIM_ENABLE_ARCH_m32r_TRUE@AM_CFLAGS_m32r_m32rx.o = -Wno-error
--@SIM_ENABLE_ARCH_m32r_TRUE@AM_CFLAGS_m32r_mloop.o = -Wno-error
--@SIM_ENABLE_ARCH_m32r_TRUE@AM_CFLAGS_m32r_mloop2.o = -Wno-error
--@SIM_ENABLE_ARCH_m32r_TRUE@AM_CFLAGS_m32r_mloopx.o = -Wno-error
--@SIM_ENABLE_ARCH_m32r_TRUE@AM_CFLAGS_m32r_sem.o = -Wno-error
--@SIM_ENABLE_ARCH_m32r_TRUE@AM_CFLAGS_m32r_sim_if.o = -Wno-error
- @SIM_ENABLE_ARCH_m32r_TRUE@AM_CFLAGS_m32r_traps.o = -Wno-error
- @SIM_ENABLE_ARCH_m32r_TRUE@nodist_m32r_libsim_a_SOURCES = \
- @SIM_ENABLE_ARCH_m32r_TRUE@   m32r/modules.c
-diff --git a/sim/m32r/local.mk b/sim/m32r/local.mk
-index db545675321..182d8879b43 100644
 a/sim/m32r/local.mk
-+++ b/sim/m32r/local.mk
-@@ -17,17 +17,6 @@
- ## along with this program.  If not, see .
- 
- ## Some modules don't build cleanly yet.
--AM_CFLAGS_%C%_cpu.o = -Wno-error
--AM_CFLAGS_%C%_cpu2.o = -Wno-error
--AM_CFLAGS_%C%_cpux.o = -Wno-error
--AM_CFLAGS_%C%_m32r.o = -Wno-error
--AM_CFLAGS_%C%_m32r2.o = -Wno-error
--AM_CFLAGS_%C%_m32rx.o = -Wno-error
--AM_CFLAGS_%C%_mloop.o = -Wno-error
--AM_CFLAGS_%C%_mloop2.o = -Wno-error
--AM_CFLAGS_%C%_mloopx.o = -Wno-error
--AM_CFLAGS_%C%_sem.o = -Wno-error
--AM_CFLAGS_%C%_sim_if.o = -Wno-error
- AM_CFLAGS_%C%_traps.o = -Wno-error
- 
- nodist_%C%_libsim_a_SOURCES = \
-diff --git a/sim/m32r/m32r-sim.h b/sim/m32r/m32r-sim.h
-index 0e1bf82ace5..c72be52e18a 100644
 a/sim/m32r/m32r-sim.h
-+++ b/sim/m32r/m32r-sim.h
-@@ -39,24 +39,42 @@
- 
- extern int m32r_decode_gdb_ctrl_regnum (int);
- 
-+/* The other cpu cores reuse m32rbf funcs to avoid duplication, but they don't
-+   provide externs to access, and we can't e.g. include decode.h in decodex.h
-+   because of all the redefinitions of cgen macros.  */
-+
-+extern void m32rbf_model_insn_before (SIM_CPU *, int);
-+extern void m32rbf_model_insn_after (SIM_CPU *, int, int);
-+extern CPUREG_FETCH_FN m32rbf_fetch_register;
-+extern CPUREG_STORE_FN m32rbf_store_register;
-+extern void m32rbf_h_cr_set (SIM_CPU *, UINT, USI);

[gentoo-commits] repo/gentoo:master commit in: dev-debug/gdb/files/, dev-debug/gdb/

2024-05-22 Thread Sam James
commit: 6da14c98d133e6bf72d8a90b08ad798ca29e4ff3
Author: Gabi Falk  gmx  com>
AuthorDate: Fri May 17 19:30:00 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Wed May 22 19:19:31 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6da14c98

dev-debug/gdb: fix modern C issues

Closes: https://bugs.gentoo.org/871543
Closes: https://bugs.gentoo.org/919121
Signed-off-by: Gabi Falk  gmx.com>
Closes: https://github.com/gentoo/gentoo/pull/36726
Signed-off-by: Sam James  gentoo.org>

 dev-debug/gdb/files/gdb-14.2-sim-modern-c99.patch | 765 ++
 dev-debug/gdb/gdb-14.2-r1.ebuild  | 323 +
 2 files changed, 1088 insertions(+)

diff --git a/dev-debug/gdb/files/gdb-14.2-sim-modern-c99.patch 
b/dev-debug/gdb/files/gdb-14.2-sim-modern-c99.patch
new file mode 100644
index ..d453785b22f9
--- /dev/null
+++ b/dev-debug/gdb/files/gdb-14.2-sim-modern-c99.patch
@@ -0,0 +1,765 @@
+https://bugs.gentoo.org/871543
+https://bugs.gentoo.org/919121
+
+From 62695d59e35f1d199a6fc5ddd6f4e4fbd347a016 Mon Sep 17 00:00:00 2001
+From: Mike Frysinger 
+Date: Thu, 7 Dec 2023 06:22:32 -0700
+Subject: [PATCH 1/6] sim: m32r: add more cgen prototypes to enable -Werror in
+ most files
+
+(cherry picked from commit 5e43a46efc48eeb4951f498b227aee5eb71c137b)
+---
+ sim/Makefile.in | 11 ---
+ sim/m32r/local.mk   | 11 ---
+ sim/m32r/m32r-sim.h | 29 +++--
+ 3 files changed, 27 insertions(+), 24 deletions(-)
+
+diff --git a/sim/Makefile.in b/sim/Makefile.in
+index 3dd14543450..00b5c2b91fa 100644
+--- a/sim/Makefile.in
 b/sim/Makefile.in
+@@ -2471,17 +2471,6 @@ testsuite_common_CPPFLAGS = \
+ # opc2c leaks memory, and therefore makes AddressSanitizer unhappy.  Disable
+ # leak detection while running it.
+ @SIM_ENABLE_ARCH_m32c_TRUE@m32c_OPC2C_RUN = ASAN_OPTIONS=detect_leaks=0 
m32c/opc2c$(EXEEXT)
+-@SIM_ENABLE_ARCH_m32r_TRUE@AM_CFLAGS_m32r_cpu.o = -Wno-error
+-@SIM_ENABLE_ARCH_m32r_TRUE@AM_CFLAGS_m32r_cpu2.o = -Wno-error
+-@SIM_ENABLE_ARCH_m32r_TRUE@AM_CFLAGS_m32r_cpux.o = -Wno-error
+-@SIM_ENABLE_ARCH_m32r_TRUE@AM_CFLAGS_m32r_m32r.o = -Wno-error
+-@SIM_ENABLE_ARCH_m32r_TRUE@AM_CFLAGS_m32r_m32r2.o = -Wno-error
+-@SIM_ENABLE_ARCH_m32r_TRUE@AM_CFLAGS_m32r_m32rx.o = -Wno-error
+-@SIM_ENABLE_ARCH_m32r_TRUE@AM_CFLAGS_m32r_mloop.o = -Wno-error
+-@SIM_ENABLE_ARCH_m32r_TRUE@AM_CFLAGS_m32r_mloop2.o = -Wno-error
+-@SIM_ENABLE_ARCH_m32r_TRUE@AM_CFLAGS_m32r_mloopx.o = -Wno-error
+-@SIM_ENABLE_ARCH_m32r_TRUE@AM_CFLAGS_m32r_sem.o = -Wno-error
+-@SIM_ENABLE_ARCH_m32r_TRUE@AM_CFLAGS_m32r_sim_if.o = -Wno-error
+ @SIM_ENABLE_ARCH_m32r_TRUE@AM_CFLAGS_m32r_traps.o = -Wno-error
+ @SIM_ENABLE_ARCH_m32r_TRUE@nodist_m32r_libsim_a_SOURCES = \
+ @SIM_ENABLE_ARCH_m32r_TRUE@   m32r/modules.c
+diff --git a/sim/m32r/local.mk b/sim/m32r/local.mk
+index db545675321..182d8879b43 100644
+--- a/sim/m32r/local.mk
 b/sim/m32r/local.mk
+@@ -17,17 +17,6 @@
+ ## along with this program.  If not, see .
+ 
+ ## Some modules don't build cleanly yet.
+-AM_CFLAGS_%C%_cpu.o = -Wno-error
+-AM_CFLAGS_%C%_cpu2.o = -Wno-error
+-AM_CFLAGS_%C%_cpux.o = -Wno-error
+-AM_CFLAGS_%C%_m32r.o = -Wno-error
+-AM_CFLAGS_%C%_m32r2.o = -Wno-error
+-AM_CFLAGS_%C%_m32rx.o = -Wno-error
+-AM_CFLAGS_%C%_mloop.o = -Wno-error
+-AM_CFLAGS_%C%_mloop2.o = -Wno-error
+-AM_CFLAGS_%C%_mloopx.o = -Wno-error
+-AM_CFLAGS_%C%_sem.o = -Wno-error
+-AM_CFLAGS_%C%_sim_if.o = -Wno-error
+ AM_CFLAGS_%C%_traps.o = -Wno-error
+ 
+ nodist_%C%_libsim_a_SOURCES = \
+diff --git a/sim/m32r/m32r-sim.h b/sim/m32r/m32r-sim.h
+index 0e1bf82ace5..c72be52e18a 100644
+--- a/sim/m32r/m32r-sim.h
 b/sim/m32r/m32r-sim.h
+@@ -39,24 +39,42 @@
+ 
+ extern int m32r_decode_gdb_ctrl_regnum (int);
+ 
++/* The other cpu cores reuse m32rbf funcs to avoid duplication, but they don't
++   provide externs to access, and we can't e.g. include decode.h in decodex.h
++   because of all the redefinitions of cgen macros.  */
++
++extern void m32rbf_model_insn_before (SIM_CPU *, int);
++extern void m32rbf_model_insn_after (SIM_CPU *, int, int);
++extern CPUREG_FETCH_FN m32rbf_fetch_register;
++extern CPUREG_STORE_FN m32rbf_store_register;
++extern void m32rbf_h_cr_set (SIM_CPU *, UINT, USI);
++
+ /* Cover macros for hardware accesses.
+FIXME: Eventually move to cgen.  */
+ #define GET_H_SM() ((CPU (h_psw) & 0x80) != 0)
+ 
+-#ifndef GET_H_CR
+ extern USI  m32rbf_h_cr_get_handler (SIM_CPU *, UINT);
+ extern void m32rbf_h_cr_set_handler (SIM_CPU *, UINT, USI);
++extern USI  m32r2f_h_cr_get_handler (SIM_CPU *, UINT);
++extern void m32r2f_h_cr_set_handler (SIM_CPU *, UINT, USI);
++extern USI  m32rxf_h_cr_get_handler (SIM_CPU *, UINT);
++extern void m32rxf_h_cr_set_handler (SIM_CPU *, UINT, USI);
+ 
++#ifndef GET_H_CR
+ #define GET_H_CR(regno) \
+   XCONCAT2 (WANT_CPU,_h_cr_get_handler) (current_cpu, (regno))
+ #define SET_H_CR(regno, val) \
+   XCONCAT2 (WANT_CPU,_h_cr_set_handler) (current_cpu, 

[gentoo-commits] repo/gentoo:master commit in: dev-debug/gdb/, dev-debug/gdb/files/

2024-05-18 Thread Sam James
commit: da661632dfc75ef84447f412afa96588e23f0f81
Author: Sam James  gentoo  org>
AuthorDate: Sat May 18 17:04:15 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Sat May 18 17:05:38 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=da661632

dev-debug/gdb: drop 13.2-r2, 14.1-r1

Signed-off-by: Sam James  gentoo.org>

 dev-debug/gdb/Manifest |   2 -
 .../gdb/files/gdb-13.2-fix-sparc-debugging.patch   | 126 
 dev-debug/gdb/gdb-13.2-r2.ebuild   | 314 
 dev-debug/gdb/gdb-14.1-r1.ebuild   | 325 -
 4 files changed, 767 deletions(-)

diff --git a/dev-debug/gdb/Manifest b/dev-debug/gdb/Manifest
index bc28a63793c7..81b93c4c69ae 100644
--- a/dev-debug/gdb/Manifest
+++ b/dev-debug/gdb/Manifest
@@ -1,3 +1 @@
-DIST gdb-13.2.tar.xz 23664644 BLAKE2B 
bf5216ba2286448a46f9e0a405367c5a678e6d7540204722d355b618018b7b75a2ebc5b51353304c5ded02a3979223a81781d305f5afa5be82516cdc2863d49f
 SHA512 
8185d3e11ab60dafff5860a5016577bfe7dd7547ef01ebc867bc247603d82b74ff74c4f29492c7d2aee57076f52be33e289f4c6b414a4b870d4b3004909f4c34
-DIST gdb-14.1.tar.xz 24108624 BLAKE2B 
52a07b4745f95561f360a597d6ec1d212dafc8e9134dc415cd7bcfb02c26934a60807c8400b545a756c68392e16e104178cdc1464430c53611973881e921a942
 SHA512 
575e198105076fc4a88f68591aa114ab9c1196e84386a3f7b9b58fe5f30cdeed33f6a5f957b68f08c47284ec922bb60c964627e238471419673fd913575ce427
 DIST gdb-14.2.tar.xz 24111936 BLAKE2B 
65765dfd1ed08e19bb881fc7ae98d6ee4914f38a9a2bb0d0ca73bef472669664f807fe9c04e8dffd7025be98e736ac52f88ff5851ceddbb01a361885b18befc8
 SHA512 
7e07941f1fe661288cc571b4964012ceabc1760624fce20320db2f470c01439b2386f859b5288da13204b758e2e3b22a74c68c012178db93b9529b06f1e22ede

diff --git a/dev-debug/gdb/files/gdb-13.2-fix-sparc-debugging.patch 
b/dev-debug/gdb/files/gdb-13.2-fix-sparc-debugging.patch
deleted file mode 100644
index 3d5201cd94e3..
--- a/dev-debug/gdb/files/gdb-13.2-fix-sparc-debugging.patch
+++ /dev/null
@@ -1,126 +0,0 @@
-https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=31a56a22c45d76df4c597439f337e3f75ac3065c
-https://sourceware.org/bugzilla/show_bug.cgi?id=30525
-https://bugs.gentoo.org/907906
-
-From 31a56a22c45d76df4c597439f337e3f75ac3065c Mon Sep 17 00:00:00 2001
-From: Pedro Alves 
-Date: Wed, 7 Jun 2023 10:38:14 +0100
-Subject: [PATCH] Linux: Avoid pread64/pwrite64 for high memory addresses (PR
- gdb/30525)
-
-Since commit 05c06f318fd9 ("Linux: Access memory even if threads are
-running"), GDB prefers pread64/pwrite64 to access inferior memory
-instead of ptrace.  That change broke reading shared libraries on
-SPARC64 Linux, as reported by PR gdb/30525 ("gdb cannot read shared
-libraries on SPARC64").
-
-On SPARC64 Linux, surprisingly (to me), userspace shared libraries are
-mapped at high 64-bit addresses:
-
-   (gdb) info sharedlibrary
-   Cannot access memory at address 0xfff80001002011e0
-   Cannot access memory at address 0xfff80001002011d8
-   Cannot access memory at address 0xfff80001002011d8
-   FromTo  Syms Read   Shared Object Library
-   0xfff8000110a0  0xfff8000100021f80  Yes (*) /lib64/ld-linux.so.2
-   (*): Shared library is missing debugging information.
-
-Those addresses are 64-bit addresses with the high bits set.  When
-interpreted as signed, they're negative.
-
-The Linux kernel rejects pread64/pwrite64 if the offset argument of
-type off_t (a signed type) is negative, which happens if the memory
-address we're accessing has its high bit set.  See
-linux/fs/read_write.c sys_pread64 and sys_pwrite64 in Linux.
-
-Thankfully, lseek does not fail in that situation.  So the fix is to
-use the 'lseek + read|write' path if the offset would be negative.
-
-Fix this in both native GDB and GDBserver.
-
-Tested on a SPARC64 GNU/Linux and x86-64 GNU/Linux.
-
-Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=30525
-Change-Id: I79c724f918037ea67b7396fadb521bc9d1b10dc5
 a/gdb/linux-nat.c
-+++ b/gdb/linux-nat.c
-@@ -3909,18 +3909,26 @@ linux_proc_xfer_memory_partial_fd (int fd, int pid,
- 
-   gdb_assert (fd != -1);
- 
--  /* Use pread64/pwrite64 if available, since they save a syscall and can
-- handle 64-bit offsets even on 32-bit platforms (for instance, SPARC
-- debugging a SPARC64 application).  */
-+  /* Use pread64/pwrite64 if available, since they save a syscall and
-+ can handle 64-bit offsets even on 32-bit platforms (for instance,
-+ SPARC debugging a SPARC64 application).  But only use them if the
-+ offset isn't so high that when cast to off_t it'd be negative, as
-+ seen on SPARC64.  pread64/pwrite64 outright reject such offsets.
-+ lseek does not.  */
- #ifdef HAVE_PREAD64
--  ret = (readbuf ? pread64 (fd, readbuf, len, offset)
--   : pwrite64 (fd, writebuf, len, offset));
--#else
--  ret = lseek (fd, offset, SEEK_SET);
--  if (ret != -1)
--ret = (readbuf ? read (fd, readbuf, len)
--  

[gentoo-commits] repo/gentoo:master commit in: dev-debug/gdb/

2024-05-11 Thread Sam James
commit: 84a385d2ab0a8a9f48b7240cfddb6482539ab92c
Author: Rolf Eike Beer  sf-mail  de>
AuthorDate: Sat May 11 12:25:20 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Sat May 11 15:17:50 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=84a385d2

dev-debug/gdb: stable 14.2 for hppa, bug #930688

Signed-off-by: Rolf Eike Beer  sf-mail.de>
Signed-off-by: Sam James  gentoo.org>

 dev-debug/gdb/gdb-14.2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-debug/gdb/gdb-14.2.ebuild b/dev-debug/gdb/gdb-14.2.ebuild
index 2a82d9e78706..7f31a2c3d39a 100644
--- a/dev-debug/gdb/gdb-14.2.ebuild
+++ b/dev-debug/gdb/gdb-14.2.ebuild
@@ -74,7 +74,7 @@ LICENSE="GPL-3+ LGPL-2.1+"
 SLOT="0"
 IUSE="cet debuginfod guile lzma multitarget nls +python +server sim 
source-highlight test vanilla xml xxhash zstd"
 if [[ -n ${REGULAR_RELEASE} ]] ; then
-   KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ppc 
ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris"
+   KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc 
ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris"
 fi
 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
 RESTRICT="!test? ( test )"



[gentoo-commits] repo/gentoo:master commit in: dev-debug/gdb/

2024-04-25 Thread Sam James
commit: 3edf8365f1aa942b300e3017528d89a85d175dc4
Author: Sam James  gentoo  org>
AuthorDate: Thu Apr 25 23:09:50 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Apr 25 23:09:50 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3edf8365

dev-debug/gdb: Stabilize 14.2 amd64, #930688

Signed-off-by: Sam James  gentoo.org>

 dev-debug/gdb/gdb-14.2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-debug/gdb/gdb-14.2.ebuild b/dev-debug/gdb/gdb-14.2.ebuild
index 6987ea52c678..58f7b7c57ea7 100644
--- a/dev-debug/gdb/gdb-14.2.ebuild
+++ b/dev-debug/gdb/gdb-14.2.ebuild
@@ -74,7 +74,7 @@ LICENSE="GPL-3+ LGPL-2.1+"
 SLOT="0"
 IUSE="cet debuginfod guile lzma multitarget nls +python +server sim 
source-highlight test vanilla xml xxhash zstd"
 if [[ -n ${REGULAR_RELEASE} ]] ; then
-   KEYWORDS="~alpha ~amd64 arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ppc 
ppc64 ~riscv ~s390 sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris"
+   KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ppc 
ppc64 ~riscv ~s390 sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris"
 fi
 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
 RESTRICT="!test? ( test )"



[gentoo-commits] repo/gentoo:master commit in: dev-debug/gdb/

2024-04-25 Thread Sam James
commit: 8ed2fe475927ba2a7c73f5fcb2221dc573a6bbad
Author: Sam James  gentoo  org>
AuthorDate: Thu Apr 25 23:09:51 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Apr 25 23:09:51 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8ed2fe47

dev-debug/gdb: Stabilize 14.2 x86, #930688

Signed-off-by: Sam James  gentoo.org>

 dev-debug/gdb/gdb-14.2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-debug/gdb/gdb-14.2.ebuild b/dev-debug/gdb/gdb-14.2.ebuild
index 58f7b7c57ea7..2a82d9e78706 100644
--- a/dev-debug/gdb/gdb-14.2.ebuild
+++ b/dev-debug/gdb/gdb-14.2.ebuild
@@ -74,7 +74,7 @@ LICENSE="GPL-3+ LGPL-2.1+"
 SLOT="0"
 IUSE="cet debuginfod guile lzma multitarget nls +python +server sim 
source-highlight test vanilla xml xxhash zstd"
 if [[ -n ${REGULAR_RELEASE} ]] ; then
-   KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ppc 
ppc64 ~riscv ~s390 sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris"
+   KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ppc 
ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris"
 fi
 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
 RESTRICT="!test? ( test )"



[gentoo-commits] repo/gentoo:master commit in: dev-debug/gdb/

2024-04-25 Thread Sam James
commit: a66e0f3e89add94a91949d92b5914b512f3683b4
Author: Sam James  gentoo  org>
AuthorDate: Thu Apr 25 22:17:02 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Apr 25 22:17:02 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a66e0f3e

dev-debug/gdb: Stabilize 14.2 arm, #930688

Signed-off-by: Sam James  gentoo.org>

 dev-debug/gdb/gdb-14.2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-debug/gdb/gdb-14.2.ebuild b/dev-debug/gdb/gdb-14.2.ebuild
index 541bf7f8915a..a3fcca9dc3e2 100644
--- a/dev-debug/gdb/gdb-14.2.ebuild
+++ b/dev-debug/gdb/gdb-14.2.ebuild
@@ -74,7 +74,7 @@ LICENSE="GPL-3+ LGPL-2.1+"
 SLOT="0"
 IUSE="cet debuginfod guile lzma multitarget nls +python +server sim 
source-highlight test vanilla xml xxhash zstd"
 if [[ -n ${REGULAR_RELEASE} ]] ; then
-   KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc 
~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris"
+   KEYWORDS="~alpha ~amd64 arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc 
~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris"
 fi
 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
 RESTRICT="!test? ( test )"



[gentoo-commits] repo/gentoo:master commit in: dev-debug/gdb/

2024-04-25 Thread Sam James
commit: 5b18b888026813ad2eafda93b1de6e5397184d95
Author: Sam James  gentoo  org>
AuthorDate: Thu Apr 25 22:17:03 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Apr 25 22:17:03 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5b18b888

dev-debug/gdb: Stabilize 14.2 sparc, #930688

Signed-off-by: Sam James  gentoo.org>

 dev-debug/gdb/gdb-14.2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-debug/gdb/gdb-14.2.ebuild b/dev-debug/gdb/gdb-14.2.ebuild
index a3fcca9dc3e2..a7748bf33321 100644
--- a/dev-debug/gdb/gdb-14.2.ebuild
+++ b/dev-debug/gdb/gdb-14.2.ebuild
@@ -74,7 +74,7 @@ LICENSE="GPL-3+ LGPL-2.1+"
 SLOT="0"
 IUSE="cet debuginfod guile lzma multitarget nls +python +server sim 
source-highlight test vanilla xml xxhash zstd"
 if [[ -n ${REGULAR_RELEASE} ]] ; then
-   KEYWORDS="~alpha ~amd64 arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc 
~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris"
+   KEYWORDS="~alpha ~amd64 arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc 
~ppc64 ~riscv ~s390 sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris"
 fi
 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
 RESTRICT="!test? ( test )"



[gentoo-commits] repo/gentoo:master commit in: dev-debug/gdb/

2024-04-25 Thread Sam James
commit: a9bd4c501eb7d54e7199cdf5c339e00f42f5c427
Author: Sam James  gentoo  org>
AuthorDate: Thu Apr 25 22:17:08 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Apr 25 22:17:08 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a9bd4c50

dev-debug/gdb: Stabilize 14.2 ppc64, #930688

Signed-off-by: Sam James  gentoo.org>

 dev-debug/gdb/gdb-14.2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-debug/gdb/gdb-14.2.ebuild b/dev-debug/gdb/gdb-14.2.ebuild
index cafb8ff1b10c..6987ea52c678 100644
--- a/dev-debug/gdb/gdb-14.2.ebuild
+++ b/dev-debug/gdb/gdb-14.2.ebuild
@@ -74,7 +74,7 @@ LICENSE="GPL-3+ LGPL-2.1+"
 SLOT="0"
 IUSE="cet debuginfod guile lzma multitarget nls +python +server sim 
source-highlight test vanilla xml xxhash zstd"
 if [[ -n ${REGULAR_RELEASE} ]] ; then
-   KEYWORDS="~alpha ~amd64 arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ppc 
~ppc64 ~riscv ~s390 sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris"
+   KEYWORDS="~alpha ~amd64 arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ppc 
ppc64 ~riscv ~s390 sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris"
 fi
 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
 RESTRICT="!test? ( test )"



[gentoo-commits] repo/gentoo:master commit in: dev-debug/gdb/

2024-04-25 Thread Sam James
commit: 2ca8d237043e82d641be23ee7f8d637bfb323d17
Author: Sam James  gentoo  org>
AuthorDate: Thu Apr 25 22:17:07 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Apr 25 22:17:07 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2ca8d237

dev-debug/gdb: Stabilize 14.2 ppc, #930688

Signed-off-by: Sam James  gentoo.org>

 dev-debug/gdb/gdb-14.2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-debug/gdb/gdb-14.2.ebuild b/dev-debug/gdb/gdb-14.2.ebuild
index c1e66d2c4562..cafb8ff1b10c 100644
--- a/dev-debug/gdb/gdb-14.2.ebuild
+++ b/dev-debug/gdb/gdb-14.2.ebuild
@@ -74,7 +74,7 @@ LICENSE="GPL-3+ LGPL-2.1+"
 SLOT="0"
 IUSE="cet debuginfod guile lzma multitarget nls +python +server sim 
source-highlight test vanilla xml xxhash zstd"
 if [[ -n ${REGULAR_RELEASE} ]] ; then
-   KEYWORDS="~alpha ~amd64 arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc 
~ppc64 ~riscv ~s390 sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris"
+   KEYWORDS="~alpha ~amd64 arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ppc 
~ppc64 ~riscv ~s390 sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris"
 fi
 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
 RESTRICT="!test? ( test )"



[gentoo-commits] repo/gentoo:master commit in: dev-debug/gdb/

2024-04-25 Thread Sam James
commit: 5afa61f9924b4d4029fca482415405fe7fbfcd0a
Author: Sam James  gentoo  org>
AuthorDate: Thu Apr 25 22:17:05 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Apr 25 22:17:05 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5afa61f9

dev-debug/gdb: Stabilize 14.2 arm64, #930688

Signed-off-by: Sam James  gentoo.org>

 dev-debug/gdb/gdb-14.2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-debug/gdb/gdb-14.2.ebuild b/dev-debug/gdb/gdb-14.2.ebuild
index a7748bf33321..c1e66d2c4562 100644
--- a/dev-debug/gdb/gdb-14.2.ebuild
+++ b/dev-debug/gdb/gdb-14.2.ebuild
@@ -74,7 +74,7 @@ LICENSE="GPL-3+ LGPL-2.1+"
 SLOT="0"
 IUSE="cet debuginfod guile lzma multitarget nls +python +server sim 
source-highlight test vanilla xml xxhash zstd"
 if [[ -n ${REGULAR_RELEASE} ]] ; then
-   KEYWORDS="~alpha ~amd64 arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc 
~ppc64 ~riscv ~s390 sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris"
+   KEYWORDS="~alpha ~amd64 arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc 
~ppc64 ~riscv ~s390 sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris"
 fi
 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
 RESTRICT="!test? ( test )"



[gentoo-commits] repo/gentoo:master commit in: dev-debug/gdb/

2024-03-04 Thread Sam James
commit: 6b07ec12fe6e62df2df3455ebe7f66217065f817
Author: Sam James  gentoo  org>
AuthorDate: Mon Mar  4 10:15:15 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Mon Mar  4 10:23:39 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6b07ec12

dev-debug/gdb: drop 14.1

Signed-off-by: Sam James  gentoo.org>

 dev-debug/gdb/gdb-14.1.ebuild | 314 --
 1 file changed, 314 deletions(-)

diff --git a/dev-debug/gdb/gdb-14.1.ebuild b/dev-debug/gdb/gdb-14.1.ebuild
deleted file mode 100644
index 89469e978771..
--- a/dev-debug/gdb/gdb-14.1.ebuild
+++ /dev/null
@@ -1,314 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-# See https://sourceware.org/gdb/wiki/DistroAdvice for general packaging
-# tips & notes.
-
-PYTHON_COMPAT=( python3_{10..12} )
-inherit flag-o-matic python-single-r1 strip-linguas toolchain-funcs
-
-export CTARGET=${CTARGET:-${CHOST}}
-
-if [[ ${CTARGET} == ${CHOST} ]] ; then
-   if [[ ${CATEGORY} == cross-* ]] ; then
-   export CTARGET=${CATEGORY#cross-}
-   fi
-fi
-
-is_cross() { [[ ${CHOST} != ${CTARGET} ]] ; }
-
-case ${PV} in
-   *)
-   # live git tree
-   EGIT_REPO_URI="https://sourceware.org/git/binutils-gdb.git;
-   inherit git-r3
-   SRC_URI=""
-   ;;
-   *.*.50_p2???|*.*.90_p2???)
-   # Weekly snapshots
-   MY_PV="${PV/_p/.}"
-   SRC_URI="
-   
https://sourceware.org/pub/gdb/snapshots/branch/gdb-weekly-${MY_PV}.tar.xz
-   
https://sourceware.org/pub/gdb/snapshots/current/gdb-weekly-${MY_PV}.tar.xz
-   
https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/gdb-weekly-${MY_PV}.tar.xz
-   "
-   S="${WORKDIR}/${PN}-${MY_PV}"
-
-   # e.g. 13.1.90_p20230325 is a snapshot on the stable branch, so 
it's fine
-   if [[ ${PV} == *.[123456789].9?_p2??? ]] ; then
-   REGULAR_RELEASE=1
-   fi
-   ;;
-   *.*.9?)
-   # Prereleases
-   MY_PV="${PV/_p/.}"
-   SRC_URI="
-   
https://sourceware.org/pub/gdb/snapshots/branch/gdb-${MY_PV}.tar.xz
-   
https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/gdb-${MY_PV}.tar.xz
-   "
-   S="${WORKDIR}/${PN}-${MY_PV}"
-   ;;
-   *)
-   # Normal upstream release
-   SRC_URI="
-   mirror://gnu/gdb/${P}.tar.xz
-   https://sourceware.org/pub/gdb/releases/${P}.tar.xz
-   "
-
-   REGULAR_RELEASE=1
-esac
-
-PATCH_DEV=""
-PATCH_VER=""
-DESCRIPTION="GNU debugger"
-HOMEPAGE="https://sourceware.org/gdb/;
-SRC_URI="
-   ${SRC_URI}
-   
${PATCH_DEV:+https://dev.gentoo.org/~${PATCH_DEV}/distfiles/${CATEGORY}/${PN}/${P}-patches-${PATCH_VER}.tar.xz}
-   ${PATCH_VER:+mirror://gentoo/${P}-patches-${PATCH_VER}.tar.xz}
-"
-
-LICENSE="GPL-3+ LGPL-2.1+"
-SLOT="0"
-IUSE="cet debuginfod guile lzma multitarget nls +python +server sim 
source-highlight test vanilla xml xxhash zstd"
-if [[ -n ${REGULAR_RELEASE} ]] ; then
-   KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc 
~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris"
-fi
-REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
-RESTRICT="!test? ( test )"
-
-RDEPEND="
-   dev-libs/mpfr:=
-   dev-libs/gmp:=
-   >=sys-libs/ncurses-5.2-r2:=
-   >=sys-libs/readline-7:=
-   sys-libs/zlib
-   elibc_glibc? ( net-libs/libnsl:= )
-   debuginfod? (
-   dev-libs/elfutils[debuginfod(-)]
-   )
-   lzma? ( app-arch/xz-utils )
-   python? ( ${PYTHON_DEPS} )
-   guile? ( >=dev-scheme/guile-2.0 )
-   xml? ( dev-libs/expat )
-   source-highlight? (
-   dev-util/source-highlight
-   )
-   xxhash? (
-   dev-libs/xxhash
-   )
-   zstd? ( app-arch/zstd:= )
-"
-DEPEND="${RDEPEND}"
-BDEPEND="
-   app-arch/xz-utils
-   sys-apps/texinfo
-   app-alternatives/yacc
-   nls? ( sys-devel/gettext )
-   source-highlight? ( virtual/pkgconfig )
-   test? ( dev-util/dejagnu )
-"
-
-QA_CONFIG_IMPL_DECL_SKIP=(
-   MIN # gnulib FP (bug #898688)
-)
-
-PATCHES=(
-   "${FILESDIR}"/${PN}-8.3.1-verbose-build.patch
-)
-
-pkg_setup() {
-   use python && python-single-r1_pkg_setup
-}
-
-src_prepare() {
-   default
-
-   strip-linguas -u bfd/po opcodes/po
-
-   # Avoid using ancient termcap from host on Prefix systems
-   sed -i -e 's/termcap tinfow/tinfow/g' \
-   gdb/configure{.ac,} || die
-}
-
-gdb_branding() {
-   printf "Gentoo ${PV} "
-
-   if ! use vanilla && [[ -n ${PATCH_VER} ]] ; 

[gentoo-commits] repo/gentoo:master commit in: dev-debug/gdb/

2024-03-02 Thread Sam James
commit: f6f36fe9972ccbbb3562302cd4fb0e1512a2a340
Author: Sam James  gentoo  org>
AuthorDate: Sun Mar  3 06:53:27 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Mar  3 06:53:53 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f6f36fe9

dev-debug/gdb: add 14.2

Signed-off-by: Sam James  gentoo.org>

 dev-debug/gdb/Manifest | 1 +
 dev-debug/gdb/{gdb-.ebuild => gdb-14.2.ebuild} | 8 
 dev-debug/gdb/gdb-.ebuild  | 8 
 3 files changed, 17 insertions(+)

diff --git a/dev-debug/gdb/Manifest b/dev-debug/gdb/Manifest
index 363506944c7d..bc28a63793c7 100644
--- a/dev-debug/gdb/Manifest
+++ b/dev-debug/gdb/Manifest
@@ -1,2 +1,3 @@
 DIST gdb-13.2.tar.xz 23664644 BLAKE2B 
bf5216ba2286448a46f9e0a405367c5a678e6d7540204722d355b618018b7b75a2ebc5b51353304c5ded02a3979223a81781d305f5afa5be82516cdc2863d49f
 SHA512 
8185d3e11ab60dafff5860a5016577bfe7dd7547ef01ebc867bc247603d82b74ff74c4f29492c7d2aee57076f52be33e289f4c6b414a4b870d4b3004909f4c34
 DIST gdb-14.1.tar.xz 24108624 BLAKE2B 
52a07b4745f95561f360a597d6ec1d212dafc8e9134dc415cd7bcfb02c26934a60807c8400b545a756c68392e16e104178cdc1464430c53611973881e921a942
 SHA512 
575e198105076fc4a88f68591aa114ab9c1196e84386a3f7b9b58fe5f30cdeed33f6a5f957b68f08c47284ec922bb60c964627e238471419673fd913575ce427
+DIST gdb-14.2.tar.xz 24111936 BLAKE2B 
65765dfd1ed08e19bb881fc7ae98d6ee4914f38a9a2bb0d0ca73bef472669664f807fe9c04e8dffd7025be98e736ac52f88ff5851ceddbb01a361885b18befc8
 SHA512 
7e07941f1fe661288cc571b4964012ceabc1760624fce20320db2f470c01439b2386f859b5288da13204b758e2e3b22a74c68c012178db93b9529b06f1e22ede

diff --git a/dev-debug/gdb/gdb-.ebuild b/dev-debug/gdb/gdb-14.2.ebuild
similarity index 95%
copy from dev-debug/gdb/gdb-.ebuild
copy to dev-debug/gdb/gdb-14.2.ebuild
index 89469e978771..541bf7f8915a 100644
--- a/dev-debug/gdb/gdb-.ebuild
+++ b/dev-debug/gdb/gdb-14.2.ebuild
@@ -131,6 +131,14 @@ src_prepare() {
# Avoid using ancient termcap from host on Prefix systems
sed -i -e 's/termcap tinfow/tinfow/g' \
gdb/configure{.ac,} || die
+   if [[ ${CHOST} == *-solaris* ]] ; then
+   # code relies on C++11, so make sure we get that selected
+   # due to Python 3.11 pymacro.h doing stuff to work around
+   # versioning mess based on the C version, while we're compiling
+   # C++ here, so we need to make it clear we're doing C++11/C11
+   # because Solaris system headers act on these
+   sed -i -e 's/-x c++/-std=c++11/' gdb/Makefile.in || die
+   fi
 }
 
 gdb_branding() {

diff --git a/dev-debug/gdb/gdb-.ebuild b/dev-debug/gdb/gdb-.ebuild
index 89469e978771..541bf7f8915a 100644
--- a/dev-debug/gdb/gdb-.ebuild
+++ b/dev-debug/gdb/gdb-.ebuild
@@ -131,6 +131,14 @@ src_prepare() {
# Avoid using ancient termcap from host on Prefix systems
sed -i -e 's/termcap tinfow/tinfow/g' \
gdb/configure{.ac,} || die
+   if [[ ${CHOST} == *-solaris* ]] ; then
+   # code relies on C++11, so make sure we get that selected
+   # due to Python 3.11 pymacro.h doing stuff to work around
+   # versioning mess based on the C version, while we're compiling
+   # C++ here, so we need to make it clear we're doing C++11/C11
+   # because Solaris system headers act on these
+   sed -i -e 's/-x c++/-std=c++11/' gdb/Makefile.in || die
+   fi
 }
 
 gdb_branding() {



[gentoo-commits] repo/gentoo:master commit in: dev-debug/gdb/

2024-02-25 Thread Fabian Groffen
commit: 77e435c26870b2cd4f6ca8725afc009a491d554b
Author: Fabian Groffen  gentoo  org>
AuthorDate: Sun Feb 25 09:36:16 2024 +
Commit: Fabian Groffen  gentoo  org>
CommitDate: Sun Feb 25 09:38:02 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=77e435c2

dev-build/gdb-14.1-r1: fix compilation on Solaris

Python headers interfere, breaking the build, explicitly enable C++11
mode as to clear out the mismatch.

Signed-off-by: Fabian Groffen  gentoo.org>

 dev-debug/gdb/gdb-14.1-r1.ebuild | 8 
 1 file changed, 8 insertions(+)

diff --git a/dev-debug/gdb/gdb-14.1-r1.ebuild b/dev-debug/gdb/gdb-14.1-r1.ebuild
index f9b8b1ba925b..6894ea21be93 100644
--- a/dev-debug/gdb/gdb-14.1-r1.ebuild
+++ b/dev-debug/gdb/gdb-14.1-r1.ebuild
@@ -134,6 +134,14 @@ src_prepare() {
# Avoid using ancient termcap from host on Prefix systems
sed -i -e 's/termcap tinfow/tinfow/g' \
gdb/configure{.ac,} || die
+   if [[ ${CHOST} == *-solaris* ]] ; then
+   # code relies on C++11, so make sure we get that selected
+   # due to Python 3.11 pymacro.h doing stuff to work around
+   # versioning mess based on the C version, while we're compiling
+   # C++ here, so we need to make it clear we're doing C++11/C11
+   # because Solaris system headers act on these
+   sed -i -e 's/-x c++/-std=c++11/' gdb/Makefile.in || die
+   fi
 }
 
 gdb_branding() {



[gentoo-commits] repo/gentoo:master commit in: dev-debug/gdb/

2024-02-19 Thread Sam James
commit: 3e81f8f62f1c839a906fe22e1f42ca26d15d1276
Author: Sam James  gentoo  org>
AuthorDate: Tue Feb 20 07:44:29 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Tue Feb 20 07:44:49 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3e81f8f6

dev-debug/gdb: Stabilize 14.1-r1 ppc, #925034

Signed-off-by: Sam James  gentoo.org>

 dev-debug/gdb/gdb-14.1-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-debug/gdb/gdb-14.1-r1.ebuild b/dev-debug/gdb/gdb-14.1-r1.ebuild
index 8278f00ece0b..f9b8b1ba925b 100644
--- a/dev-debug/gdb/gdb-14.1-r1.ebuild
+++ b/dev-debug/gdb/gdb-14.1-r1.ebuild
@@ -74,7 +74,7 @@ LICENSE="GPL-3+ LGPL-2.1+"
 SLOT="0"
 IUSE="cet debuginfod guile lzma multitarget nls +python +server sim 
source-highlight test vanilla xml xxhash zstd"
 if [[ -n ${REGULAR_RELEASE} ]] ; then
-   KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ~ppc 
ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris"
+   KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc 
ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris"
 fi
 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
 RESTRICT="!test? ( test )"



[gentoo-commits] repo/gentoo:master commit in: dev-debug/gdb/

2024-02-19 Thread Sam James
commit: 464a5ee8c3eb2f6fb333b4707e000b6e132ebdd3
Author: Sam James  gentoo  org>
AuthorDate: Tue Feb 20 07:44:21 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Tue Feb 20 07:44:49 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=464a5ee8

dev-debug/gdb: Stabilize 14.1-r1 arm, #925034

Signed-off-by: Sam James  gentoo.org>

 dev-debug/gdb/gdb-14.1-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-debug/gdb/gdb-14.1-r1.ebuild b/dev-debug/gdb/gdb-14.1-r1.ebuild
index 0ac01d536457..9a791e7bb23b 100644
--- a/dev-debug/gdb/gdb-14.1-r1.ebuild
+++ b/dev-debug/gdb/gdb-14.1-r1.ebuild
@@ -74,7 +74,7 @@ LICENSE="GPL-3+ LGPL-2.1+"
 SLOT="0"
 IUSE="cet debuginfod guile lzma multitarget nls +python +server sim 
source-highlight test vanilla xml xxhash zstd"
 if [[ -n ${REGULAR_RELEASE} ]] ; then
-   KEYWORDS="~alpha amd64 ~arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc 
ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris"
+   KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc 
ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris"
 fi
 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
 RESTRICT="!test? ( test )"



[gentoo-commits] repo/gentoo:master commit in: dev-debug/gdb/

2024-02-19 Thread Sam James
commit: 9ab2338580e16a29f7dfbc65cc2afe6275af066a
Author: Sam James  gentoo  org>
AuthorDate: Tue Feb 20 07:44:26 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Tue Feb 20 07:44:49 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9ab23385

dev-debug/gdb: Stabilize 14.1-r1 hppa, #925034

Signed-off-by: Sam James  gentoo.org>

 dev-debug/gdb/gdb-14.1-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-debug/gdb/gdb-14.1-r1.ebuild b/dev-debug/gdb/gdb-14.1-r1.ebuild
index 9a791e7bb23b..8278f00ece0b 100644
--- a/dev-debug/gdb/gdb-14.1-r1.ebuild
+++ b/dev-debug/gdb/gdb-14.1-r1.ebuild
@@ -74,7 +74,7 @@ LICENSE="GPL-3+ LGPL-2.1+"
 SLOT="0"
 IUSE="cet debuginfod guile lzma multitarget nls +python +server sim 
source-highlight test vanilla xml xxhash zstd"
 if [[ -n ${REGULAR_RELEASE} ]] ; then
-   KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc 
ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris"
+   KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ~ppc 
ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris"
 fi
 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
 RESTRICT="!test? ( test )"



[gentoo-commits] repo/gentoo:master commit in: dev-debug/gdb/

2024-02-19 Thread Sam James
commit: 2b1d5eaaef46d967e74926d6da90115d38e4e493
Author: Sam James  gentoo  org>
AuthorDate: Tue Feb 20 07:21:18 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Tue Feb 20 07:21:18 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2b1d5eaa

dev-debug/gdb: Stabilize 14.1-r1 amd64, #925034

Signed-off-by: Sam James  gentoo.org>

 dev-debug/gdb/gdb-14.1-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-debug/gdb/gdb-14.1-r1.ebuild b/dev-debug/gdb/gdb-14.1-r1.ebuild
index cadff309feb4..0ac01d536457 100644
--- a/dev-debug/gdb/gdb-14.1-r1.ebuild
+++ b/dev-debug/gdb/gdb-14.1-r1.ebuild
@@ -74,7 +74,7 @@ LICENSE="GPL-3+ LGPL-2.1+"
 SLOT="0"
 IUSE="cet debuginfod guile lzma multitarget nls +python +server sim 
source-highlight test vanilla xml xxhash zstd"
 if [[ -n ${REGULAR_RELEASE} ]] ; then
-   KEYWORDS="~alpha ~amd64 ~arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc 
ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris"
+   KEYWORDS="~alpha amd64 ~arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc 
ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris"
 fi
 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
 RESTRICT="!test? ( test )"



[gentoo-commits] repo/gentoo:master commit in: dev-debug/gdb/

2024-02-19 Thread Sam James
commit: a6248fdbfbe1d394f4d8386fae729f0bdad1fd8f
Author: Sam James  gentoo  org>
AuthorDate: Tue Feb 20 07:21:07 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Tue Feb 20 07:21:07 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a6248fdb

dev-debug/gdb: Stabilize 14.1-r1 x86, #925034

Signed-off-by: Sam James  gentoo.org>

 dev-debug/gdb/gdb-14.1-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-debug/gdb/gdb-14.1-r1.ebuild b/dev-debug/gdb/gdb-14.1-r1.ebuild
index 956f129013a4..cadff309feb4 100644
--- a/dev-debug/gdb/gdb-14.1-r1.ebuild
+++ b/dev-debug/gdb/gdb-14.1-r1.ebuild
@@ -74,7 +74,7 @@ LICENSE="GPL-3+ LGPL-2.1+"
 SLOT="0"
 IUSE="cet debuginfod guile lzma multitarget nls +python +server sim 
source-highlight test vanilla xml xxhash zstd"
 if [[ -n ${REGULAR_RELEASE} ]] ; then
-   KEYWORDS="~alpha ~amd64 ~arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc 
ppc64 ~riscv ~s390 sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris"
+   KEYWORDS="~alpha ~amd64 ~arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc 
ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris"
 fi
 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
 RESTRICT="!test? ( test )"



[gentoo-commits] repo/gentoo:master commit in: dev-debug/gdb/

2024-02-19 Thread Sam James
commit: b403cf0034ad48f473cf35ccd089dd8e5eb57527
Author: Sam James  gentoo  org>
AuthorDate: Tue Feb 20 05:55:51 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Tue Feb 20 05:55:51 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b403cf00

dev-debug/gdb: Stabilize 14.1-r1 sparc, #925034

Signed-off-by: Sam James  gentoo.org>

 dev-debug/gdb/gdb-14.1-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-debug/gdb/gdb-14.1-r1.ebuild b/dev-debug/gdb/gdb-14.1-r1.ebuild
index 2dc97192ac57..5b3d54e480fa 100644
--- a/dev-debug/gdb/gdb-14.1-r1.ebuild
+++ b/dev-debug/gdb/gdb-14.1-r1.ebuild
@@ -74,7 +74,7 @@ LICENSE="GPL-3+ LGPL-2.1+"
 SLOT="0"
 IUSE="cet debuginfod guile lzma multitarget nls +python +server sim 
source-highlight test vanilla xml xxhash zstd"
 if [[ -n ${REGULAR_RELEASE} ]] ; then
-   KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc 
~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris"
+   KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc 
~ppc64 ~riscv ~s390 sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris"
 fi
 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
 RESTRICT="!test? ( test )"



[gentoo-commits] repo/gentoo:master commit in: dev-debug/gdb/

2024-02-19 Thread Sam James
commit: c9d40059157d90b8f8c4433b16ae4ff8f93b5f05
Author: Sam James  gentoo  org>
AuthorDate: Tue Feb 20 05:55:52 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Tue Feb 20 05:55:52 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c9d40059

dev-debug/gdb: Stabilize 14.1-r1 arm64, #925034

Signed-off-by: Sam James  gentoo.org>

 dev-debug/gdb/gdb-14.1-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-debug/gdb/gdb-14.1-r1.ebuild b/dev-debug/gdb/gdb-14.1-r1.ebuild
index 5b3d54e480fa..186d14b8ff5f 100644
--- a/dev-debug/gdb/gdb-14.1-r1.ebuild
+++ b/dev-debug/gdb/gdb-14.1-r1.ebuild
@@ -74,7 +74,7 @@ LICENSE="GPL-3+ LGPL-2.1+"
 SLOT="0"
 IUSE="cet debuginfod guile lzma multitarget nls +python +server sim 
source-highlight test vanilla xml xxhash zstd"
 if [[ -n ${REGULAR_RELEASE} ]] ; then
-   KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc 
~ppc64 ~riscv ~s390 sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris"
+   KEYWORDS="~alpha ~amd64 ~arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc 
~ppc64 ~riscv ~s390 sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris"
 fi
 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
 RESTRICT="!test? ( test )"



[gentoo-commits] repo/gentoo:master commit in: dev-debug/gdb/

2024-02-19 Thread Sam James
commit: 7cade4312507b525bcce2b13af5f0107f50095c4
Author: Sam James  gentoo  org>
AuthorDate: Tue Feb 20 05:55:53 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Tue Feb 20 05:55:53 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7cade431

dev-debug/gdb: Stabilize 14.1-r1 ppc64, #925034

Signed-off-by: Sam James  gentoo.org>

 dev-debug/gdb/gdb-14.1-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-debug/gdb/gdb-14.1-r1.ebuild b/dev-debug/gdb/gdb-14.1-r1.ebuild
index 186d14b8ff5f..956f129013a4 100644
--- a/dev-debug/gdb/gdb-14.1-r1.ebuild
+++ b/dev-debug/gdb/gdb-14.1-r1.ebuild
@@ -74,7 +74,7 @@ LICENSE="GPL-3+ LGPL-2.1+"
 SLOT="0"
 IUSE="cet debuginfod guile lzma multitarget nls +python +server sim 
source-highlight test vanilla xml xxhash zstd"
 if [[ -n ${REGULAR_RELEASE} ]] ; then
-   KEYWORDS="~alpha ~amd64 ~arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc 
~ppc64 ~riscv ~s390 sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris"
+   KEYWORDS="~alpha ~amd64 ~arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc 
ppc64 ~riscv ~s390 sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris"
 fi
 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
 RESTRICT="!test? ( test )"



[gentoo-commits] repo/gentoo:master commit in: dev-debug/gdb/, dev-debug/gdb/files/

2024-01-23 Thread Sam James
commit: a32e214f465b7e90dca9fd6c6439a5bc563daa41
Author: Christopher Fore  posteo  net>
AuthorDate: Tue Jan 23 16:56:41 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Wed Jan 24 07:31:05 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a32e214f

dev-debug/gdb: Backport patches for 14.1

- fix-list-segfault.patch:
   Fixes segfault encountered when running gdb on an executable without
   debugging symbols

- fix-dll-export-forwarding.patch:
   Fixes virtual memory address (VMA) calculating by making it relative
   to DLL_NAME again.

- fix-print-global-variable-stubs.patch:
   Fixes printing of global variable stubs if no inferior is running by
   adding a missing nullptr check

All tests pass.

Closes: https://bugs.gentoo.org/922336
Signed-off-by: Christopher Fore  posteo.net>
Closes: https://github.com/gentoo/gentoo/pull/34978
Signed-off-by: Sam James  gentoo.org>

 .../files/gdb-14.1-fix-dll-export-forwarding.patch |  60 
 .../gdb/files/gdb-14.1-fix-list-segfault.patch | 101 +++
 .../gdb-14.1-fix-print-global-variable-stubs.patch | 109 +++
 dev-debug/gdb/gdb-14.1-r1.ebuild   | 317 +
 4 files changed, 587 insertions(+)

diff --git a/dev-debug/gdb/files/gdb-14.1-fix-dll-export-forwarding.patch 
b/dev-debug/gdb/files/gdb-14.1-fix-dll-export-forwarding.patch
new file mode 100644
index ..8c2a49f8042f
--- /dev/null
+++ b/dev-debug/gdb/files/gdb-14.1-fix-dll-export-forwarding.patch
@@ -0,0 +1,60 @@
+Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=31112
+
+From 
https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff;h=43a608adb04251be8999304cf724f55b2d840ac3
+From: Hannes Domani 
+Date: Wed, 6 Dec 2023 20:52:06 +0100
+Subject: [PATCH] Fix DLL export forwarding
+
+I noticed it when I was trying to set a breakpoint at ExitProcess:
+```
+(gdb) b ExitProcess
+Breakpoint 1 at 0x14001fdd0
+(gdb) r
+Starting program: C:\qiewer\heob\heob64.exe
+Warning:
+Cannot insert breakpoint 1.
+Cannot access memory at address 0x3dbf4120
+Cannot insert breakpoint 1.
+Cannot access memory at address 0x77644120
+```
+
+The problem doesn't exist in gdb 13.2, and the difference can easily be
+seen when printing ExitProcess.
+gdb 14.1:
+```
+(gdb) p ExitProcess
+$1 = {} 0x77644120 
+```
+gdb 13.2:
+```
+(gdb) p ExitProcess
+$1 = {} 0x77734120 
+```
+
+The new behavior started with 9675da25357c7a3f472731ddc6eb3becc65b469a,
+where VMA was then calculated relative to FORWARD_DLL_NAME, while it was
+relative to DLL_NAME before.
+
+Fixed by calculating VMA relative to DLL_NAME again.
+
+Bug: https://sourceware.org/PR31112
+Approved-By: Tom Tromey 
+
+(cherry picked from commit 2574cd903dd84e7081506e24c2e232ecda11a736)
+--- a/gdb/coff-pe-read.c
 b/gdb/coff-pe-read.c
+@@ -210,7 +210,10 @@ add_pe_forwarded_sym (minimal_symbol_reader ,
+ " \"%s\" in dll \"%s\", pointing to \"%s\"\n"),
+   sym_name, dll_name, forward_qualified_name.c_str ());
+ 
+-  unrelocated_addr vma = msymbol.minsym->unrelocated_address ();
++  /* Calculate VMA as if it were relative to DLL_NAME/OBJFILE, even though
++ it actually points inside another dll (FORWARD_DLL_NAME).  */
++  unrelocated_addr vma = unrelocated_addr (msymbol.value_address ()
++ - objfile->text_section_offset ());
+   msymtype = msymbol.minsym->type ();
+   section = msymbol.minsym->section_index ();
+ 
+-- 
+2.39.3
+

diff --git a/dev-debug/gdb/files/gdb-14.1-fix-list-segfault.patch 
b/dev-debug/gdb/files/gdb-14.1-fix-list-segfault.patch
new file mode 100644
index ..76557b5a7e00
--- /dev/null
+++ b/dev-debug/gdb/files/gdb-14.1-fix-list-segfault.patch
@@ -0,0 +1,101 @@
+Bug: https://bugs.gentoo.org/922336
+Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=31256
+
+From 
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=0068bd6fb3579dd8df7561e038cb3fe27f122b0e
+From: Guinevere Larsen 
+To: gdb-patc...@sourceware.org
+Cc: Guinevere Larsen 
+Subject: [PATCH] gdb: fix "list ." related crash
+Date: Tue, 23 Jan 2024 11:50:43 +0100
+
+When a user attempts to use the "list ." command with an inferior that
+doesn't have debug symbols, GDB would crash. This was reported as PR
+gdb/31256.
+
+The crash would happen when attempting to get the current symtab_and_line
+for the stop location, because the symtab would return a null pointer
+and we'd attempt to dereference it to print the line.
+
+This commit fixes that by checking for an empty symtab and erroring out
+of the function if it happens.
+
+Bug: https://sourceware.org/PR31256
+--- a/gdb/cli/cli-cmds.c
 b/gdb/cli/cli-cmds.c
+@@ -1291,6 +1291,8 @@ list_command (const char *arg, int from_tty)
+ set_default_source_symtab_and_line ();
+ cursal = get_current_source_symtab_and_line ();
+   }
++if (cursal.symtab == nullptr)
++  error (_("No debug information available to print source 

[gentoo-commits] repo/gentoo:master commit in: dev-debug/gdb-apple/, sys-devel/gdb-apple/files/, sys-devel/gdb-apple/, ...

2024-01-13 Thread Michał Górny
commit: 1eb06b860d83a59fce6466517e5c9d1b2ab20033
Author: Michał Górny  gentoo  org>
AuthorDate: Fri Jan 12 19:24:30 2024 +
Commit: Michał Górny  gentoo  org>
CommitDate: Sat Jan 13 09:42:33 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1eb06b86

Move {sys-devel → dev-debug}/gdb-apple

Signed-off-by: Michał Górny  gentoo.org>

 {sys-devel => dev-debug}/gdb-apple/Manifest | 0
 {sys-devel => dev-debug}/gdb-apple/files/gdb-apple-1518-darwin8-9.patch | 0
 {sys-devel => dev-debug}/gdb-apple/files/gdb-apple-1518-darwin8.patch   | 0
 .../gdb-apple/files/gdb-apple-1705-darwin8-10.patch | 0
 {sys-devel => dev-debug}/gdb-apple/files/gdb-apple-768-texinfo.patch| 0
 .../gdb-apple/files/gdb-apple-no-global-gdbinit.patch   | 0
 {sys-devel => dev-debug}/gdb-apple/gdb-apple-1752.ebuild| 2 +-
 {sys-devel => dev-debug}/gdb-apple/metadata.xml | 0
 profiles/updates/1Q-2024| 1 +
 9 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/sys-devel/gdb-apple/Manifest b/dev-debug/gdb-apple/Manifest
similarity index 100%
rename from sys-devel/gdb-apple/Manifest
rename to dev-debug/gdb-apple/Manifest

diff --git a/sys-devel/gdb-apple/files/gdb-apple-1518-darwin8-9.patch 
b/dev-debug/gdb-apple/files/gdb-apple-1518-darwin8-9.patch
similarity index 100%
rename from sys-devel/gdb-apple/files/gdb-apple-1518-darwin8-9.patch
rename to dev-debug/gdb-apple/files/gdb-apple-1518-darwin8-9.patch

diff --git a/sys-devel/gdb-apple/files/gdb-apple-1518-darwin8.patch 
b/dev-debug/gdb-apple/files/gdb-apple-1518-darwin8.patch
similarity index 100%
rename from sys-devel/gdb-apple/files/gdb-apple-1518-darwin8.patch
rename to dev-debug/gdb-apple/files/gdb-apple-1518-darwin8.patch

diff --git a/sys-devel/gdb-apple/files/gdb-apple-1705-darwin8-10.patch 
b/dev-debug/gdb-apple/files/gdb-apple-1705-darwin8-10.patch
similarity index 100%
rename from sys-devel/gdb-apple/files/gdb-apple-1705-darwin8-10.patch
rename to dev-debug/gdb-apple/files/gdb-apple-1705-darwin8-10.patch

diff --git a/sys-devel/gdb-apple/files/gdb-apple-768-texinfo.patch 
b/dev-debug/gdb-apple/files/gdb-apple-768-texinfo.patch
similarity index 100%
rename from sys-devel/gdb-apple/files/gdb-apple-768-texinfo.patch
rename to dev-debug/gdb-apple/files/gdb-apple-768-texinfo.patch

diff --git a/sys-devel/gdb-apple/files/gdb-apple-no-global-gdbinit.patch 
b/dev-debug/gdb-apple/files/gdb-apple-no-global-gdbinit.patch
similarity index 100%
rename from sys-devel/gdb-apple/files/gdb-apple-no-global-gdbinit.patch
rename to dev-debug/gdb-apple/files/gdb-apple-no-global-gdbinit.patch

diff --git a/sys-devel/gdb-apple/gdb-apple-1752.ebuild 
b/dev-debug/gdb-apple/gdb-apple-1752.ebuild
similarity index 98%
rename from sys-devel/gdb-apple/gdb-apple-1752.ebuild
rename to dev-debug/gdb-apple/gdb-apple-1752.ebuild
index e9abe3a3f5d7..974164cdbaa3 100644
--- a/sys-devel/gdb-apple/gdb-apple-1752.ebuild
+++ b/dev-debug/gdb-apple/gdb-apple-1752.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6

diff --git a/sys-devel/gdb-apple/metadata.xml b/dev-debug/gdb-apple/metadata.xml
similarity index 100%
rename from sys-devel/gdb-apple/metadata.xml
rename to dev-debug/gdb-apple/metadata.xml

diff --git a/profiles/updates/1Q-2024 b/profiles/updates/1Q-2024
index e26d82a82116..fcd24360d993 100644
--- a/profiles/updates/1Q-2024
+++ b/profiles/updates/1Q-2024
@@ -7,3 +7,4 @@ move app-doc/psmark app-text/psmark
 move app-doc/xmltoman app-text/xmltoman
 move app-doc/zeal app-text/zeal
 move sys-devel/gdb dev-debug/gdb
+move sys-devel/gdb-apple dev-debug/gdb-apple