diff options
author | Denys Vlasenko <dvlasenk@redhat.com> | 2013-06-18 18:09:39 +0200 |
---|---|---|
committer | Denys Vlasenko <dvlasenk@redhat.com> | 2013-06-18 18:15:51 +0200 |
commit | f1669e7975cb8d67448d52d9ae7dde3301d27273 (patch) | |
tree | 3e1a204ebf11675d6cc10e73aed1d286a9bcb48a /defs.h | |
parent | 02d2c708ded6727f847f22e2ca09c762c8f16949 (diff) | |
download | strace-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.h | 18 |
1 files changed, 8 insertions, 10 deletions
@@ -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 |