On Tue, 12 Apr 2022 08:39:54 GMT, Andrew Haley <a...@openjdk.org> wrote:

> > I excluded all kinds of debuginfo files because I didn't know if they could 
> > be made free of absolute paths, and it was out of scope for what I was 
> > doing at the time.
> 
> GCC, I believe, uses whatever pathname you give to the compiler in the 
> debuginfo. If you give GCC relative pathnames, that's what it emits.

@theRealAph The current strategy is to retain full paths in cmdlines, so that 
they can be copy & pasted from logs and just invoked, if relative paths are 
used then you need to be in the right place. Hence instead to achieve relative 
paths in the debuginfo, we need to use --debug-prefix-map option.

-------------

PR: https://git.openjdk.java.net/jdk/pull/8177

Reply via email to