Issue 250325.1: Add new language code for Nim

Author: Jacek Sieka
Champion:
Date submitted: 2025-03-25
Date revised:
Date closed: 2025-03-27
Type: Enhancement
Status: Lang Code Assigned
DWARF version: 6

As community member and maintainer of nlvm, an LLVM-based compiler for the Nim language, I'd like to propose that a new language constant is added for it in v6!

Our current debugging experience is based on pretending to be C and using Itanium-abi-based mangling to piggy-back on C++ demanglers which of course isn't optimal as the C++ syntax is foreign to many Nim developers and the C syntax lacking many "native" Nim quirks. I'd love to get the ball rolling on improving things on the debugging front with a view to also extend lldb/gdb and similar tools in the future!

The language is currently at version 2.2.2 - major ABI updates are expected to touch the "major" version while even minor releases act as feature upgrades, the 1.x series ending at 1.6. Indexing is 0-based by default (though customizable for array types).


2025-03-27: Assigned language codes DW_LANG_Nim = 0x0045 and DW_LNAME_Nim = 0x002f.