From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BFF82385841F; Sat, 5 Aug 2023 15:57:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BFF82385841F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1691251050; bh=rHiGNdIxm/LThtZvn+K2amFZoyR2ume1xamPMf4KelQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=kc6I8yD+Kiw5qkv4mtPpVLHx/mvUpR7VbYPSqzam4B41FhOsIYtnuHJSxC9qjs6jM SOg/EUAY5wi9lxUpQYwT6ongkQzZb6f0aOpBcJicHc/PKiExkQtdxlxVyH55k4TKB4 ychJte5H0sC1cqXVBhBgbNrDSQ4pQIp8ojxuhCUk= From: "cvs-commit at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug symtab/30661] [gdb/symtab] main symbol language lookup causes symtab expansion Date: Sat, 05 Aug 2023 15:57:29 +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: 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: --- 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=3D30661 --- Comment #7 from cvs-commit at gcc dot gnu.org --- The master branch has been updated by Tom de Vries : https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Dd06730bc0205= f7c35bfccf057ef0ef83a12206d6 commit d06730bc0205f7c35bfccf057ef0ef83a12206d6 Author: Tom de Vries Date: Sat Aug 5 17:57:13 2023 +0200 [gdb/symtab] Find main language without symtab expansion When loading an executable using "file a.out", the language is set according to a.out, which can involve looking up the language of symbol "main", w= hich will cause the symtab expansion for the containing CU. Expansion of lto debug info can be slow, so in commit d3214198119 ("[gd= b] Use partial symbol table to find language for main") a feature was added to avoid the symtab expansion. This feature stopped working after commit 7f4307436fd ("Fix "start" for= D, Rust, etc"). [ The commit addresses problems related to command start, which requires finding the main function: - for language D, "main" was found instead of "D main", and - for Rust, the correct function was found, but attributed the wrong na= me (not fully qualified). ] Reimplement the feature by adding cooked_index_functions::lookup_global_symbol_language. Tested on x86_64-linux. PR symtab/30661 Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30661 --=20 You are receiving this mail because: You are on the CC list for the bug.=