1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 10:07:35 +00:00

Kernel+LibC: Tidy up assertion failures with a dedicated syscall

This patch adds sys$abort() which immediately crashes the process with
SIGABRT. This makes assertion backtraces a lot nicer by removing all
the gunk that otherwise happens between __assertion_failed() and
actually crashing from the SIGABRT.
This commit is contained in:
Andreas Kling 2021-01-04 21:26:32 +01:00
parent 8d04bb4d7b
commit d991658794
5 changed files with 45 additions and 3 deletions

View file

@ -104,6 +104,7 @@ set(KERNEL_SOURCES
SharedBuffer.cpp
StdLib.cpp
Syscall.cpp
Syscalls/abort.cpp
Syscalls/access.cpp
Syscalls/alarm.cpp
Syscalls/beep.cpp