mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
Kernel: Dump kernel stack trace on assertion failure.
This commit is contained in:
parent
7f6c81d90f
commit
e53cef02d5
Notes:
sideshowbarker
2024-07-19 15:10:03 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/e53cef02d5a
1 changed files with 2 additions and 0 deletions
|
@ -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 (;;);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue