diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-02-06 05:35:23 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-02-15 16:39:52 -0500 |
commit | 462f39a8c7496c95f4de91ef46d875f46e0fa271 (patch) | |
tree | fb26c60ddcc7bbf053f767d42e6f997aa883ad39 | |
parent | d23bc1b3a7e6db935acb9a949a5985d9b77dfd13 (diff) |
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>
-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) | |||
743 | int ret; | 743 | int ret; |
744 | 744 | ||
745 | switch (request) { | 745 | switch (request) { |
746 | /* | ||
747 | * read word at location "addr" in the child process. | ||
748 | */ | ||
749 | case PTRACE_PEEKTEXT: | ||
750 | case PTRACE_PEEKDATA: | ||
751 | ret = generic_ptrace_peekdata(child, addr, data); | ||
752 | break; | ||
753 | |||
754 | case PTRACE_PEEKUSR: | 746 | case PTRACE_PEEKUSR: |
755 | ret = ptrace_read_user(child, addr, (unsigned long __user *)data); | 747 | ret = ptrace_read_user(child, addr, (unsigned long __user *)data); |
756 | break; | 748 | break; |
757 | 749 | ||
758 | /* | ||
759 | * write the word at location addr. | ||
760 | */ | ||
761 | case PTRACE_POKETEXT: | ||
762 | case PTRACE_POKEDATA: | ||
763 | ret = generic_ptrace_pokedata(child, addr, data); | ||
764 | break; | ||
765 | |||
766 | case PTRACE_POKEUSR: | 750 | case PTRACE_POKEUSR: |
767 | ret = ptrace_write_user(child, addr, data); | 751 | ret = ptrace_write_user(child, addr, data); |
768 | break; | 752 | break; |