aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/ptrace.h
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2012-02-11 14:49:25 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2012-02-11 14:49:25 +0000
commit343b391f207773b5dc82b35eb055fd74a7f4ee02 (patch)
tree10ca7a98f506d79e7ce0d2afb5f2b6516aac7df0 /sys/sys/ptrace.h
parentbfe09c5580e8a104e007c80f3b8186c38b6c08fe (diff)
downloadsrc-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/sys/ptrace.h')
-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 8a02495e6ec1..e770a0612eac 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.