public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug macros/29063] New: Handle macinfo section and tags
@ 2022-04-13 17:40 blarsen at redhat dot com
  2022-04-13 21:56 ` [Bug macros/29063] " simon.marchi at polymtl dot ca
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: blarsen at redhat dot com @ 2022-04-13 17:40 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=29063

            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 the
.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="CC_FOR_TARGET=clang" will show that GDB can't deal with the
macros there, and complaints are very unhelpful.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-04-18 19:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-13 17:40 [Bug macros/29063] New: Handle macinfo section and tags blarsen at redhat dot com
2022-04-13 21:56 ` [Bug macros/29063] " simon.marchi at polymtl dot ca
2022-04-18 13:37 ` tromey at sourceware dot org
2022-04-18 19:17 ` blarsen at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).