diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-05-06 21:48:48 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-05-06 21:48:48 +0200 |
commit | 72cbcd8e98ff29fc3fd1f1d55dedd74d1e31f505 (patch) | |
tree | fb732a3128c3b43390eac0c85b438fe597bc8889 /Kernel/Process.cpp | |
parent | cb3e150983763e6f7b29d21c26d19320a63d1cce (diff) | |
download | serenity-72cbcd8e98ff29fc3fd1f1d55dedd74d1e31f505.zip |
Kernel: Dump backtrace on exit() syscall.
This makes assertion failures a lot more pleasant to investigate.
Diffstat (limited to 'Kernel/Process.cpp')
-rw-r--r-- | Kernel/Process.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Kernel/Process.cpp b/Kernel/Process.cpp index 12ff2d78c7..c71dc14890 100644 --- a/Kernel/Process.cpp +++ b/Kernel/Process.cpp @@ -644,6 +644,8 @@ void Process::sys$exit(int status) kprintf("sys$exit: %s(%u) exit with status %d\n", name().characters(), pid(), status); #endif + dump_backtrace(ksyms_ready); + m_termination_status = status; m_termination_signal = 0; die(); |