Skip to content

Introduce variable location representation and tracking #745

@djolertrk

Description

@djolertrk

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions