-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use base location of runtime source files, not compiled location (#319)
When debugging in GDB, it can be helpful to use tools such as `layout src` in order to use the source files for a specific runtime. However, the embedded debugging information points to the copied source directory in the build directory rather than the canonical source under `runtime/`. This PR adds a compile flag, `-fdebug-prefix-map`, which embeds debugging information that points to the canonical runtime source. This is useful in exotic (but seen!) debugging configurations where the runtime build directory may have moved or no longer exists.
- Loading branch information
Showing
2 changed files
with
17 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters