From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 387D23856DE5; Fri, 20 May 2022 15:48:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 387D23856DE5 From: "simon.marchi at polymtl dot ca" To: gdb-prs@sourceware.org Subject: [Bug symtab/29105] new DWARF reader still slow Date: Fri, 20 May 2022 15:48:30 +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: simon.marchi at polymtl dot ca X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: tromey 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 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 May 2022 15:48:31 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D29105 --- Comment #8 from Simon Marchi --- "signed int" becomes "int" when lookup_name_info::split_name is called with lang =3D=3D language_cplus: #0 cp_canonicalize_string (string=3D0x7fffffffaca0 "signed int") at cp-support.c:654=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 #1 0x0000555555c7dab4 in demangle_for_lookup (name=3D0x7fffffffaca0 "signed int", lang=3Dlanguage_cplus, storage=3D...) at symtab.c:1913=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 #2 0x0000555555c7d913 in demangle_for_lookup_info::demangle_for_lookup_info (this=3D0x7fffffffa4b8, lookup_name=3D..., lang=3Dlanguage_cplus) at symtab= .c:1864=20=20=20=20 #3 0x00005555558255d8 in gdb::optional::emplace (this=3D0x7fffffffa4b8) at ./../gdbsupport/gdb_optional.h:155=20= =20=20=20=20=20=20=20=20=20=20 #4 0x0000555555824fc3 in lookup_name_info::maybe_init, langu= age> (this=3D0x7fffffffa470, field=3D...) at /tmp/apres/gdb/symtab.h:350=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 #5 0x0000555555824d8d in lookup_name_info::cplus (this=3D0x7fffffffa470) at /tmp/apres/gdb/symtab.h:322=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20 #6 0x00005555558468f2 in lookup_name_info::language_lookup_name (this=3D0x7fffffffa470, lang=3Dlanguage_cplus) at /tmp/apres/gdb/symtab.h:2= 81 #7 0x00005555558f918e in lookup_name_info::split_name (this=3D0x7fffffffa4= 70, lang=3Dlanguage_cplus) at ./symtab.h:309 #8 0x00005555558e198f in cooked_index_functions::expand_symtabs_matching(objfile*, gdb::function_view, lookup_name_info const*, gdb::function_view, gdb::function_view, enum_flags, domain_enum_tag, search_doma= in) (this=3D0x5555567721a0, objfile=3D0x555556593400, file_matcher=3D..., lookup_name=3D0x7fffffffa6a0, symbol_matcher=3D..., expansion_notify=3D..., search_flags=3D...,=20 domain=3DVAR_DOMAIN, kind=3DALL_DOMAIN) at dwarf2/read.c:20223 #9 0x0000555555c5dd69 in objfile::lookup_symbol (this=3D0x555556593400, kind=3DGLOBAL_BLOCK, name=3D0x7fffffffaca0 "signed int", domain=3DVAR_DOMAI= N) at symfile-debug.c:276 #10 0x0000555555c7f0fc in lookup_symbol_via_quick_fns (objfile=3D0x55555659= 3400, block_index=3DGLOBAL_BLOCK, name=3D0x7fffffffaca0 "signed int", domain=3DVA= R_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=3D0x555556593400, block_index=3DGLOBAL_BLOCK, name=3D0x7fffffffaca0= "signed int", domain=3DVAR_DOMAIN) at symtab.c:2599 #12 0x0000555555c7f7b6 in lookup_symbol_global_or_static_iterator_cb (objfile=3D0x555556593400, cb_data=3D0x7fffffffaa30) at symtab.c:2663 #13 0x0000555555c24b70 in svr4_iterate_over_objfiles_in_search_order (gdbarch=3D0x5555567b34a0, cb=3D0x555555c7f722 , cb_data=3D0x7fffffffaa30, current_objfile=3D0x0) at solib-sv r4.c:3168 #14 0x00005555556d319e in gdbarch_iterate_over_objfiles_in_search_order (gdbarch=3D0x5555567b34a0, cb=3D0x555555c7f722 , cb_data=3D0x7fffffffaa30, current_objfile=3D0x0) at /tmp/ apres/gdb/gdbarch.c:4937 #15 0x0000555555c7f965 in lookup_global_or_static_symbol (name=3D0x7fffffff= aca0 "signed int", block_index=3DGLOBAL_BLOCK, objfile=3D0x0, domain=3DVAR_DOMAI= N) at symtab.c:2709 #16 0x0000555555c7faf7 in lookup_global_symbol (name=3D0x7fffffffaca0 "sign= ed int", block=3D0x0, domain=3DVAR_DOMAIN) at symtab.c:2760 #17 0x0000555555c7f2ff in language_defn::lookup_symbol_nonlocal (this=3D0x5555564d2fc0 , name=3D0x7fffffffaca0 "signed int= ", block=3D0x0, domain=3DVAR_DOMAIN) at symtab.c:2520 #18 0x0000555555c7e5bd in lookup_symbol_aux (name=3D0x7fffffffaca0 "signed = int", match_type=3Dsymbol_name_match_type::FULL, block=3D0x0, domain=3DVAR_DOMAIN, language=3Dlanguage_c, is_a_field_of_this=3D0x0) at symtab.c:2170 #19 0x0000555555c7dd18 in lookup_symbol_in_language (name=3D0x7fffffffaca0 "signed int", block=3D0x0, domain=3DVAR_DOMAIN, lang=3Dlanguage_c, is_a_field_of_this=3D0x0) at symtab.c:1962 #20 0x00005555559884d3 in lookup_typename (language=3D0x5555564d2fc0 , name=3D0x7fffffffaca0 "signed int", block=3D0x0, noerr= =3D1) at gdbtypes.c:1694 #21 0x00005555559886ae in lookup_signed_typename (language=3D0x5555564d2fc0 , name=3D0x555555fdb81d "int") at gdbtypes.c:1723 --=20 You are receiving this mail because: You are on the CC list for the bug.=