[Bug debug/9957] gcc -g does not seem to produce the correct stabs for source file
carlo at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Fri Oct 3 12:45:00 GMT 2003
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9957
------- Additional Comments From carlo at gcc dot gnu dot org 2003-10-03 12:45 -------
ARGH. What do I have today? Correction again:
The remark WAS for the as output (.o) file, cc1
produces the .s file of course.
So, sorry - but I meant the final linker (collect2)
to be the problem case :/. But still, it works fine
for me with both mainline (and -gstabs) as well as
2.95.3.
~>gcc-2.95.3 -gstabs troep.c
~>objdump -G a.out | egrep '(n_value|troep\.c)'
Symnum n_type n_othr n_desc n_value n_strx String
0 SO 0 0 080483d0 1 troep.c
~>echo "main() {}" > troep.c
~>gcc-cvs-3.4 -gstabs troep.c
~>objdump -G a.out | egrep '(n_value|troep\.c)'
Symnum n_type n_othr n_desc n_value n_strx String
0 SO 0 0 08048314 1 troep.c
More information about the Gcc-bugs
mailing list