Skip to content

Dwarf Debugging #169

Description

@thesuhas

Need to update dwarf debugging post instrumentation to make it consistent with updated wasm binary. User must not see any debugging information related to injected code. Any debugging information present before injection must translate and give identical outcomes.

When it comes to individual debug sections:

  • debug_info: Copy it across but information related to debug_line must be updated.
  • debug_line: Update the addresses with the new locations in the wasm binary. Will need to store metadata for this.
  • All other sections: just copy

In order to generate dwarf data for handwritten .wat files, can use wasm-tools parse --generate-dwarf full

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions