Following command line does not generate debug info for bar.c gcc -gfull -O0 foo.c bar.c -o foobar
-gfull is a Darwin specific compiler option. -- Summary: gcc 4.0 doesn't emit debug info for one of the files if two files are given on the same compile line Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: driver AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: dpatel at apple dot com CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: powerpc-darwin GCC host triplet: powerpc-darwin GCC target triplet: powerpc-darwin http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18760