diff options
author | Timon Kruiper <timonkruiper@gmail.com> | 2023-01-30 12:10:29 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-02-08 18:19:48 +0000 |
commit | 329513722489db94b2e90d5aa0ae924a401fd027 (patch) | |
tree | 0cb5e3cb58824a09c0d01b6621ec11eecf2ce941 /Kernel/Syscalls | |
parent | 3611427ce243efe48fcbca573781fa7e9f82b558 (diff) | |
download | serenity-329513722489db94b2e90d5aa0ae924a401fd027.zip |
Kernel: Add optional userspace backtrace to Process::crash
This is very useful for debugging the initial userspace applications, as
the CrashReporter is not yet running.
Diffstat (limited to 'Kernel/Syscalls')
-rw-r--r-- | Kernel/Syscalls/thread.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Syscalls/thread.cpp b/Kernel/Syscalls/thread.cpp index 72c2ca2354..c01bd0b730 100644 --- a/Kernel/Syscalls/thread.cpp +++ b/Kernel/Syscalls/thread.cpp @@ -86,7 +86,7 @@ void Process::sys$exit_thread(Userspace<void*> exit_value, Userspace<void*> stac auto result = require_promise(Pledge::thread); if (result.is_error()) { // Crash now, as we will never reach back to the syscall handler. - crash(SIGABRT, 0); + crash(SIGABRT, {}); } if (this->thread_count() == 1) { |