Mail Archives: djgpp-workers/2001/04/27/10:30:51
I looked at dwarf2read.c in the GDB distribution, and couldn't find
anything that would explain such total failure to recognize and/or
process line number information.
One thing that bothers me is that some of the comments in dwarf2read.c
seem to imply it was written for ELF files. But I'm not sure how
accurate are those comments, and I don't know enough about ELF to see
if the code in dwarf2read.c indeed assumes something ELFish.
DJ, does Cygwin support dwarf2, and if so, did you need changes in GDB
for that support?
I did find in dwarf2read.c some issue with DOSish file names, for
which I'll submit a patch, but I don't think that could be a problem
in this simple test case, since it didn't involve absolute file names.
In order for me to DTRT in the patch, could someone please compile and
link with -gdwarf-2 files whose names are in DOS-style form, like
"d:/foo.c", "d:\foo\bar.c", and "d:/FOO/Bar.c", and see how do they
end up in the debug info? In particular, do the backslashes stay as
backslashes, and is the file-name letter-case changed in any way?
- Raw text -