From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9DC313858401; Thu, 5 Oct 2023 08:44:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9DC313858401 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1696495478; bh=sNTLnLoSal1wdC5rMD3bn+XkMR0KGqu+AIT2tiyLoeY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=UB85OCc6RcPdiRf+oBxpEKDStg15W6uJ+NRqfxR790NghUr4wmzmUaOEHSg1M+9+Y I7teI/GGiiJqpw+i7Y8v5POuAcw4pDQHtTLdjdWwrD3ixowjxv7hluT94bSL4qdoFI pmVGqSntmDMabloe0udSXCqNRnQo9il5FJRq5q5o= From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug go/27238] [gcc-11] FAIL: gdb.go/package.exp: setting breakpoint at package2.Foo Date: Thu, 05 Oct 2023 08:44:33 +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: vries at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- 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 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D27238 --- Comment #12 from Tom de Vries --- Interesting find: when running with gccgo-7, the test-case passes. But it finds the function it breaks on in the minimal symbols, not the dwarf. So this works fine, it just doesn't print the line info: ... $ gccgo-7 ./src/gdb/testsuite/gdb.go/package2.go -c -g0 $ gccgo-7 ./src/gdb/testsuite/gdb.go/package1.go package2.o -g0 $ gdb -q -batch a.out -ex "b package2.Foo" -ex "b go.package2.Foo" Breakpoint 1 at 0x402563 Breakpoint 2 at 0x402563 ... But with gccgo-11 it doesn't work: ... $ gccgo-11 ./src/gdb/testsuite/gdb.go/package2.go -c -g0 $ gccgo-11 ./src/gdb/testsuite/gdb.go/package1.go package2.o -g0 $ gdb -q -batch a.out -ex "b package2.Foo" -ex "b go.package2.Foo" Function "package2.Foo" not defined. Make breakpoint pending on future shared library load? (y or [n]) [answered= N; input not from terminal] Function "go.package2.Foo" not defined. Make breakpoint pending on future shared library load? (y or [n]) [answered= N; input not from terminal] ... So it looks like the regression is in minimal symbol handling, dwarf already wasn't working in the first place. --=20 You are receiving this mail because: You are on the CC list for the bug.=