summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2010-02-06 10:35:23 +0000
committerRussell King <rmk+kernel@arm.linux.org.uk>2010-02-15 21:39:52 +0000
commit462f39a8c7496c95f4de91ef46d875f46e0fa271 (patch)
treefb26c60ddcc7bbf053f767d42e6f997aa883ad39 /arch
parentd23bc1b3a7e6db935acb9a949a5985d9b77dfd13 (diff)
downloadtalos-obmc-linux-462f39a8c7496c95f4de91ef46d875f46e0fa271.tar.gz
talos-obmc-linux-462f39a8c7496c95f4de91ef46d875f46e0fa271.zip
ARM: ptrace: get rid of PTRACE_{PEEK,POKE}{TEXT,DATA}
The generic ptrace_request() handles these for us, so there's no need to duplicate them in arch code. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/kernel/ptrace.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/arch/arm/kernel/ptrace.c b/arch/arm/kernel/ptrace.c
index bd56673c6a69..bdf002bab6a5 100644
--- a/arch/arm/kernel/ptrace.c
+++ b/arch/arm/kernel/ptrace.c
@@ -743,26 +743,10 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data)
int ret;
switch (request) {
- /*
- * read word at location "addr" in the child process.
- */
- case PTRACE_PEEKTEXT:
- case PTRACE_PEEKDATA:
- ret = generic_ptrace_peekdata(child, addr, data);
- break;
-
case PTRACE_PEEKUSR:
ret = ptrace_read_user(child, addr, (unsigned long __user *)data);
break;
- /*
- * write the word at location addr.
- */
- case PTRACE_POKETEXT:
- case PTRACE_POKEDATA:
- ret = generic_ptrace_pokedata(child, addr, data);
- break;
-
case PTRACE_POKEUSR:
ret = ptrace_write_user(child, addr, data);
break;
OpenPOWER on IntegriCloud