From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D908F385B835; Fri, 17 Apr 2020 13:39:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D908F385B835 From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug symtab/14148] -fdebug-types-section regresses static scope of types Date: Fri, 17 Apr 2020 13:39:09 +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: vries 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 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, 17 Apr 2020 13:39:10 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D14148 --- Comment #5 from Tom de Vries --- (In reply to Tom de Vries from comment #3) > I'm not sure if this causes the difference with and without -readnow > described in comment 0. With a tentative patch for the gcc PR in place, and this gdb patch: ... diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c index 4910c9b6fc..cf81092691 100644 --- a/gdb/dwarf2/read.c +++ b/gdb/dwarf2/read.c @@ -15458,7 +15458,8 @@ process_structure_scope (struct die_info *die, stru= ct dwarf2_cu *cu) these DIEs are identified by the fact that they have no byte_size attribute, and a declaration attribute. */ if (dwarf2_attr (die, DW_AT_byte_size, cu) !=3D NULL - || !die_is_declaration (die, cu)) + || !die_is_declaration (die, cu) + || dwarf2_attr (die, DW_AT_signature, cu) !=3D NULL) { struct symbol *sym =3D new_symbol (die, type, cu); ... we have the expected behaviour. --=20 You are receiving this mail because: You are on the CC list for the bug.=