Feature description
Currently, the compiler infrastructure (from generated DWARF) parses source locations only (line:column/.debug_line section). The idea is to parse variables locations (DW_AT_location) as well.
DWARF standard was extended with DW_OP_WASM_location that can represent locals, globals and stack operands.
HIR can be extended with a new builtin/debug instruction - builtin.debug_value, that contains several operands, like pointer to an attribute representing variable (DIlocalVariableAttr), function (DISubprogramAttr) and expression (DIExpression) that represents the value.
Why is this feature needed?
No response