Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split-dwarf support #3518

Open
dschuff opened this issue Jan 26, 2021 · 0 comments
Open

Split-dwarf support #3518

dschuff opened this issue Jan 26, 2021 · 0 comments

Comments

@dschuff
Copy link
Member

dschuff commented Jan 26, 2021

Currently Binaryen supports rewriting DWARF information embedded in custom sections in a finally-linked wasm binary. LLVM recently added support for split-dwarf (i.e. putting some of the debug info in .dwo files) and creating dwarf packages (i.e. combining the .dwo files into a .dwp file).
Currently our preferred debugging workflow is to use the correct options to avoid using Binaryen at all (i.e. enable wasm-bigint and linktime-optlevel at 1 or 0); this makes linking much faster. But when using ASYNCIFY or other features which require Binaryen, this isn't an option.
If split-dwarf ends up being a recommended or preferred way of creating debug info (which currently seems likely to happen?) then Binaryen should support updating split-dwarf info in dwo and/or dwp form as well as fully-linked.

This should not be as involved as e.g. supporting object files (there are no relocations), but will be a bit of work, as some of the fields are interpreted differently in split-dwarf mode (and of course Binaryen will have to open other files to find the debug info)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant