Index: dwarf2read.c =================================================================== RCS file: /cvs/src/src/gdb/dwarf2read.c,v retrieving revision 1.167 diff -u -p -r1.167 dwarf2read.c --- dwarf2read.c 16 Oct 2004 00:41:00 -0000 1.167 +++ dwarf2read.c 17 Oct 2004 00:01:23 -0000 @@ -6609,7 +6609,19 @@ dwarf_decode_lines (struct line_header * for (file_index = 0; file_index < lh->num_file_names; file_index++) if (lh->file_names[file_index].included_p == 1) { - char *include_name = lh->file_names [file_index].name; + const struct file_entry fe = lh->file_names [file_index]; + char *include_name = fe.name; + char *dir_name = NULL; + + if (fe.dir_index) + dir_name = lh->include_dirs[fe.dir_index - 1]; + + if (!IS_ABSOLUTE_PATH (include_name) && dir_name != NULL) + { + include_name = + concat (dir_name, SLASH_STRING, include_name, NULL); + make_cleanup (xfree, include_name); + } if (strcmp (include_name, pst->filename) != 0) dwarf2_create_include_psymtab (include_name, pst, objfile);