From e53cef02d5a66591efb2d85f9ca576dcfe7a5421 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Wed, 6 Mar 2019 14:05:41 +0100 Subject: [PATCH] Kernel: Dump kernel stack trace on assertion failure. --- Kernel/i386.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Kernel/i386.cpp b/Kernel/i386.cpp index 2561b4a4f67..e4dd4260957 100644 --- a/Kernel/i386.cpp +++ b/Kernel/i386.cpp @@ -483,6 +483,8 @@ void __assertion_failed(const char* msg, const char* file, unsigned line, const { asm volatile("cli"); kprintf("ASSERTION FAILED: %s\n%s:%u in %s\n", msg, file, line, func); + extern void dump_backtrace(bool); + dump_backtrace(true); asm volatile("hlt"); for (;;); }