-
Notifications
You must be signed in to change notification settings - Fork 3.4k
[EH] Support stack traces for Wasm exceptions #17979
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
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
35f61c9
[EH] Support stack traces for Wasm exceptions
aheejin 1b16d80
Remove JS function name from stack trace
aheejin 0cfb81d
Fix comment too
aheejin 42e7991
Merge branch 'main' into wasmeh_stack_trace
aheejin a4fab86
Address comments
aheejin 842ef0f
Typo fix
aheejin 79ae2e5
Merge branch 'main' into wasmeh_stack_trace
aheejin 6449f7d
Add libc++abi-debug-noexcept to MINIMAL_TASKS
aheejin 2c165e1
Add libc++abi-debug to MINIMAL_TASKS
aheejin 007130a
ChangeLog
aheejin 34e346d
Fix dynamic linking
aheejin eb8ad2a
Add libc++abi-debug-mt-noexcept to MINIMAL_PIC_TASKS
aheejin 16d4c00
Merge branch 'main' into wasmeh_stack_trace
aheejin f9654ea
Add libc++abi-debug-mt to MINIMAL_PIC_TASKS
aheejin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps add something like. "In release builds this function is not needed and the native
_Unwind_RaiseException
is used instead"There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To add to that, perhaps we can put the entire function within
#if ASSERTIONS
? That would both further clarify it is for debug builds, and also we'd get a link error if we try to use it by mistake in the future.(Though from discussion below perhaps we want to allow this to be used optionally in release builds too. In that case ignore my comment here.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sbc100 Added the comment.
@kripken Put the
#if ASSERTIONS
guard around it.