[[PATCH V9] 1/7] dwarf: add a dwarf2int.h internal interface
Jose E. Marchesi
Thu Jun 24 13:52:25 GMT 2021
> On 5/31/21 12:57 PM, Jose E. Marchesi via Gcc-patches wrote:
>> This patch introduces a dwarf2int.h header, to be used by code that
>> needs access to the internal DIE structures and their attributes.
> Why not put these bits in dwarf2out.h?
We think that it makes sense to have a separated interface file for the
implementation of DWARF-based debug formats. It is called `internal'
because it provides access to internal data structures as well as the
basic accessor functions to the internals of the DWARF DIEs.
That said, if you think this is a blocker, we can put these definitions
in dwarf2out.h. But we think dwarf2out.c is in much need of some
refactoring, and this could be a first step in that direction :)
More information about the Gcc-patches