From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1F1B63858C54; Wed, 7 Jun 2023 09:50:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1F1B63858C54 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1686131452; bh=y5gB5HeZsaanTIGPLgYCfP10wuoVZ32/PRvBmVUuZ/Y=; h=From:To:Subject:Date:In-Reply-To:References:From; b=eMQNCxeQ6J6+03lQ337GzLM9O47Kk08tLmLm3z8TewF7K5W5W35IWZdVvsS7y8OiG 1ichrk3Ybpr8yGs4mNDlqmHeeoz8uRmKzv74GR+8K1tWjnjoiytpUQlH/SBEyIb3sG ojOvgeXmSQK1aIEClUxk7sDKsdXVc5+O6OoCVo1I= From: "dmitry.neverov at jetbrains dot com" To: gdb-prs@sourceware.org Subject: [Bug symtab/30520] Slow lookup_symbol_in_objfile Date: Wed, 07 Jun 2023 09:50:50 +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: dmitry.neverov at jetbrains dot com X-Bugzilla-Status: UNCONFIRMED 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=3D30520 --- Comment #4 from Dmitry Neverov --- With 'set debug symtab-create 1' gdb produces ~450Mb of logs between these 2 entries: 2023-06-06 10:54:51,286 <&" [symbol-lookup] lookup_symbol_in_objfile: lookup_symbol_in_objfile (_pcbnew.kiface, GLOBAL_BLOCK, wxObjectDataPtr, VAR_DOMAIN)\n" 2023-06-06 10:55:50,418 <&" [symbol-lookup] lookup_symbol_in_objfile: lookup_symbol_in_objfile (...) =3D NULL\n" All log entries are of the form like these: <&" [symtab-create] start_subfile: name =3D /usr/include/x86_64-linux-gnu/c++/12/bits/c++config.h, name_for_id =3D /usr/include/x86_64-linux-gnu/c++/12/bits/c++config.h\n" <&" [symtab-create] start_subfile: found existing symtab with name_for_id /usr/include/x86_64-linux-gnu/c++/12/bits/c++config.h\n" There are 1134332 '[symtab-create] start_subfile: name =3D ...' entries tot= al, 707543 of them result in 'found existing symtab', 426789 don't find an exis= ting symtab. There are 3519 unique names for symtab-create. --=20 You are receiving this mail because: You are on the CC list for the bug.=