This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PR debug/26881 (dwarf2out, cgraph and local statics)


On Mon, May 15, 2006 at 09:46:48PM -0400, Daniel Berlin wrote:
> I agree, but only because it's not too hard,  in theory, to do.
> Generate debug info *first* before optimizing, except leave all variable
> locations as "optimized out".
> After optimization, walk back over the variables that still exist and
> fill in their locations.
> 
> Though it may not let you place a cond on an optimized-out variable (it
> may just say that though, i don't think it will pretend it no longer
> exists).

It'll probably do nothing sensible.  I'd expect an error message the
first time the breakpoint was hit.

-- 
Daniel Jacobowitz
CodeSourcery


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]