mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:28:11 +00:00
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.
This commit is contained in:
parent
3611427ce2
commit
3295137224
6 changed files with 23 additions and 6 deletions
|
@ -183,7 +183,7 @@ NEVER_INLINE void syscall_handler(TrapFrame* trap)
|
|||
if (result.is_error() && result.error().code() == EPROMISEVIOLATION) {
|
||||
VERIFY(current_thread->is_promise_violation_pending());
|
||||
current_thread->set_promise_violation_pending(false);
|
||||
process.crash(SIGABRT, 0);
|
||||
process.crash(SIGABRT, {});
|
||||
} else {
|
||||
VERIFY(!current_thread->is_promise_violation_pending());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue