diff options
author | Gunnar Beutner <gbeutner@serenityos.org> | 2021-06-11 09:03:28 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-06-11 11:32:01 +0200 |
commit | da24228348725d14b54f038711480b527185aec0 (patch) | |
tree | dc4dc0c01bda62135d978b9cd57197c9a70a1724 /Kernel | |
parent | bcf6da8cde1d09cb10cbd8798113f0cff2558962 (diff) | |
download | serenity-da24228348725d14b54f038711480b527185aec0.zip |
Kernel: Print stack traces for crashes in release builds
Previously we'd just reset the CPU and reboot.
Diffstat (limited to 'Kernel')
-rw-r--r-- | Kernel/Arch/i386/CPU.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/Kernel/Arch/i386/CPU.cpp b/Kernel/Arch/i386/CPU.cpp index 98026be2dc..a83beac00a 100644 --- a/Kernel/Arch/i386/CPU.cpp +++ b/Kernel/Arch/i386/CPU.cpp @@ -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(); } |