Join GitHub today
Fix DWARF generation for enums #54004
The DWARF generated for Rust enums was always somewhat unusual.
This patch changes the generated DWARF to use the standard tags meant
The patch to implement this went in to LLVM 7. In order to work with
Support for this DWARF is in the Rust lldb and in gdb 8.2.
Click to expand the log.
I built rust against LLVM 5, 6, and rust-llvm; and then I tested each one against gdb 7.11, 8.1, and 8.2.
This found a crash in 8.2, filed: https://sourceware.org/bugzilla/show_bug.cgi?id=23626. I'll fix this before 8.2.1.
I couldn't reproduce the bot's failure; but the bot is using 7.11, and my feeling is that a minor output regression there is nothing to worry about. So, if it persists and there are no objections, I'll just bump the minimum gdb version for the test.