http://llvm.org/bugs/show_bug.cgi?id=14658
Bug #: 14658
Summary: debug info DW_AT_comp_dir is not the same path as that
used to resolve file names
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Keywords: googler
Severity: enhancement
Priority: P
Component: C++
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected],
[email protected]
Blocks: 14330
Classification: Unclassified
gdb.base/fullname.exp is failing due to a gap between the DW_AT_comp_dir and
the DW_AT_name of the compile_unit. The latter is not a path relative to the
former.
I believe this is reproduced outside the test suite by doing something like
this:
PWD=/foo/bar clang baz.cpp
the DW_AT_name will be baz.cpp, resolved relative to the actual current working
directory of clang, not the PWD variable.
the value of DW_AT_comp_dir will be the value of $PWD
Thus the debugger cannot find the file because baz.cpp is in the real current
working directory, not /foo/bar.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs