From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D5BB81382C5 for ; Sun, 25 Apr 2021 20:57:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1C5C0E086A; Sun, 25 Apr 2021 20:57:49 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 06393E086A for ; Sun, 25 Apr 2021 20:57:49 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 367373416B9 for ; Sun, 25 Apr 2021 20:57:48 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id DA1E74C3 for ; Sun, 25 Apr 2021 20:57:46 +0000 (UTC) From: "Sergei Trofimovich" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sergei Trofimovich" Message-ID: <1619384264.e9d3ab7ee243c49191b72e042128dea375e67305.slyfox@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/gdb/files/, sys-devel/gdb/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-devel/gdb/files/gdb-10.2-sparc-nat.patch sys-devel/gdb/gdb-10.2.ebuild X-VCS-Directories: sys-devel/gdb/ sys-devel/gdb/files/ X-VCS-Committer: slyfox X-VCS-Committer-Name: Sergei Trofimovich X-VCS-Revision: e9d3ab7ee243c49191b72e042128dea375e67305 X-VCS-Branch: master Date: Sun, 25 Apr 2021 20:57:46 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 9d5988dc-9542-4b0b-bf8d-06f71aa5a819 X-Archives-Hash: 301f65e106b8aa413dc9a4350cfe2ad3 commit: e9d3ab7ee243c49191b72e042128dea375e67305 Author: Sergei Trofimovich gentoo org> AuthorDate: Sun Apr 25 20:57:24 2021 +0000 Commit: Sergei Trofimovich gentoo org> CommitDate: Sun Apr 25 20:57:44 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e9d3ab7e sys-devel/gdb: fix sparc-nat build Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: Sergei Trofimovich gentoo.org> sys-devel/gdb/files/gdb-10.2-sparc-nat.patch | 47 ++++++++++++++++++++++++++++ sys-devel/gdb/gdb-10.2.ebuild | 1 + 2 files changed, 48 insertions(+) diff --git a/sys-devel/gdb/files/gdb-10.2-sparc-nat.patch b/sys-devel/gdb/files/gdb-10.2-sparc-nat.patch new file mode 100644 index 00000000000..5e71efa0d33 --- /dev/null +++ b/sys-devel/gdb/files/gdb-10.2-sparc-nat.patch @@ -0,0 +1,47 @@ +From 288e3189fce8f466ca60411c27e8f1c0dac5d582 Mon Sep 17 00:00:00 2001 +From: Sergei Trofimovich +Date: Sun, 25 Apr 2021 20:50:38 +0100 +Subject: [PATCH] gdb: fix sparc build failure of linux-nat + +On sparc build failed as: + +``` +gdb/sparc-linux-nat.c: In member function + 'virtual void sparc_linux_nat_target::fetch_registers(regcache*, int)': +gdb/sparc-linux-nat.c:36:37: + error: cannot convert 'regcache*' to 'process_stratum_target*' + 36 | { sparc_fetch_inferior_registers (regcache, regnum); } + | ^~~~~~~~ + | | + | regcache* +``` + +The fix adopts gdb/sparc-nat.h API change in d1e93af64a6 +("gdb: set current thread in sparc_{fetch,collect}_inferior_registers"). + +gdb/ChangeLog: + + * sparc-linux-nat.c (sparc_linux_nat_target): fix sparc build + by passing `process_stratum_target*` parameter. +--- + gdb/sparc-linux-nat.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +--- a/gdb/sparc-linux-nat.c ++++ b/gdb/sparc-linux-nat.c +@@ -33,10 +33,10 @@ class sparc_linux_nat_target final : public linux_nat_target + public: + /* Add our register access methods. */ + void fetch_registers (struct regcache *regcache, int regnum) override +- { sparc_fetch_inferior_registers (regcache, regnum); } ++ { sparc_fetch_inferior_registers (this, regcache, regnum); } + + void store_registers (struct regcache *regcache, int regnum) override +- { sparc_store_inferior_registers (regcache, regnum); } ++ { sparc_store_inferior_registers (this, regcache, regnum); } + }; + + static sparc_linux_nat_target the_sparc_linux_nat_target; +-- +2.31.1 + diff --git a/sys-devel/gdb/gdb-10.2.ebuild b/sys-devel/gdb/gdb-10.2.ebuild index 520501f0023..f826ccb7083 100644 --- a/sys-devel/gdb/gdb-10.2.ebuild +++ b/sys-devel/gdb/gdb-10.2.ebuild @@ -86,6 +86,7 @@ BDEPEND=" PATCHES=( "${FILESDIR}"/${PN}-8.3.1-verbose-build.patch "${FILESDIR}"/${PN}-10.1-cet.patch + "${FILESDIR}"/${PN}-10.2-sparc-nat.patch ) pkg_setup() {