From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9D9A23858C5E; Mon, 2 Oct 2023 18:50:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9D9A23858C5E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1696272623; bh=zzlj+Jt6s/fZlKWpkigFJo1+46FDkv2n9Fcm/6OLPvU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Ivp7RzC5Rdwa4HHX8bj++6BLzI6cvQFVsiZNxli6Et3ZrQOHkZD+dy1IPkSrR+j1V +MrGp/eZJsnAyXC+uAuy/DZJnStQ9WEGfOcJLd1So59WjbAcKEn9ylFxSg1PMwd1Ut sG6wN4Lsg49oACbR3A2YtJwSwG11OQvf0xywxbEM= From: "ian at airs dot com" To: gdb-prs@sourceware.org Subject: [Bug go/27238] [gcc-11] FAIL: gdb.go/package.exp: setting breakpoint at package2.Foo Date: Mon, 02 Oct 2023 18:50:22 +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: ian at airs 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: --- 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 #10 from Ian Lance Taylor --- For a simple function like Run in this example, the name has two components: the package-path and the name. The symbol is the encoded package-path, followed by ".", followed by the encoded name. In normal usage, when building with "go build", GCC is invoked with a -fgo-pkgpath option that sets the package path. This will be based on the module name and the package name. When gccgo is invoked with the -fgo-pkgp= ath option (or the older -fgo-prefix option) then the pkgpath will be the string "go." (with a trailing period) followed by the package name that appears in= the source code. In this case the package name in the source code is "l=C3=A4u= fer", so the package-path is "go.l=C3=A4ufer". The "." is encoded as "_0", the "=C3= =A4" is encoded as "_u00e4", hence the encoded package-path is "go_0l_u00e4ufer". --=20 You are receiving this mail because: You are on the CC list for the bug.=