[Bug debugedit/33823] debugedit fails to detect sources if DWARF contains relative, not absolute paths (empty debugsourcefiles.list)
david.abdurachmanov at gmail dot com
sourceware-bugzilla@sourceware.org
Thu Jan 22 12:26:21 GMT 2026
https://sourceware.org/bugzilla/show_bug.cgi?id=33823
--- Comment #2 from David Abdurachmanov <david.abdurachmanov at gmail dot com> ---
Quick update.
It seems paths are being changed at compile time:
-ffile-prefix-map=/builddir/build/BUILD/catch-3.10.0-build/Catch2-3.10.0/=
-ffile-prefix-map=/builddir/build/BUILD/opensurge-0.6.1.2-build/opensurge-0.6.1.2=.
Then I also looked at toolbox, and it uses cgo. It does the same:
-ffile-prefix-map=/usr/lib/golang=/_/GOROOT
Looks like GCC has more similar options for different things:
-fmacro-prefix-map, -fdebug-prefix-map, -fprofile-prefix-map
From: https://reproducible-builds.org/docs/build-path/
> -ffile-prefix-map=OLD=NEW is an alias for both -fdebug-prefix-map and -fmacro-prefix-map. (available since GCC 8 and Clang 10)
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Debugedit
mailing list