[Bug debug/47966] GCC 3.4.6 and 4.4.3 generate wrong stabs debugging information for static file scope variables explicitly initialized with 0.

jonitis at gmail dot com gcc-bugzilla@gcc.gnu.org
Fri Mar 4 07:48:00 GMT 2011


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

--- Comment #9 from Dainis Jonitis <jonitis at gmail dot com> 2011-03-04 07:48:45 UTC ---
Unfortunately in legacy embedded systems it is not so easy to change toolchain.
We switched from GCC 2.95.2 to 3.4.6 as the last one that supports a.out
format. For us switching to ELF requires too much effort without any
significant gains.

As a workaround I've changed our GDB 6.8 to always trust symbol table more than
debugging information. So this reduces number of affected persons to 0 :)

If I will have time I may look in GCC source code and possibly produce a patch.



More information about the Gcc-bugs mailing list