From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6235B3858C53; Wed, 13 Apr 2022 17:40:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6235B3858C53 From: "blarsen at redhat dot com" To: gdb-prs@sourceware.org Subject: [Bug macros/29063] New: Handle macinfo section and tags Date: Wed, 13 Apr 2022 17:40:02 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: macros X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: blarsen at redhat dot com 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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: Wed, 13 Apr 2022 17:40:02 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D29063 Bug ID: 29063 Summary: Handle macinfo section and tags Product: gdb Version: unknown Status: NEW Severity: normal Priority: P2 Component: macros Assignee: unassigned at sourceware dot org Reporter: blarsen at redhat dot com Target Milestone: --- The DWARF4 spec defined the .debug_macinfo section, which was replaced by t= he .debug_macro section by DWARF5, and a series of tags, such as: * DW_MACINFO_define * DW_MACINFO_undef * DW_MACINFO_start_file * DW_MACINFO_end_file * DW_MACINFO_vendor_ext and none of these are handled by GDB. The biggest problem with this is that clang, by default, uses these DWARF4 style for macro debug information. As an example to see the problem, trying gdb.base/macscp.exp using RUNTESTFLAGS=3D"CC_FOR_TARGET=3Dclang" will show that GDB can't deal with t= he macros there, and complaints are very unhelpful. --=20 You are receiving this mail because: You are on the CC list for the bug.=