Skip to content

Add handling for DW_LNS_set_epilogue_begin in wasm debug info#8414

Merged
kripken merged 1 commit intoWebAssembly:mainfrom
nchamzn:nchamzn/epiloque
Mar 5, 2026
Merged

Add handling for DW_LNS_set_epilogue_begin in wasm debug info#8414
kripken merged 1 commit intoWebAssembly:mainfrom
nchamzn:nchamzn/epiloque

Conversation

@nchamzn
Copy link
Contributor

@nchamzn nchamzn commented Mar 4, 2026

Ran in to this issue when using wasm-opt with wasm produced with Rust 1.93.1

Fatal: unknown debug line opcode: b

I've basically copied DW_LNS_set_prologue_end. The test binary is a modified version of the binary used for the existing test for prologue end too

Copy link
Member

@kripken kripken left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

This looks right to me, but I'm not a DWARF expert. I wonder if there is some additional testing we can do here? (The current tests in this repo are pretty minimal for DWARF)

@nchamzn
Copy link
Contributor Author

nchamzn commented Mar 5, 2026

Yeah also not an expert but what extra tests would you suggest? I can have a go at adding them

@kripken
Copy link
Member

kripken commented Mar 5, 2026

I'm not really sure either. I ran the emscripten tests against this, and they all passed, at least. Maybe that's good enough, landing.

@kripken kripken merged commit 4d04c22 into WebAssembly:main Mar 5, 2026
17 checks passed
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

Successfully merging this pull request may close these issues.

2 participants