From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E9B86385DC09; Fri, 21 Oct 2022 17:37:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E9B86385DC09 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1666373823; bh=stFBgY1Y8C/G4rMA66+zZ3f8JHgoYP9ZJyeSeBwwMJ8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=SoOi9mnuFiaBd7j5q5oBTl21BWt8yE5SXgdriPJPOoa0GU1XiaHuUdl2T+98vu44o qtB/0U2RN7Ri4f+s38CfJi4sOwREz1j2AbXCFlAps9YWKcEPUa4epp0uL3pNHtzWkl oaqWPHzIb9CmvIgrFckElX7NYADHJAVi7PMaAm/M= From: "tromey at sourceware dot org" To: gdb-prs@sourceware.org Subject: [Bug symtab/17762] template lookup: partial syms vs syms differences Date: Fri, 21 Oct 2022 17:37:02 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: symtab X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tromey at sourceware dot 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=3D17762 --- Comment #4 from Tom Tromey --- new_symbol calls dwarf2_physname, which demangles the mangled form of the name. This yield: (top-gdb) p demangled $14 =3D std::unique_ptr =3D { get() =3D 0x2584aa0 "thetemplatefunction<(char)1>()" } ... i.e., disagreeing with the canonicalizer. This is bad. Maybe it's actually a bug in the canonicalizer, though at the same time it seems bad to depend on demangling. The cooked index uses DW_AT_name by default, I think the full reader should do the same. --=20 You are receiving this mail because: You are on the CC list for the bug.=