From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BE41B3858C53; Fri, 26 Jan 2024 05:22:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BE41B3858C53 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1706246565; bh=vsy3++OiZo/fbo4YxU9iLH4y0LRVf2qBJuAGEpjOo/Q=; h=From:To:Subject:Date:In-Reply-To:References:From; b=AxrNFifcLsLDfX95ChF8EK4WSBtO5dtkyhK2/KnPLeDZignQTuiljtjJ9BrlUHFYo nGg6wvUiCTGpp5h4iT6juNj+Q9wOdpzVdVtLlvm3oEP34dO29P/gyNmStBkSaOMcUJ QPqV7Wwoglv4iJ7z/qHuUCYPd1XuSCHaPCIpwTOU= From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug symtab/31295] Slow symbol lookup due to missing DW_AT_const_value attribute Date: Fri, 26 Jan 2024 05:22:44 +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: 14.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vries at gcc dot gnu.org 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: cc 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=3D31295 Tom de Vries changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |vries at gcc dot gnu.org --- Comment #2 from Tom de Vries --- I build the gdb-14.1-release tag. Then I tried constructing a 2-CU example= out of comment 0. But I don't manage to reproduce the described behaviour, I s= ee only one CU being expanded. I tried compiling with both gcc-12 and clang 15.0.7: ... $ cat test.h #include class wxString { public: static const size_t npos; }; $ cat test.cpp #include "test.h" const size_t wxString::npos =3D (size_t) -1; extern int foo (void); int main (void) { return foo (); } $ cat test-2.cpp #include "test.h" extern int foo (void); int foo (void) { return wxString::npos + 1; } $ g++-12 test.cpp test-2.cpp -g $ gdb -q -batch a.out -ex "set trace-commands on" -ex "maint info symtab" -= ex "ptype wxString" -ex "maint info symtab" +maint info symtab +ptype wxString type =3D class wxString { public: static const size_t npos; } +maint info symtab { objfile /data/vries/gdb/a.out ((struct objfile *) 0x48beb90) { ((struct compunit_symtab *) 0x48b62a0) debugformat DWARF 4 producer GNU C++17 12.3.0 -mtune=3Dgeneric -march=3Dx86-64 -g name test.cpp dirname /home/vries/gdb blockvector ((struct blockvector *) 0x48f82a0) user ((struct compunit_symtab *) (null)) { symtab test.cpp ((struct symtab *) 0x48b6320) fullname (null) linetable ((struct linetable *) 0x48f82d0) } { symtab /usr/include/c++/12/x86_64-suse-linux/bits/c++config.h ((struct symtab *) 0x48b6360) fullname (null) linetable ((struct linetable *) 0x0) } { symtab /usr/lib64/gcc/x86_64-suse-linux/12/include/stddef.h ((str= uct symtab *) 0x48b63a0) fullname (null) linetable ((struct linetable *) 0x0) } { symtab /usr/include/c++/12/cstddef ((struct symtab *) 0x48b63e0) fullname (null) linetable ((struct linetable *) 0x0) } { symtab test.h ((struct symtab *) 0x48b6420) fullname (null) linetable ((struct linetable *) 0x0) } } } ... --=20 You are receiving this mail because: You are on the CC list for the bug.=