aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc64
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2008-02-06 22:08:18 -0800
committerDavid S. Miller <davem@davemloft.net>2008-02-07 02:59:22 -0800
commit190aa9f60f9575d1b7382cd1ee33e2589208c514 (patch)
tree2707306174f13b26751f6264a4fceee00ef26ed1 /arch/sparc64
parent38282764e3e76aa02c071af4673e6b6320e426ad (diff)
downloadkernel_samsung_tuna-190aa9f60f9575d1b7382cd1ee33e2589208c514.zip
kernel_samsung_tuna-190aa9f60f9575d1b7382cd1ee33e2589208c514.tar.gz
kernel_samsung_tuna-190aa9f60f9575d1b7382cd1ee33e2589208c514.tar.bz2
[SPARC]: Remove PTRACE_SUN* handling.
Supporting SunOS ptrace() is pretty pointless and these kinds of quirks keep us from being able to share more code with other platforms. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc64')
-rw-r--r--arch/sparc64/kernel/ptrace.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/arch/sparc64/kernel/ptrace.c b/arch/sparc64/kernel/ptrace.c
index 2232e85..e881dbb 100644
--- a/arch/sparc64/kernel/ptrace.c
+++ b/arch/sparc64/kernel/ptrace.c
@@ -766,8 +766,7 @@ asmlinkage void do_ptrace(struct pt_regs *regs)
goto out;
}
- if ((current->personality == PER_SUNOS && request == PTRACE_SUNATTACH)
- || (current->personality != PER_SUNOS && request == PTRACE_ATTACH)) {
+ if (request == PTRACE_ATTACH) {
if (ptrace_attach(child)) {
pt_error_return(regs, EPERM);
goto out_tsk;
@@ -1137,18 +1136,6 @@ asmlinkage void do_ptrace(struct pt_regs *regs)
goto out_tsk;
}
- case PTRACE_SUNDETACH: { /* detach a process that was attached. */
- int error = ptrace_detach(child, data);
- if (error) {
- pt_error_return(regs, EIO);
- goto out_tsk;
- }
- pt_succ_return(regs, 0);
- goto out_tsk;
- }
-
- /* PTRACE_DUMPCORE unsupported... */
-
case PTRACE_GETEVENTMSG: {
int err;