From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B35653870846; Tue, 23 Feb 2021 18:23:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B35653870846 From: "andrew.burgess at embecosm dot com" To: gdb-prs@sourceware.org Subject: [Bug backtrace/27147] [GNU/Linux, sparc64] GDB is unable to print full stack trace (got "previous frame inner to this frame" errors) Date: Tue, 23 Feb 2021 18:23:05 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: backtrace X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: andrew.burgess at embecosm dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: 10.2 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Feb 2021 18:23:05 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27147 --- Comment #8 from Andrew Burgess --- I'm testing this possible patch: diff --git a/gdb/sparc-tdep.c b/gdb/sparc-tdep.c index 4f9c679b55c..6f6157fc461 100644 --- a/gdb/sparc-tdep.c +++ b/gdb/sparc-tdep.c @@ -1948,6 +1948,11 @@ sparc_supply_rwindow (struct regcache *regcache, CORE_ADDR sp, int regnum) gdb_byte buf[8]; int i; + /* Ensure the correct inferior_ptid is in place before calling target + methods. */ + scoped_restore save_inferior_ptid =3D make_scoped_restore (&inferior_pti= d); + inferior_ptid =3D regcache->ptid (); + if (sp & 1) { /* Registers are 64-bit. */ --=20 You are receiving this mail because: You are on the CC list for the bug.=