This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [libcpp] maybe canonicalize system paths in line-map


Jonathan Wakely <jwakely.gcc@gmail.com> a Ãcrit:

> On 26 April 2012 11:12, Dodji Seketeli wrote:
>>
>> So maybe it'd be better to canonicalize the _cpp_file::path when it's
>> first build? ÂOne drawback of that approach would be that
>> _cpp_file::path will then permanently loose the information about the
>> current directory, that is indirectly encoded into the way the file path
>> is originally built. ÂBut do we really need that information?
>
> I don't know, but I certainly don't need it in diagnostic output.  It
> occurred to me last night (while debugging some deeply nested template
> instantiations in libstdc++ headers) that the same
> target/lib/../../../.. junk appears in file paths shown by GDB.  Does
> this change also affect the paths in the debug info?

I believe so.

>  I hope it does, as it will make stack traces involving libstdc++
> headers easier to read.

Agreed.

-- 
		Dodji


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]