-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-debuginfoArea: Debugging information in compiled programs (DWARF, PDB, etc.)Area: Debugging information in compiled programs (DWARF, PDB, etc.)C-bugCategory: This is a bug.Category: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Description
The code that generates the special DWARF field names for size-optimized enums is broken for a while now. PRs keep getting opened to "fix" this on the pretty printer side but that's not possible because the debuginfo does not contain the necessary information for the pretty printer to correctly decode a given value. See #51777 (comment) for an example and some discussion on a possible fix.
This will be fixed eventually when enums get a proper representation in DWARF. Meanwhile, it's unclear how much of a priority fixing this is.
cc @tromey
Metadata
Metadata
Assignees
Labels
A-debuginfoArea: Debugging information in compiled programs (DWARF, PDB, etc.)Area: Debugging information in compiled programs (DWARF, PDB, etc.)C-bugCategory: This is a bug.Category: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.