public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: "simon.marchi at polymtl dot ca" <sourceware-bugzilla@sourceware.org> To: gdb-prs@sourceware.org Subject: [Bug symtab/29105] new DWARF reader still slow Date: Fri, 20 May 2022 15:48:30 +0000 [thread overview] Message-ID: <bug-29105-4717-JT6YeeW8RM@http.sourceware.org/bugzilla/> (raw) In-Reply-To: <bug-29105-4717@http.sourceware.org/bugzilla/> https://sourceware.org/bugzilla/show_bug.cgi?id=29105 --- Comment #8 from Simon Marchi <simon.marchi at polymtl dot ca> --- "signed int" becomes "int" when lookup_name_info::split_name is called with lang == language_cplus: #0 cp_canonicalize_string (string=0x7fffffffaca0 "signed int") at cp-support.c:654 #1 0x0000555555c7dab4 in demangle_for_lookup (name=0x7fffffffaca0 "signed int", lang=language_cplus, storage=...) at symtab.c:1913 #2 0x0000555555c7d913 in demangle_for_lookup_info::demangle_for_lookup_info (this=0x7fffffffa4b8, lookup_name=..., lang=language_cplus) at symtab.c:1864 #3 0x00005555558255d8 in gdb::optional<demangle_for_lookup_info>::emplace<lookup_name_info const&, language> (this=0x7fffffffa4b8) at ./../gdbsupport/gdb_optional.h:155 #4 0x0000555555824fc3 in lookup_name_info::maybe_init<gdb::optional<demangle_for_lookup_info>, language> (this=0x7fffffffa470, field=...) at /tmp/apres/gdb/symtab.h:350 #5 0x0000555555824d8d in lookup_name_info::cplus (this=0x7fffffffa470) at /tmp/apres/gdb/symtab.h:322 #6 0x00005555558468f2 in lookup_name_info::language_lookup_name (this=0x7fffffffa470, lang=language_cplus) at /tmp/apres/gdb/symtab.h:281 #7 0x00005555558f918e in lookup_name_info::split_name (this=0x7fffffffa470, lang=language_cplus) at ./symtab.h:309 #8 0x00005555558e198f in cooked_index_functions::expand_symtabs_matching(objfile*, gdb::function_view<bool (char const*, bool)>, lookup_name_info const*, gdb::function_view<bool (char const*)>, gdb::function_view<bool (compunit_sy mtab*)>, enum_flags<block_search_flag_values>, domain_enum_tag, search_domain) (this=0x5555567721a0, objfile=0x555556593400, file_matcher=..., lookup_name=0x7fffffffa6a0, symbol_matcher=..., expansion_notify=..., search_flags=..., domain=VAR_DOMAIN, kind=ALL_DOMAIN) at dwarf2/read.c:20223 #9 0x0000555555c5dd69 in objfile::lookup_symbol (this=0x555556593400, kind=GLOBAL_BLOCK, name=0x7fffffffaca0 "signed int", domain=VAR_DOMAIN) at symfile-debug.c:276 #10 0x0000555555c7f0fc in lookup_symbol_via_quick_fns (objfile=0x555556593400, block_index=GLOBAL_BLOCK, name=0x7fffffffaca0 "signed int", domain=VAR_DOMAIN) at symtab.c:2451 #11 0x0000555555c7f5b9 in lookup_symbol_in_objfile (During symbol reading: cannot get low and high bounds for subprogram DIE at 0x3956955 objfile=0x555556593400, block_index=GLOBAL_BLOCK, name=0x7fffffffaca0 "signed int", domain=VAR_DOMAIN) at symtab.c:2599 #12 0x0000555555c7f7b6 in lookup_symbol_global_or_static_iterator_cb (objfile=0x555556593400, cb_data=0x7fffffffaa30) at symtab.c:2663 #13 0x0000555555c24b70 in svr4_iterate_over_objfiles_in_search_order (gdbarch=0x5555567b34a0, cb=0x555555c7f722 <lookup_symbol_global_or_static_iterator_cb(objfile*, void*)>, cb_data=0x7fffffffaa30, current_objfile=0x0) at solib-sv r4.c:3168 #14 0x00005555556d319e in gdbarch_iterate_over_objfiles_in_search_order (gdbarch=0x5555567b34a0, cb=0x555555c7f722 <lookup_symbol_global_or_static_iterator_cb(objfile*, void*)>, cb_data=0x7fffffffaa30, current_objfile=0x0) at /tmp/ apres/gdb/gdbarch.c:4937 #15 0x0000555555c7f965 in lookup_global_or_static_symbol (name=0x7fffffffaca0 "signed int", block_index=GLOBAL_BLOCK, objfile=0x0, domain=VAR_DOMAIN) at symtab.c:2709 #16 0x0000555555c7faf7 in lookup_global_symbol (name=0x7fffffffaca0 "signed int", block=0x0, domain=VAR_DOMAIN) at symtab.c:2760 #17 0x0000555555c7f2ff in language_defn::lookup_symbol_nonlocal (this=0x5555564d2fc0 <c_language_defn>, name=0x7fffffffaca0 "signed int", block=0x0, domain=VAR_DOMAIN) at symtab.c:2520 #18 0x0000555555c7e5bd in lookup_symbol_aux (name=0x7fffffffaca0 "signed int", match_type=symbol_name_match_type::FULL, block=0x0, domain=VAR_DOMAIN, language=language_c, is_a_field_of_this=0x0) at symtab.c:2170 #19 0x0000555555c7dd18 in lookup_symbol_in_language (name=0x7fffffffaca0 "signed int", block=0x0, domain=VAR_DOMAIN, lang=language_c, is_a_field_of_this=0x0) at symtab.c:1962 #20 0x00005555559884d3 in lookup_typename (language=0x5555564d2fc0 <c_language_defn>, name=0x7fffffffaca0 "signed int", block=0x0, noerr=1) at gdbtypes.c:1694 #21 0x00005555559886ae in lookup_signed_typename (language=0x5555564d2fc0 <c_language_defn>, name=0x555555fdb81d "int") at gdbtypes.c:1723 -- You are receiving this mail because: You are on the CC list for the bug.
next prev parent reply other threads:[~2022-05-20 15:48 UTC|newest] Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-04-29 19:51 [Bug symtab/29105] New: " tromey at sourceware dot org 2022-04-29 20:09 ` [Bug symtab/29105] " tromey at sourceware dot org 2022-05-13 20:56 ` tromey at sourceware dot org 2022-05-13 21:01 ` tromey at sourceware dot org 2022-05-16 18:51 ` tromey at sourceware dot org 2022-05-18 16:12 ` simon.marchi at polymtl dot ca 2022-05-20 1:54 ` simark at simark dot ca 2022-05-20 15:13 ` tromey at sourceware dot org 2022-05-20 15:36 ` simon.marchi at polymtl dot ca 2022-05-20 15:48 ` simon.marchi at polymtl dot ca [this message] 2022-05-26 13:49 ` cvs-commit at gcc dot gnu.org 2022-05-26 13:50 ` tromey at sourceware dot org 2022-07-13 16:49 ` tromey at sourceware dot org 2022-09-23 20:23 ` tromey at sourceware dot org 2022-09-23 20:44 ` tromey at sourceware dot org 2022-10-02 0:19 ` brobecker at gnat dot com 2022-10-06 20:44 ` tromey at sourceware dot org 2022-10-24 19:27 ` simon.marchi at polymtl dot ca 2022-11-01 20:42 ` tromey at sourceware dot org 2022-11-04 20:05 ` tromey at sourceware dot org 2022-11-04 20:10 ` simon.marchi at polymtl dot ca 2022-11-04 21:27 ` tromey at sourceware dot org 2022-11-04 21:28 ` tromey at sourceware dot org 2022-11-04 21:28 ` tromey at sourceware dot org 2022-11-05 1:28 ` simark at simark dot ca 2022-11-07 16:28 ` tromey at sourceware dot org 2022-11-16 0:09 ` tkacvins at gmail dot com 2022-11-16 0:56 ` simark at simark dot ca 2022-11-16 15:07 ` tkacvins at gmail dot com 2022-12-01 16:44 ` cvs-commit at gcc dot gnu.org 2022-12-01 18:18 ` cvs-commit at gcc dot gnu.org 2022-12-01 18:22 ` tromey at sourceware dot org 2022-12-14 10:23 ` cvs-commit at gcc dot gnu.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-29105-4717-JT6YeeW8RM@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).