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:
parent
c0d678c9dd
commit
1eb8ad64ea
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user