Skip to content

DWARF-5 support #932

Closed
Closed
@ggreif

Description

@ggreif

Current Goal

The upcoming milestone is Exprloc support for the Wasm-style locations. I'll try to put together a PR next.

So far I see following problems (possibly related to #1613):

Next Goal

  • accept .debug_types (middle-term)

OUTDATED info below

I gather that the Wasm DWARF spec defines DWARF-5 as the baseline debug format.

However several sections from Version 5 are rejected by wasmtime with panics. E.g.
https://github.com/bytecodealliance/wasmtime/blob/master/crates/debug/src/read_debuginfo.rs#L63

For my purposes ".debug_rnglists" is the most important.

Is there any ETA for supporting these?

Note: The clang-10 compiler (currently in rc1) doesn't reliably emit DWARF-5 yet.

clang-11 (pre-release) seems to generate DWARF-5 without crashing. As per #1410 the DWARF example Wasm files are compiled with this clang.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions