summaryrefslogtreecommitdiffstats
path: root/sys/sys
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/sys
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/sys')
-rw-r--r--sys/sys/ptrace.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/sys/sys/ptrace.h b/sys/sys/ptrace.h
index 8a02495..e770a06 100644
--- a/sys/sys/ptrace.h
+++ b/sys/sys/ptrace.h
@@ -131,12 +131,6 @@ struct ptrace_vm_entry {
#ifdef _KERNEL
-#define PTRACESTOP_SC(p, td, flag) \
- if ((p)->p_flag & P_TRACED && (p)->p_stops & (flag)) { \
- PROC_LOCK(p); \
- ptracestop((td), SIGTRAP); \
- PROC_UNLOCK(p); \
- }
/*
* The flags below are used for ptrace(2) tracing and have no relation
* to procfs. They are stored in struct proc's p_stops member.
OpenPOWER on IntegriCloud