summaryrefslogtreecommitdiff
path: root/defs.h
diff options
context:
space:
mode:
authorDenys Vlasenko <dvlasenk@redhat.com>2013-06-18 18:09:39 +0200
committerDenys Vlasenko <dvlasenk@redhat.com>2013-06-18 18:15:51 +0200
commitf1669e7975cb8d67448d52d9ae7dde3301d27273 (patch)
tree3e1a204ebf11675d6cc10e73aed1d286a9bcb48a /defs.h
parent02d2c708ded6727f847f22e2ca09c762c8f16949 (diff)
downloadstrace-f1669e7975cb8d67448d52d9ae7dde3301d27273.tar.gz
strace-f1669e7975cb8d67448d52d9ae7dde3301d27273.tar.bz2
strace-f1669e7975cb8d67448d52d9ae7dde3301d27273.tar.xz
Cleanups. No logic changes.
* defs.h: Define new ptrace constants unconditionally. * strace.c (detach): Fix comment. (trace): Remove now unnecessary "if USE_SEIZE". Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'defs.h')
-rw-r--r--defs.h18
1 files changed, 8 insertions, 10 deletions
diff --git a/defs.h b/defs.h
index 3f07c4f..fbbe48c 100644
--- a/defs.h
+++ b/defs.h
@@ -227,16 +227,14 @@ extern long ptrace(int, int, char *, long);
# define PTRACE_POKEUSER PTRACE_POKEUSR
#endif
-#if USE_SEIZE
-# undef PTRACE_SEIZE
-# define PTRACE_SEIZE 0x4206
-# undef PTRACE_INTERRUPT
-# define PTRACE_INTERRUPT 0x4207
-# undef PTRACE_LISTEN
-# define PTRACE_LISTEN 0x4208
-# undef PTRACE_EVENT_STOP
-# define PTRACE_EVENT_STOP 128
-#endif
+#undef PTRACE_SEIZE
+#define PTRACE_SEIZE 0x4206
+#undef PTRACE_INTERRUPT
+#define PTRACE_INTERRUPT 0x4207
+#undef PTRACE_LISTEN
+#define PTRACE_LISTEN 0x4208
+#undef PTRACE_EVENT_STOP
+#define PTRACE_EVENT_STOP 128
#ifdef ALPHA
# define REG_R0 0