mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 04:57:44 +00:00
Kernel: Print stack traces for crashes in release builds
Previously we'd just reset the CPU and reboot.
This commit is contained in:
parent
bcf6da8cde
commit
da24228348
1 changed files with 0 additions and 2 deletions
|
@ -2413,7 +2413,6 @@ void __assertion_failed(const char* msg, const char* file, unsigned line, const
|
|||
|
||||
[[noreturn]] void abort()
|
||||
{
|
||||
#ifdef DEBUG
|
||||
// Switch back to the current process's page tables if there are any.
|
||||
// Otherwise stack walking will be a disaster.
|
||||
auto process = Process::current();
|
||||
|
@ -2422,7 +2421,6 @@ void __assertion_failed(const char* msg, const char* file, unsigned line, const
|
|||
|
||||
Kernel::dump_backtrace();
|
||||
Processor::halt();
|
||||
#endif
|
||||
|
||||
abort();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue