jkmcnk / sx-gcc

The GNU Compiler Collection port to NEC SX CPU architecture.
GNU General Public License v2.0
0 stars 2 forks source link

incomplete/wrong debugging info #52

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
the following issues cause debugging info produced by gcc to be improperly
interpreted by dbx:

a) function-local symbols are not added to symtable
b) wrong section number of function arguments (and probably local symbols
as well, see (a)) in symtable: should be -1, gcc sets it to -2
c) wrong filename in the file symtable entry

Original issue reported on code.google.com by jmoc...@gmail.com on 24 Nov 2008 at 1:08

GoogleCodeExporter commented 8 years ago
(b) and (c) fixed with latest binutils 2.19 port (use optimized coff linker + 
add
language info to symtable entries) and gcc r140 (output file pseudo-op).

(a) is caused by bfd insisting on stripping local symbols. need to find out how 
to
change this behaviour.

Original comment by jmoc...@gmail.com on 25 Nov 2008 at 3:45

GoogleCodeExporter commented 8 years ago
Issue 38 has been merged into this issue.

Original comment by jmoc...@gmail.com on 25 Nov 2008 at 3:46

GoogleCodeExporter commented 8 years ago
actually, (a) is caused by gcc not outputting apropriate debug info into 
assembler in
the first place. need to debug sdbout.c ...

Original comment by jmoc...@gmail.com on 25 Nov 2008 at 4:16

GoogleCodeExporter commented 8 years ago

Original comment by jmoc...@gmail.com on 26 Nov 2008 at 1:46

GoogleCodeExporter commented 8 years ago

Original comment by jmoc...@gmail.com on 10 Dec 2008 at 9:29

GoogleCodeExporter commented 8 years ago

Original comment by jmoc...@gmail.com on 15 Jan 2009 at 12:31