Skip to content

Use DW_AT_segment for multi-memory ? #10

@yurydelendik

Description

@yurydelendik

Extend DW_OP_Wasm_location to point variables (e.g. DW_TAG_variable) to proper memory. The DW_AT_segment has type of "exprloc", so we can use DW_OP_Wasm_location or other vendor tag to point to right memory, e.g. wasm-memory 2 as segment which points to third wasm memory.

Notice that attaching DW_AT_segment to the CU extends it to the entire unit including code range -- it might be a good or bad thing.

See also https://github.com/WebAssembly/multi-memory/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions