In fasttrap_sigtrap(), use tdsendsignal() rather than tdksignal() to send

SIGTRAP. The latter requires that its thread argument be non-NULL, but
fasttrap_sigtrap() does not.

PR:		193593
MFC after:	1 week
Reported by:	danilo
This commit is contained in:
Mark Johnston 2015-01-30 04:51:59 +00:00
parent c0d678c9dd
commit 1eb8ad64ea

View File

@ -295,7 +295,7 @@ fasttrap_sigtrap(proc_t *p, kthread_t *t, uintptr_t pc)
ksi->ksi_code = TRAP_DTRACE;
ksi->ksi_addr = (caddr_t)pc;
PROC_LOCK(p);
(void) tdksignal(t, SIGTRAP, ksi);
(void) tdsendsignal(p, t, SIGTRAP, ksi);
PROC_UNLOCK(p);
#endif
}