From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 030B1383440C; Tue, 23 Feb 2021 17:48:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 030B1383440C 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 17:48:44 +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: cc 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 17:48:45 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27147 Andrew Burgess changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |andrew.burgess at embecosm= dot com --- Comment #7 from Andrew Burgess --- I took a look at this bug and tracked down what I think caused the regressi= on. If you apply this patch to GDB: diff --git a/gdb/sparc-tdep.c b/gdb/sparc-tdep.c index 4f9c679b55c..4da94e8e0bb 100644 --- a/gdb/sparc-tdep.c +++ b/gdb/sparc-tdep.c @@ -1957,7 +1957,9 @@ sparc_supply_rwindow (struct regcache *regcache, CORE_ADDR sp, int regnum) { if (regnum =3D=3D i || regnum =3D=3D -1) { - target_read_memory (sp + ((i - SPARC_L0_REGNUM) * 8), buf, 8); + if (target_read_memory (sp + ((i - SPARC_L0_REGNUM) * 8), buf= , 8) =3D=3D -1) + error (_("failed to read target memory at %s"), + core_addr_to_string (sp + ((i - SPARC_L0_REGNUM) * 8= ))); /* Handle StackGhost. */ if (i =3D=3D SPARC_I7_REGNUM) Then you should find that on commit 75c6c844d9d everything is fine, but on commit 5b6d1e4fa4f you'll start seeing error. The reason is that inferior_= ptid is set to something valid in the working commit, but is now null_ptid in the broken commit. As an experiment I tried hacking things so that if we get into sparc_supply_rwindow and inferior_ptid is null_ptid then we find a "suitabl= e" value and set it, and this does indeed resolve the issue. Right now I'm trying to figure out the correct way that inferior_ptid shoul= d be getting set at this point. --=20 You are receiving this mail because: You are on the CC list for the bug.=