[Bug debug/35615] Debug information for .debug_loc section incorrect
wilson at tuliptree dot org
gcc-bugzilla@gcc.gnu.org
Thu Mar 20 06:56:00 GMT 2008
------- Comment #11 from wilson at tuliptree dot org 2008-03-20 06:56 -------
Subject: Re: Debug information for .debug_loc section incorrect
deuling at de dot ibm dot com wrote:
> ------- Comment #6 from deuling at de dot ibm dot com 2008-03-18 16:52 -------
> ./readelf --debug-dump=line give
I get a little different output on the executable you attached to the
PR, but the same effective result that the filename is missing.
The Directory Table is empty.
The File Name Table:
Entry Dir Time Size Name
1 0 0 0
Oh, wait, after I pasted it in here I see that I have a non-printing
control character which wasn't obvious earlier.
Anyways, I don't see this problem when I compile the file myself. The
filename is there in the .s file and in the .o file, and in the
executable. So there seems to be something wrong with your setup.
You could try tracking down exactly where it fails. Look for a ".file 1
tmp.F" directive in the .s file. Look at the readelf --debug-dump=line
output for the .o file. We already know that it is missing in the
executable. Depending on where it first goes missing, this is either a
compiler problem, an assembler problem, or a linker problem.
As before, I do not see any compiler or binutils problem here.
Jim
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35615
More information about the Gcc-bugs
mailing list