TO RESET: page_fault_handler: send SIGSTOP instead of SIGSEGV for debug

Change-Id: Ie281dbf43280464c8f412c8444a6861e43f28beb
This commit is contained in:
Masamichi Takagi
2020-06-15 13:00:10 +09:00
parent 4cd7051c2d
commit ab1014863d

View File

@ -1449,6 +1449,13 @@ out_linux:
reason, error);
unhandled_page_fault(thread, fault_addr, reason, regs);
preempt_enable();
#ifdef ENABLE_FUGAKU_DEBUG
kprintf("%s: sending SIGSTOP to TID: %d\n", __func__, thread->tid);
do_kill(thread, thread->proc->pid, thread->tid, SIGSTOP, NULL, 0);
goto out;
#endif
memset(&info, '\0', sizeof info);
if (error == -ERANGE) {
info.si_signo = SIGBUS;