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 an equivalent to -grecord-command-line/-grecord-gcc-switches #133224

Open
khuey opened this issue Nov 20, 2024 · 0 comments
Open

Add an equivalent to -grecord-command-line/-grecord-gcc-switches #133224

khuey opened this issue Nov 20, 2024 · 0 comments
Labels
A-CLI Area: Command-line interface (CLI) to the compiler A-debuginfo Area: Debugging information in compiled programs (DWARF, PDB, etc.) C-feature-request Category: A feature request, i.e: not implemented / a PR. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. WG-debugging Working group: Bad Rust debugging experiences

Comments

@khuey
Copy link
Contributor

khuey commented Nov 20, 2024

Other widely used compilers (gcc, clang, etc) have the ability to record their command line arguments in the debug information (for DWARF in the DW_AT_producer field). Rustc currently hardcodes this to "" when calling LLVMRustDIBuilderCreateCompileUnit.

@rustbot label +A-debuginfo +WG-debugging

@khuey khuey added the C-bug Category: This is a bug. label Nov 20, 2024
@rustbot rustbot added needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. A-debuginfo Area: Debugging information in compiled programs (DWARF, PDB, etc.) WG-debugging Working group: Bad Rust debugging experiences labels Nov 20, 2024
@saethlin saethlin added T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. C-feature-request Category: A feature request, i.e: not implemented / a PR. and removed needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. C-bug Category: This is a bug. labels Nov 20, 2024
@fmease fmease added the A-CLI Area: Command-line interface (CLI) to the compiler label Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-CLI Area: Command-line interface (CLI) to the compiler A-debuginfo Area: Debugging information in compiled programs (DWARF, PDB, etc.) C-feature-request Category: A feature request, i.e: not implemented / a PR. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. WG-debugging Working group: Bad Rust debugging experiences
Projects
None yet
Development

No branches or pull requests

4 participants