From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A86BF3858D38; Fri, 31 Mar 2023 00:05:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A86BF3858D38 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1680221126; bh=kB9SZNRZddP/QRzMW/eR4bm6DO56Ul+iAiaWEWPcVCk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=tPJVII/rV0xafRtNDekqPLHYeNoY1x1LTyZtrzPD7W1sq4Wq+FJSVH6C/y+Ur+Hzn ubIrDVO2s791CUheKSAnuJZMXE1dIfuStM3M2P0yfXPARjiMSf/fWViomfbIEg65mM 6/+QD2HSGYvpxucE23PokCPhQgNp4vG7CTWs5UBo= From: "tromey at sourceware dot org" To: gdb-prs@sourceware.org Subject: [Bug go/29357] gdb for golang prints wrong frame info at the ret instruction Date: Fri, 31 Mar 2023 00:05:25 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: go X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tromey at sourceware dot org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc bug_status resolution 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 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D29357 Tom Tromey changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tromey at sourceware dot o= rg Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED --- Comment #1 from Tom Tromey --- I think this was fixed. There were some epilogue changes in the recent past that probably did it. Here you can see that the CFA at the start of main.main and at the ret are now the same: Thread 1 "main" hit Breakpoint 1, main.main () at /home/tromey/gdb/PRS/go-29357/main.go:5 5 func main() { (gdb) info frame Stack level 0, frame at 0xc000106f80: rip =3D 0x480fa6 in main.main (/home/tromey/gdb/PRS/go-29357/main.go:5); s= aved rip =3D 0x433ff2 source language unknown. Arglist at 0xc000106f70, args:=20 Locals at 0xc000106f70, Previous frame's sp is 0xc000106f80 Saved registers: rip at 0xc000106f78 (gdb) c Continuing. hello world Thread 1 "main" hit Breakpoint 3, 0x0000000000480ffb in main.main () at /home/tromey/gdb/PRS/go-29357/main.go:7 7 } (gdb) info frame Stack level 0, frame at 0xc000106f80: rip =3D 0x480ffb in main.main (/home/tromey/gdb/PRS/go-29357/main.go:7); s= aved rip =3D 0x433ff2 source language unknown. Arglist at 0xc000106f70, args:=20 Locals at 0xc000106f70, Previous frame's sp is 0xc000106f80 Saved registers: rip at 0xc000106f78 (gdb) pipe disassemble | grep -e '=3D>' =3D> 0x0000000000480ffb <+91>: ret --=20 You are receiving this mail because: You are on the CC list for the bug.=