diff options
author | Konstantin Belousov <kib@FreeBSD.org> | 2012-02-11 14:49:25 +0000 |
---|---|---|
committer | Konstantin Belousov <kib@FreeBSD.org> | 2012-02-11 14:49:25 +0000 |
commit | 343b391f207773b5dc82b35eb055fd74a7f4ee02 (patch) | |
tree | 10ca7a98f506d79e7ce0d2afb5f2b6516aac7df0 /sys/kern/subr_syscall.c | |
parent | bfe09c5580e8a104e007c80f3b8186c38b6c08fe (diff) | |
download | src-343b391f207773b5dc82b35eb055fd74a7f4ee02.tar.gz src-343b391f207773b5dc82b35eb055fd74a7f4ee02.zip |
The PTRACESTOP() macro is used only once. Inline the only use and remove
the macro.
MFC after: 1 week
Notes
Notes:
svn path=/head/; revision=231521
Diffstat (limited to 'sys/kern/subr_syscall.c')
-rw-r--r-- | sys/kern/subr_syscall.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/kern/subr_syscall.c b/sys/kern/subr_syscall.c index 75328f6a6379..9c4dd4888f57 100644 --- a/sys/kern/subr_syscall.c +++ b/sys/kern/subr_syscall.c @@ -85,7 +85,11 @@ syscallenter(struct thread *td, struct syscall_args *sa) if (error == 0) { STOPEVENT(p, S_SCE, sa->narg); - PTRACESTOP_SC(p, td, S_PT_SCE); + if (p->p_flag & P_TRACED && p->p_stops & S_PT_SCE) { + PROC_LOCK(p); + ptracestop((td), SIGTRAP); + PROC_UNLOCK(p); + } if (td->td_dbgflags & TDB_USERWR) { /* * Reread syscall number and arguments if |