1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 01:27:42 +00:00

Process: Dump regions when a ring0 process crashes.

This commit is contained in:
Andreas Kling 2019-02-08 09:45:53 +01:00
parent 90d3375dc2
commit 7e623e7ff2

View file

@ -934,10 +934,10 @@ void Process::push_value_on_stack(dword value)
void Process::crash() void Process::crash()
{ {
ASSERT_INTERRUPTS_DISABLED(); ASSERT_INTERRUPTS_DISABLED();
ASSERT(is_ring3());
ASSERT(state() != Dead); ASSERT(state() != Dead);
m_termination_signal = SIGSEGV; m_termination_signal = SIGSEGV;
dump_regions(); dump_regions();
ASSERT(is_ring3());
die(); die();
ASSERT_NOT_REACHED(); ASSERT_NOT_REACHED();
} }