[Bug debug/51358] incorrect/missing location for function arg, -O0, without VTA

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Aug 13 08:56:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51358

--- Comment #7 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-08-13 08:55:05 UTC ---
(In reply to comment #4)
> It would not be helpful, systemtap would then see no data (just not wrong
> data).
> 
> Also at that time location list will need to be used and currently GDB when it
> sees any location list it thinks it no longer needs to skip the prologue.
> OTOH GDB could look at -grecord-gcc-switches first which it currently does not
> so I should just finally implement -grecord-gcc-switches in GDB in such case.

I think seeing wrong data, thus, wrong-debug is never superior over "no debug
info / no data".



More information about the Gcc-bugs mailing list