summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2012-02-11 14:49:25 +0000
committerkib <kib@FreeBSD.org>2012-02-11 14:49:25 +0000
commit4658c8a871895ad35616e374872586507064af81 (patch)
tree10ca7a98f506d79e7ce0d2afb5f2b6516aac7df0 /sys/kern
parent38bf0509a452ec918d5b5c9c887b4f3a213ecc19 (diff)
downloadFreeBSD-src-4658c8a871895ad35616e374872586507064af81.zip
FreeBSD-src-4658c8a871895ad35616e374872586507064af81.tar.gz
The PTRACESTOP() macro is used only once. Inline the only use and remove
the macro. MFC after: 1 week
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/subr_syscall.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/kern/subr_syscall.c b/sys/kern/subr_syscall.c
index 75328f6..9c4dd48 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
OpenPOWER on IntegriCloud