Re: gdb and files with the same names
Kalle Olavi Niemitalo <[email protected]>
| Newsgroups | gmane.comp.web.links |
|---|---|
| Message-ID | <[email protected]> |
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!) _______________________________________________ elinks-dev mailing list [email protected] http://linuxfromscratch.org/mailman/listinfo/elinks-dev
signature.asc
(application/pgp-signature, 188 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQFE8gyfHm9IGt60eMgRAnKNAKDWyynmdGcaJI1TGYpZZcR3VVzSMACfenJh PD3G4lq8NwrZd7g8bqisDec= =FThd -----END PGP SIGNATURE-----