[PATCH] gcc/final.c: -fdebug-prefix-map support to remap sources with relative path

Hongxu Jia hongxu.jia@windriver.com
Thu Mar 31 04:24:00 GMT 2016


On 03/31/2016 01:58 AM, Joseph Myers wrote:
> On Sun, 27 Mar 2016, Hongxu Jia wrote:
>
>> PR other/70428
>> * final.c (remap_debug_filename): Use lrealpath to translate
>> relative path before remapping
> I think this would break cases that currently work.  When using
> -fdebug-prefix-map you should understand what paths will appear in debug
> info (which means understanding something about how a path gets split by
> DWARF into multiple pieces), and likely inspect the resulting debug info
> (in an automated way) to see if you missed any paths and need to add more
> such options.

Got it, thanks to point it out.

//Hongxu




More information about the Gcc-patches mailing list