[LLVMbugs] [Bug 14658] New: debug info DW_AT_comp_dir is not the same path as that used to resolve file names
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Dec 19 14:21:06 PST 2012
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: unassignedclangbugs at nondot.org
ReportedBy: dblaikie at gmail.com
CC: dgregor at apple.com, echristo at gmail.com,
llvmbugs at cs.uiuc.edu
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.
More information about the llvm-bugs
mailing list