diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-02-06 11:35:23 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-02-15 22:39:52 +0100 |
commit | 462f39a8c7496c95f4de91ef46d875f46e0fa271 (patch) | |
tree | fb26c60ddcc7bbf053f767d42e6f997aa883ad39 /arch/arm/kernel | |
parent | ARM: 5912/1: Define a 32-bit Thumb-2 breakpoint instruction (diff) | |
download | linux-462f39a8c7496c95f4de91ef46d875f46e0fa271.tar.xz 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/arm/kernel')
-rw-r--r-- | arch/arm/kernel/ptrace.c | 16 |
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; |