mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 02:18:12 +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:
parent
8d04bb4d7b
commit
d991658794
5 changed files with 45 additions and 3 deletions
|
@ -47,8 +47,8 @@ void __assertion_failed(const char* msg)
|
|||
{ msg, strlen(msg) },
|
||||
};
|
||||
syscall(SC_set_coredump_metadata, ¶ms);
|
||||
|
||||
abort();
|
||||
syscall(SC_abort);
|
||||
for (;;) { }
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue