Werner Lemberg wrote: > Hmm, working with plain gdb is just fine. That could be explained if gdb and Eclipse simply have different heuristics for looking up source files, given a name without directory specification.
> Are you *really* sure that this is a limitation of the ELF format and > not a bug in the Eclipse IDE? I simply can't believe that... Hmm, indeed some parts of the debug info appear to have the full file name. When I build with $builddir = $srcdir, "readelf --debug-dump src/roff/troff/troff" contains <0><1ef06>: Abbrev Number: 1 (DW_TAG_compile_unit) DW_AT_stmt_list : 17622 DW_AT_entry_pc : 0 0 DW_AT_name : (indirect string, offset: 0x8865): input.cpp DW_AT_comp_dir : (indirect string, offset: 0xf48): /home/bruno/groff/src/roff/troff DW_AT_producer : (indirect string, offset: 0x9e2): GNU C++ 3.2.2 (Mandrake Linux 9.1 3.2.2-3mdk) DW_AT_language : 4 (C++) The File Name Table: Entry Dir Time Size Name 1 0 0 0 input.cpp 2 0 0 0 /usr/include/bits/waitstatus.h and when I build with $builddir != $srcdir, I get absolute pathnames everywhere: <0><1eefa>: Abbrev Number: 1 (DW_TAG_compile_unit) DW_AT_stmt_list : 18891 DW_AT_entry_pc : 0 0 DW_AT_name : (indirect string, offset: 0x8b0a): /home/bruno/groff/src/roff/troff/input.cpp DW_AT_producer : (indirect string, offset: 0x9e2): GNU C++ 3.2.2 (Mandrake Linux 9.1 3.2.2-3mdk) DW_AT_language : 4 (C++) The File Name Table: Entry Dir Time Size Name 1 0 0 0 /home/bruno/groff/src/roff/troff/input.cpp 2 0 0 0 /usr/include/bits/waitstatus.h I'll see whether I can configure Eclipse or g++ so that this works... Bruno _______________________________________________ Groff mailing list Groff@gnu.org http://lists.gnu.org/mailman/listinfo/groff