Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for "-fdebug-prefix-map" to make debugging easier #259

Open
JCash opened this issue Feb 14, 2023 · 0 comments
Open

Add support for "-fdebug-prefix-map" to make debugging easier #259

JCash opened this issue Feb 14, 2023 · 0 comments
Milestone

Comments

@JCash
Copy link
Contributor

JCash commented Feb 14, 2023

Instead of having the random job folder as part of the file paths, we can substitute it with either:

  • /tmp/job123456 -> /extender/build/
    • Good for caching, and everyone gets the same paths
    • Still has to setup debug mappings locally
  • /tmp/job123456 -> /path/to/user/project
    • Good for user
    • Our caching will not work across users

From gcc:

"
-fdebug-prefix-map=old=new

When compiling files residing in directory old, record debugging information describing them as if the files resided in directory new instead. This can be used to replace a build-time path with an install-time path in the debug info. It can also be used to change an absolute path to a relative path by using . for new. This can give more reproducible builds, which are location independent, but may require an extra command to tell GDB where to find the source files. See also -ffile-prefix-map.
"

@ekharkunov ekharkunov added this to the Next release milestone Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants