ARM: ptrace: get rid of PTRACE_{PEEK,POKE}{TEXT,DATA}

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Monday, March 1, 2010 - 11:03 am

Gitweb:     http://git.kernel.org/linus/462f39a8c7496c95f4de91ef46d875f46e0fa271
Commit:     462f39a8c7496c95f4de91ef46d875f46e0fa271
Parent:     d23bc1b3a7e6db935acb9a949a5985d9b77dfd13
Author:     Russell King <rmk+kernel@arm.linux.org.uk>
AuthorDate: Sat Feb 6 10:35:23 2010 +0000
Committer:  Russell King <rmk+kernel@arm.linux.org.uk>
CommitDate: Mon Feb 15 21:39:52 2010 +0000

    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>
---
 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 bd56673..bdf002b 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;
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
ARM: ptrace: get rid of PTRACE_{PEEK,POKE}{TEXT,DATA}, Linux Kernel Mailing ..., (Mon Mar 1, 11:03 am)