1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:28:12 +00:00

Kernel: Add optional userspace backtrace to Process::crash

This is very useful for debugging the initial userspace applications, as
the CrashReporter is not yet running.
This commit is contained in:
Timon Kruiper 2023-01-30 12:10:29 +01:00 committed by Linus Groh
parent 3611427ce2
commit 3295137224
6 changed files with 23 additions and 6 deletions

View file

@ -39,7 +39,7 @@ void handle_crash(Kernel::RegisterState const& regs, char const* description, in
PANIC("Crash in kernel");
}
process.crash(signal, regs.ip(), out_of_memory);
process.crash(signal, { regs }, out_of_memory);
}
}