public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla@sourceware.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 [thread overview] Message-ID: <bug-30661-4717-NYvZ3ThsUf@http.sourceware.org/bugzilla/> (raw) In-Reply-To: <bug-30661-4717@http.sourceware.org/bugzilla/> https://sourceware.org/bugzilla/show_bug.cgi?id=30661 --- Comment #7 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Tom de Vries <vries@sourceware.org>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=d06730bc0205f7c35bfccf057ef0ef83a12206d6 commit d06730bc0205f7c35bfccf057ef0ef83a12206d6 Author: Tom de Vries <tdevries@suse.de> 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", which will cause the symtab expansion for the containing CU. Expansion of lto debug info can be slow, so in commit d3214198119 ("[gdb] 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 name (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=30661 -- You are receiving this mail because: You are on the CC list for the bug.
next prev parent reply other threads:[~2023-08-05 15:57 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-07-21 7:34 [Bug symtab/30661] New: " vries at gcc dot gnu.org 2023-07-21 8:16 ` [Bug symtab/30661] " vries at gcc dot gnu.org 2023-07-21 9:02 ` vries at gcc dot gnu.org 2023-07-21 9:53 ` vries at gcc dot gnu.org 2023-07-21 14:12 ` vries at gcc dot gnu.org 2023-07-31 14:16 ` vries at gcc dot gnu.org 2023-08-04 11:24 ` vries at gcc dot gnu.org 2023-08-05 15:57 ` cvs-commit at gcc dot gnu.org [this message] 2023-08-05 16:01 ` vries at gcc dot gnu.org 2023-10-30 16:14 ` josh.cottingham at linaro dot org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-30661-4717-NYvZ3ThsUf@http.sourceware.org/bugzilla/ \ --to=sourceware-bugzilla@sourceware.org \ --cc=gdb-prs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).