Witold Filipczyk <[EMAIL PROTECTED]> writes:

> Having files with the same names in the project is bad, because gdb
> cannot deal with them in the right way. gdb remembers only basenames,
> because object files are built from directory where sources are stored.
> When gdb meet eg. renderer.c, it doesn't know which file it is.

I don't have this problem, with gcc-4.0 4.0.3-3, binutils
2.16.1cvs20060413-1, and gdb 6.3-5 from Debian.  I compile with
"-O0 -ggdb -Wall".  If I run these commands in GDB,

list render_html_document
list render_plain_document
list render_document

then GDB each time shows the source code from the correct
renderer.c file.  So the directory information must be in there
somewhere.

If you can't get it to work, I think it would be better to change
the build system than rename files.  (Perhaps even get rid of the
slowly-starting recursive make processes!)

Attachment: pgp8ibH2N3dA0.pgp
Description: PGP signature

_______________________________________________
elinks-dev mailing list
elinks-dev@linuxfromscratch.org
http://linuxfromscratch.org/mailman/listinfo/elinks-dev

Reply via email to