1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-02 20:22:13 +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()
{
ASSERT_INTERRUPTS_DISABLED();
ASSERT(is_ring3());
ASSERT(state() != Dead);
m_termination_signal = SIGSEGV;
dump_regions();
ASSERT(is_ring3());
die();
ASSERT_NOT_REACHED();
}