From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B54463849AC1; Fri, 17 May 2024 14:49:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B54463849AC1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1715957386; bh=DOCD5cP5t0IvutQ4CPyXizs75eTfRtLITQwYClmMITs=; h=From:To:Subject:Date:In-Reply-To:References:From; b=o2PAGp1kASOBY7po1GwpBgDfOX6GmoeZpF3hF/pGqOGJOCUWvXtSoy1JUGEeNi8nW 4PxoJ7QpF5vwrdKML6CPSnR9lTuQtgHUuBQ0l1ajzeol/fAjz5MSPbvdWqtIRypITV FqIhu91Ow+loZoPEHxlBq7VSa4SejjfIGZE23mLs= From: "cvs-commit at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug symtab/30520] Slow lookup_symbol_in_objfile Date: Fri, 17 May 2024 14:49:45 +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: 13.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit 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: 15.1 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=3D30520 --- Comment #14 from Sourceware Commits --- The master branch has been updated by Tom Tromey : https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D3a0fae312983= 989a33608d924ff902d7b78e8ec1 commit 3a0fae312983989a33608d924ff902d7b78e8ec1 Author: Dmitry.Neverov Date: Mon May 6 17:09:17 2024 +0200 gdb/symtab: check name matches before expanding a CU The added check fixes the case when an unqualified lookup name without template arguments causes expansion of many CUs which contain the name with template arguments. This is similar to what dw2_expand_symtabs_matching_symbol does before expanding the CU. In the referenced issue the lookup name was wxObjectDataPtr and many CUs had names like wxObjectDataPtr. This caused their expansion and the lookup took around a minute. The added check helps to avoid the expansion and makes the symbol lookup to return in a second or so. Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30520 --=20 You are receiving this mail because: You are on the CC list for the bug.=