aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc64
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2008-02-07 01:01:01 -0500
committerDavid S. Miller <davem@davemloft.net>2008-02-07 05:59:08 -0500
commit38282764e3e76aa02c071af4673e6b6320e426ad (patch)
tree7d3bf23089142c3f12ec5eca00a17cb1f33518e1 /arch/sparc64
parent8e3fe806e50d48d875bb56793ca3f984cba6c0db (diff)
[SPARC]: Kill DEBUG_PTRACE code.
It has long exceeded it's usefulness. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc64')
-rw-r--r--arch/sparc64/kernel/ptrace.c43
1 files changed, 0 insertions, 43 deletions
diff --git a/arch/sparc64/kernel/ptrace.c b/arch/sparc64/kernel/ptrace.c
index 668f569498b6..2232e85c8415 100644
--- a/arch/sparc64/kernel/ptrace.c
+++ b/arch/sparc64/kernel/ptrace.c
@@ -87,19 +87,6 @@ pt_os_succ_return (struct pt_regs *regs, unsigned long val, void __user *addr)
87} 87}
88 88
89/* #define ALLOW_INIT_TRACING */ 89/* #define ALLOW_INIT_TRACING */
90/* #define DEBUG_PTRACE */
91
92#ifdef DEBUG_PTRACE
93char *pt_rq [] = {
94 /* 0 */ "TRACEME", "PEEKTEXT", "PEEKDATA", "PEEKUSR",
95 /* 4 */ "POKETEXT", "POKEDATA", "POKEUSR", "CONT",
96 /* 8 */ "KILL", "SINGLESTEP", "SUNATTACH", "SUNDETACH",
97 /* 12 */ "GETREGS", "SETREGS", "GETFPREGS", "SETFPREGS",
98 /* 16 */ "READDATA", "WRITEDATA", "READTEXT", "WRITETEXT",
99 /* 20 */ "GETFPAREGS", "SETFPAREGS", "unknown", "unknown",
100 /* 24 */ "SYSCALL", ""
101};
102#endif
103 90
104/* 91/*
105 * Called by kernel/ptrace.c when detaching.. 92 * Called by kernel/ptrace.c when detaching..
@@ -763,23 +750,6 @@ asmlinkage void do_ptrace(struct pt_regs *regs)
763 addr2 &= 0xffffffffUL; 750 addr2 &= 0xffffffffUL;
764 } 751 }
765 lock_kernel(); 752 lock_kernel();
766#ifdef DEBUG_PTRACE
767 {
768 char *s;
769
770 if ((request >= 0) && (request <= 24))
771 s = pt_rq [request];
772 else
773 s = "unknown";
774
775 if (request == PTRACE_POKEDATA && data == 0x91d02001){
776 printk ("do_ptrace: breakpoint pid=%d, addr=%016lx addr2=%016lx\n",
777 pid, addr, addr2);
778 } else
779 printk("do_ptrace: rq=%s(%d) pid=%d addr=%016lx data=%016lx addr2=%016lx\n",
780 s, request, pid, addr, data, addr2);
781 }
782#endif
783 if (request == PTRACE_TRACEME) { 753 if (request == PTRACE_TRACEME) {
784 ret = ptrace_traceme(); 754 ret = ptrace_traceme();
785 if (ret < 0) 755 if (ret < 0)
@@ -905,9 +875,6 @@ asmlinkage void do_ptrace(struct pt_regs *regs)
905 goto out_tsk; 875 goto out_tsk;
906 } 876 }
907 pt_succ_return(regs, 0); 877 pt_succ_return(regs, 0);
908#ifdef DEBUG_PTRACE
909 printk ("PC=%lx nPC=%lx o7=%lx\n", cregs->tpc, cregs->tnpc, cregs->u_regs [15]);
910#endif
911 goto out_tsk; 878 goto out_tsk;
912 } 879 }
913 880
@@ -932,9 +899,6 @@ asmlinkage void do_ptrace(struct pt_regs *regs)
932 goto out_tsk; 899 goto out_tsk;
933 } 900 }
934 pt_succ_return(regs, 0); 901 pt_succ_return(regs, 0);
935#ifdef DEBUG_PTRACE
936 printk ("PC=%lx nPC=%lx o7=%lx\n", cregs->tpc, cregs->tnpc, cregs->u_regs [15]);
937#endif
938 goto out_tsk; 902 goto out_tsk;
939 } 903 }
940 904
@@ -1152,13 +1116,6 @@ asmlinkage void do_ptrace(struct pt_regs *regs)
1152 } 1116 }
1153 1117
1154 child->exit_code = data; 1118 child->exit_code = data;
1155#ifdef DEBUG_PTRACE
1156 printk("CONT: %s [%d]: set exit_code = %x %lx %lx\n", child->comm,
1157 child->pid, child->exit_code,
1158 task_pt_regs(child)->tpc,
1159 task_pt_regs(child)->tnpc);
1160
1161#endif
1162 wake_up_process(child); 1119 wake_up_process(child);
1163 pt_succ_return(regs, 0); 1120 pt_succ_return(regs, 0);
1164 goto out_tsk; 1121 goto out_tsk;