From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 26D78385417B; Fri, 21 Oct 2022 17:19:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 26D78385417B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1666372781; bh=ImU4Oma5l7qCieRhtZE1yvfNXVH3Vn4GK2/W7FMFspk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=RhVFXrR3EjUMAePsrKpweciOO3SC0d+bURw6sSH1ISau4XVheDiz5uct6H//RTd4d kBKEkSITX1DZM50ohOqccGUpWOjKHUs9uYqNaNUl+0xVXBkOKBF/2ht7jtCpAMEJ6Y yobZBMY5CT5o6VHTfb96TASYp1ZxTPiisDz7pq1Q= 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:19:33 +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: 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 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D17762 Tom Tromey changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tromey at sourceware dot o= rg --- Comment #2 from Tom Tromey --- This still seems to happen with the new reader. The DWARF says: <2b> DW_AT_name : (indirect string, offset: 0x52): thetemplatefunction<'\001'> There isn't a way to dump the cooked index directly (probably should fix) but you can gdb-add-index and examine that: [710] thetemplatefunction<(char)'\001'>: 0 [global, function] However info func says: 2: int thetemplatefunction<(char)1>(); I'm going to say the bug is somewhere in the full reader. This is a case that would be fixed by the lazy expansion idea, see bug #29398 -- there, the names would be directly constructed from the cooked index, so there's no possibility of divergence. --=20 You are receiving this mail because: You are on the CC list for the bug.=