diff options
author | Roland McGrath <roland@redhat.com> | 2007-12-20 06:58:40 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2008-02-07 04:40:19 -0500 |
commit | c034243504b8396c4293abdc63aa3fc336a7d870 (patch) | |
tree | 59d10ce1e7ae0ff90150deddd61ec9a68f355da1 /arch/powerpc/kernel/ptrace.c | |
parent | c391cd0093a2c86a6d1bc256198caad29fff0f60 (diff) |
[POWERPC] Use generic ptrace peekdata/pokedata
Now that ptrace_request handles these, we can drop some more boilerplate.
Signed-off-by: Roland McGrath <roland@redhat.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/kernel/ptrace.c')
-rw-r--r-- | arch/powerpc/kernel/ptrace.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/arch/powerpc/kernel/ptrace.c b/arch/powerpc/kernel/ptrace.c index 2c1ee2cf9419..7571c2e2d991 100644 --- a/arch/powerpc/kernel/ptrace.c +++ b/arch/powerpc/kernel/ptrace.c | |||
@@ -701,12 +701,6 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data) | |||
701 | int ret = -EPERM; | 701 | int ret = -EPERM; |
702 | 702 | ||
703 | switch (request) { | 703 | switch (request) { |
704 | /* when I and D space are separate, these will need to be fixed. */ | ||
705 | case PTRACE_PEEKTEXT: /* read word at location addr. */ | ||
706 | case PTRACE_PEEKDATA: | ||
707 | ret = generic_ptrace_peekdata(child, addr, data); | ||
708 | break; | ||
709 | |||
710 | /* read the word at location addr in the USER area. */ | 704 | /* read the word at location addr in the USER area. */ |
711 | case PTRACE_PEEKUSR: { | 705 | case PTRACE_PEEKUSR: { |
712 | unsigned long index, tmp; | 706 | unsigned long index, tmp; |
@@ -734,12 +728,6 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data) | |||
734 | break; | 728 | break; |
735 | } | 729 | } |
736 | 730 | ||
737 | /* If I and D space are separate, this will have to be fixed. */ | ||
738 | case PTRACE_POKETEXT: /* write the word at location addr. */ | ||
739 | case PTRACE_POKEDATA: | ||
740 | ret = generic_ptrace_pokedata(child, addr, data); | ||
741 | break; | ||
742 | |||
743 | /* write the word at location addr in the USER area */ | 731 | /* write the word at location addr in the USER area */ |
744 | case PTRACE_POKEUSR: { | 732 | case PTRACE_POKEUSR: { |
745 | unsigned long index; | 733 | unsigned long index; |