From: Mike Frysinger Date: Tue, 31 Dec 2013 07:43:17 +0000 (-0500) Subject: Delete old PTRACE_{PEEK,POKE}USR logic X-Git-Tag: v4.9~150 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=94e246ac57b52346144fece3549820ed04b13058;p=strace Delete old PTRACE_{PEEK,POKE}USR logic The code base has settled on PTRACE_{PEEK,POKE}USER (with an E) and has logic in defs.h to make sure it's set sanely. Delete this old logic as the defs.h takes care of it now. * process.c: Delete PTRACE_PEEKUSR/PTRACE_POKEUSR defines. * signal.c: Likewise. * syscall.c: Delete PTRACE_PEEKUSR define. * util.c: Likewise. --- diff --git a/process.c b/process.c index 8b3d2c76..5a648a96 100644 --- a/process.c +++ b/process.c @@ -47,12 +47,6 @@ #ifdef HAVE_SYS_REG_H # include -# ifndef PTRACE_PEEKUSR -# define PTRACE_PEEKUSR PTRACE_PEEKUSER -# endif -# ifndef PTRACE_POKEUSR -# define PTRACE_POKEUSR PTRACE_POKEUSER -# endif #endif #ifdef HAVE_LINUX_PTRACE_H diff --git a/signal.c b/signal.c index 3a11b8aa..a41748e9 100644 --- a/signal.c +++ b/signal.c @@ -37,12 +37,6 @@ #ifdef HAVE_SYS_REG_H # include -# ifndef PTRACE_PEEKUSR -# define PTRACE_PEEKUSR PTRACE_PEEKUSER -# endif -# ifndef PTRACE_POKEUSR -# define PTRACE_POKEUSR PTRACE_POKEUSER -# endif #elif defined(HAVE_LINUX_PTRACE_H) # undef PTRACE_SYSCALL # ifdef HAVE_STRUCT_IA64_FPREG diff --git a/syscall.c b/syscall.c index 3477dcda..4b6b4eb0 100644 --- a/syscall.c +++ b/syscall.c @@ -37,9 +37,6 @@ #ifdef HAVE_SYS_REG_H # include -# ifndef PTRACE_PEEKUSR -# define PTRACE_PEEKUSR PTRACE_PEEKUSER -# endif #elif defined(HAVE_LINUX_PTRACE_H) # undef PTRACE_SYSCALL # ifdef HAVE_STRUCT_IA64_FPREG diff --git a/util.c b/util.c index 47c8734f..85bb94c9 100644 --- a/util.c +++ b/util.c @@ -46,7 +46,6 @@ #ifdef HAVE_SYS_REG_H # include -# define PTRACE_PEEKUSR PTRACE_PEEKUSER #elif defined(HAVE_LINUX_PTRACE_H) # undef PTRACE_SYSCALL # ifdef HAVE_STRUCT_IA64_FPREG