Imagine we call clang -g aaa/bbb.cpp. Current error reporting would
print something like:
error: aaa/bbb.cpp :x: error text.
But we are able to print full path including current working directory of a compilation command,
like:
/home/bar/some_path/aaa/bbb.cpp:1: text
We can get this information from DW_AT_comp_dir attribute which is:
"A DW_AT_comp_dir attribute whose value is a null-terminated string containing the current
working directory of the compilation command that produced this compilation unit in
whatever form makes sense for the host system."
Idea of doing that change belongs to Eugene Leviant, thanks again !
what do you mean with "compilation command" ?