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

feat: get & print std::current_exception #1366

Merged
merged 1 commit into from
Dec 30, 2023

Conversation

Xiphoseer
Copy link
Contributor

This improves the linux diagnostics code to print the current exception if there is one. This would probably work on windows as well, but this matches the std::set_terminate call, and as far as I can tell, the windows code does something else entirely.

c.f. https://en.cppreference.com/w/cpp/error/exception_ptr

dCommon/Diagnostics.cpp Outdated Show resolved Hide resolved
Copy link
Collaborator

@EmosewaMC EmosewaMC left a comment

Choose a reason for hiding this comment

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

just a formatting pass would be great, looks good otherwise

@EmosewaMC
Copy link
Collaborator

Windows does also produce the mdmp file which contains the current exception and much more info, so its ok if this doesn't apply to windows

@Xiphoseer Xiphoseer force-pushed the feature/print-current-exception branch 2 times, most recently from 282bf11 to 458665b Compare December 29, 2023 22:31
@Xiphoseer Xiphoseer force-pushed the feature/print-current-exception branch from 458665b to 2a8145b Compare December 29, 2023 22:32
@Xiphoseer Xiphoseer merged commit 98d2f25 into main Dec 30, 2023
3 checks passed
@Xiphoseer Xiphoseer deleted the feature/print-current-exception branch December 30, 2023 13:59
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.

3 participants