https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70428

--- Comment #2 from hongxu jia <hongxu.jia at windriver dot com> ---
(In reply to jos...@codesourcery.com from comment #1)
> I don't think -fdebug-prefix-map is meant to cover this case; you're meant 
> to use it with paths in the form in which they appear in debug info, which 
> means passing such an option with the pwd (and options with absolute -I 
> paths etc.), not an option with a combination of the pwd and a path passed 
> to the compiler.

Do you mean the combination of using *"relative path" source to compile*
and *"absolute path" in -fdebug-prefix-map to remap* is not proper?

In my case, there are lots of sources with relative/absolute paths,
and we want to set '-fdebug-prefix-map' to remap in globally. Rather
than set specific '-fdebug-prefix-map' according to the path of
sources (relative or absolute).

BTW, I come from OpenEmbedded community (https://www.yoctoproject.org/),
and we use the powerful gcc for cross compilation. We use -fdebug-prefix-map
to remap build dir to target dir, so we could use gdb to debug on target
and it could work with sources.

//Hongxu

Reply via email to