From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AA6E03858C54; Fri, 23 Sep 2022 17:48:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AA6E03858C54 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1663955287; bh=2/qYk1UcGdZDPUWfvNnfeefHvVelKVts7n4jrTLG8UY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=eNu6HmzRiJdWqBNkA4Q2CswDO2sB4minnNVK0oNAIAMXqHEeg23H2a/X/1TGzDNsG IyWT+Wd3ssnhKgeMysHl7OlfYhdjx3ck+KiQobls30LaA3UK4DB6gbMwFcCNSXqvoK nHacVxGi2NyAk8V9pf1iP9UmnLcDjMAuAxGor6uU= From: "tromey at sourceware dot org" To: gdb-prs@sourceware.org Subject: [Bug symtab/29106] new DWARF reader should de-duplicate functions Date: Fri, 23 Sep 2022 17:48:07 +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: tromey 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=3D29106 --- Comment #2 from Tom Tromey --- It does seem that the declarations end up in the symbol table. In one CU, there's a concrete instance like: <1><28afba>: Abbrev Number: 40 (DW_TAG_subprogram) <28afbb> DW_AT_specification: <0x27d5e2> ... pointing back at the method declaration. Both the old and new gdb will emit an index entry for this. However, in another CU, there's the same declaration but with no concrete instance -- and here, the old gdb does not emit an entry, but the new one does. I suspect these declarations shouldn't be in the cooked index at all. --=20 You are receiving this mail because: You are on the CC list for the bug.=