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

Backtrace: Display binary offset #155

Open
kateinoigakukun opened this issue Oct 23, 2024 · 0 comments
Open

Backtrace: Display binary offset #155

kateinoigakukun opened this issue Oct 23, 2024 · 0 comments

Comments

@kateinoigakukun
Copy link
Member

kateinoigakukun commented Oct 23, 2024

We should provide a way to map a Pc to its binary offset in the source module level for a better understanding of where the program crashed. Additionaly we need this mapping for future debugging support as DWARF information don't know Pc.
For now, all single "trappable" VM instruction corresponds to a single Wasm-level instruction (no unified instructions nor pseudo trappable VM instruction), so a Pc (at trappable instruction) -> BinaryOffset is injective.

We need to figure out how to build an address map function efficiently.

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