[Dwarf-discuss] Macros after "#include" does not show up DWARF
David Anderson
davea42@linuxmail.org
Fri Sep 13 20:24:01 GMT 2024
On 9/12/24 11:39, David Blaikie via Dwarf-discuss wrote:
> Oooh, fascinating. Certainly llvm-dwarfdump has explicit support for
> sections it expects to be fragmented (multiple sections with the
> same name, for comdat purposes, etc) - and so llvm-dwarfdump
> certainly wouldn't dump this correctly (probably ignores all but the
> first section named `.debug_macro`) from an object file (of course in
> a linked executable, none of this still exists so it should be
> fine).
Yes. In an object file with comdat sections dwarfdump and libdwarf
choose a single section (base section or comdat) based
on the user's request.
dwarfdump will tell the user what comdat
sections are in use (base is assigned #1, dwo is assigned #2
each comdat assigned a number 3,4,... and so on.
dwarfdump --format-group-number=3 for example.
So to see all one must run dwarfdump N times when there are groups.
David Anderson
--
What is mind? No matter. What is matter? Never mind. --
Thomas Hewitt Key, 1799-1875
More information about the Dwarf-discuss
mailing list