[Bug debug/23190] [4.0/4.1 Regression] debug info omitted for uninitialized variables (stabs)
dpatel at apple dot com
gcc-bugzilla@gcc.gnu.org
Tue Aug 2 17:12:00 GMT 2005
------- Additional Comments From dpatel at apple dot com 2005-08-02 17:12 -------
Subject: Re: [4.0/4.1 Regression] debug info omitted for uninitialized variables (stabs)
On Aug 2, 2005, at 10:00 AM, mmitchel at gcc dot gnu dot org wrote:
>
> ------- Additional Comments From mmitchel at gcc dot gnu dot org
> 2005-08-02 17:00 -------
> Devang --
>
> The DWARF-2 information looks correct to me, from the section of
> DWARF-2 code
> that you posted in the original report for this bug. I know GDB
> doesn't print
> the variable, but I don't think that's the compiler's fault; the
> information
> looks OK. Is there something wrong with the DWARF-2 generated, or
> is this just
> a GDB bug?
Without the patch, GCC does not emit DW_OP_addr and DW_AT_location.
> I'm not oppposed to making the kind of change you're proposing for
> the C front
> end; I suggested the same thing. But, it is a complex change; as
> you've noted,
> there are regressions when you try it.
There is only one regression. One way to avoid it is to split
wrapup_global...
in two halves. One to emit code and second to generate debug info.
This allows
C front end to put cgraph_optimize() after writing globals but before
generating debug info.
thoughts ?
-
Devang
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23190
More information about the Gcc-bugs
mailing list