mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-05 16:14:38 +00:00
Kernel: Send more specific signals when crashing due to CPU exceptions.
- For division by zero, send SIGFPE. - For illegal instruction, send SIGILL. - For the rest, default to SIGSEGV.
This commit is contained in:
@@ -720,14 +720,14 @@ void Process::sys$sigreturn()
|
||||
ASSERT_NOT_REACHED();
|
||||
}
|
||||
|
||||
void Process::crash()
|
||||
void Process::crash(int signal)
|
||||
{
|
||||
ASSERT_INTERRUPTS_DISABLED();
|
||||
ASSERT(!is_dead());
|
||||
|
||||
dump_backtrace();
|
||||
|
||||
m_termination_signal = SIGSEGV;
|
||||
m_termination_signal = signal;
|
||||
dump_regions();
|
||||
ASSERT(is_ring3());
|
||||
die();
|
||||
|
||||
Reference in New Issue
Block a user