From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E4D30386C597; Thu, 15 Feb 2024 12:52:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E4D30386C597 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1708001565; bh=T+HeaSDp/010rcbXEr93R5w4Rn1LC4gzk9RRKRfgg+s=; h=From:To:Subject:Date:In-Reply-To:References:From; b=FsU7i9NQCxoeI7RgYD4+6kLMhUD4UTWJYwEkU98T0lNh21T4i4sVBaddmyHsYj1d9 18XFv86WSdNoGPw8nLyiawkYXDKAZOrFz25rtGEa38xc6TPGXQhH/IWNbvpg62WloK hsG/qJgBxWU26LvhXOiJ6MtS7xkVkWR9xTfxOOZ4= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/113918] Incomplete DWARF5 debug information for anonymous unions Date: Thu, 15 Feb 2024 12:52:44 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: debug X-Bugzilla-Version: 13.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc bug_status assigned_to attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D113918 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gn= u.org --- Comment #2 from Jakub Jelinek --- Created attachment 57433 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D57433&action=3Dedit gcc14-pr113918.patch Untested patch to emit DW_AT_export_symbols for those cases. That said, I believe GDB must have some code to handle anonymous structs/un= ions even without that, because e.g. on this new testcase p s.i just works even without the patch (and after all, should even in DWARF4 and earlier where s= uch attribute wasn't there at all).=