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

Raise an exception when assert fails #4482

Merged
merged 2 commits into from
Mar 9, 2018
Merged

Raise an exception when assert fails #4482

merged 2 commits into from
Mar 9, 2018

Conversation

igrr
Copy link
Member

@igrr igrr commented Mar 9, 2018

  • Raise an exception when assert fails
  • Move GDB stub hooks into a separate file, provide header for it
  • Use syscall instruction raise user mode exception
  • Remove unused code in postmortem.c

Fixes #4480

@igrr igrr added this to the 2.5.0 milestone Mar 9, 2018
@igrr igrr requested a review from earlephilhower March 9, 2018 03:44
igrr added 2 commits March 9, 2018 11:47
- Move GDB stub hooks into a separate file, provide header for it
- Use syscall instruction raise user mode exception
- Remove unused code in postmortem.c

fixup

fixup
Copy link
Collaborator

@earlephilhower earlephilhower left a comment

Choose a reason for hiding this comment

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

LGTM. Instead of WDT or LoadStore we'll get SyscallExceptions, which I suppose are just as good.

@earlephilhower
Copy link
Collaborator

Let's also look at #4187 for 2.5.0 as well, since it adds the failing assert() condition output to the printed crash dump we'll now be generating with this change. It'll have some merge issues w/this change that I'll clean up once this is in.

@igrr
Copy link
Member Author

igrr commented Mar 9, 2018

Sorry for introducing merge issues, i completely forgot about #4187. If you wish we can merge that one first and i will rebase on top of it.

@earlephilhower
Copy link
Collaborator

This is a bugfix, it takes precendence! The merge fixes will take under 5 minutes to fix.

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