TO RESET: page_fault_handler: send SIGSTOP instead of SIGSEGV for debug
Change-Id: Ie281dbf43280464c8f412c8444a6861e43f28beb
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user