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

🤓 [wasm-parser] Add readers for core dump custom sections. #1012

Merged
merged 2 commits into from
May 3, 2023

Conversation

itsrainy
Copy link
Contributor

@itsrainy itsrainy commented May 3, 2023

These are implemented following the spec in the tool-conventions repo.

@itsrainy itsrainy requested a review from fitzgen May 3, 2023 15:20
Copy link
Member

@fitzgen fitzgen left a comment

Choose a reason for hiding this comment

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

Looks great, thanks!

/// The thread name
pub name: &'a str,
/// The stack frames for the core dump
pub frames: Vec<CoreDumpStackFrame>,
Copy link
Member

Choose a reason for hiding this comment

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

We might eventually want to split these out into a sub-reader and not eagerly parse and allocate a Vec for them, but this is fine for now.

@fitzgen fitzgen merged commit cf1d02d into bytecodealliance:main May 3, 2023
@itsrainy itsrainy deleted the rainy/coredump-parser branch May 3, 2023 19:19
Mossaka pushed a commit to Mossaka/wasm-tools-fork that referenced this pull request May 29, 2023
…lliance#1012)

* 🤓 [wasm-parser] Add readers for core dump custom sections.

* Add a roundtrip test now that we have both parsing and encoding
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