On 26/10/23 10:35, Richard Biener wrote:
On Mon, Oct 23, 2023 at 2:57 AM Mark Harmstone <m...@harmstone.com> wrote:
This patch and the following add initial support for Microsoft's
CodeView debugging format, as used by MSVC, to mingw targets.
A high-level question - it seems there's almost no information in the
codeview sections,
so is that debug format even inferior to STABS? Is it even used with
contemporary
toolchains or is DWARF a thing with MSVC?
This isn't comprehensive, I'm just adding line number info first. CodeView is as
fully featured as DWARF.
If CodeView is as full-featured as DWARF you are going to run into issues with
how we handle LTO given at dwarf2out_finish time all the DWARF for types and
declarations is "gone" (to disk). For that post-processing the binary would be
much easier.
Thanks, I'll bear that in mind once I get to coding the bits for type
declarations.
Types are stored in the .debug$T section, as opposed to the .debug$S section
dealt
with here, so it might turn out that we'll need to deal with the two sections in
different ways.
Mark