On Fri, 28 Feb 2020, Eric Botcazou wrote:
> > +1 - I think Alexey correctly pointed out in the Bugzilla that debuginfo
> > growth from this change would be minimal (usually the number of global
> > variables is very small compared to number of functions (and linemap info).
>
> Well, this will drag the associated types too, so figures would be welcome...
Hm. So apparently at -g1 we don't emit type information for functions, and
gdb sees each function as 'void foo()' regardless of actual prototype.
Otherwise I would expect most of the types to be already present in debug info.
I wonder if it would make sense to emit defined variables in a similar fashion,
i.e. only address and size?
(assuming that still fits Alexey's needs)
Thanks.
Alexander