This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/77985] DW_AT_comp_dir is omitted when filename is absolute and the file does not contain a specific typedef
- From: "infinity0 at pwned dot gg" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 14 Oct 2016 12:53:23 +0000
- Subject: [Bug debug/77985] DW_AT_comp_dir is omitted when filename is absolute and the file does not contain a specific typedef
- Auto-submitted: auto-generated
- References: <bug-77985-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77985
--- Comment #5 from infinity0 at pwned dot gg ---
> Piggybacking a slightly unrelated issue: [..]
Upon further investigation it seems that, whilst the debug-prefix-maps do not
get applied to DW_AT_name filenames in the output of -dA, it does get applied
in the final assembled binary. Sorry for the noise.
The other point about DW_AT_comp_dir and absolute paths remains though - I'm
thinking it would be simpler to just emit it in all cases, and get rid of the
IS_ABSOLUTE_PATH checks. Since most things "in the wild" actually do have this
typedef via standard library includes, this is actually the "expected"
behaviour, hence why I titled this bug the way it is titled.