summaryrefslogtreecommitdiff
path: root/Kernel/Process.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-05-06 21:48:48 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-05-06 21:48:48 +0200
commit72cbcd8e98ff29fc3fd1f1d55dedd74d1e31f505 (patch)
treefb732a3128c3b43390eac0c85b438fe597bc8889 /Kernel/Process.cpp
parentcb3e150983763e6f7b29d21c26d19320a63d1cce (diff)
downloadserenity-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.cpp2
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();