patch-2.4.19 linux-2.4.19/arch/sparc/kernel/ptrace.c
Next file: linux-2.4.19/arch/sparc/kernel/setup.c
Previous file: linux-2.4.19/arch/sparc/kernel/process.c
Back to the patch index
Back to the overall index
- Lines: 46
- Date:
Fri Aug 2 17:39:43 2002
- Orig file:
linux-2.4.18/arch/sparc/kernel/ptrace.c
- Orig date:
Tue Sep 18 17:03:51 2001
diff -urN linux-2.4.18/arch/sparc/kernel/ptrace.c linux-2.4.19/arch/sparc/kernel/ptrace.c
@@ -234,29 +234,13 @@
#ifdef DEBUG_PTRACE
char *pt_rq [] = {
-"TRACEME",
-"PEEKTEXT",
-"PEEKDATA",
-"PEEKUSR",
-"POKETEXT",
-"POKEDATA",
-"POKEUSR",
-"CONT",
-"KILL",
-"SINGLESTEP",
-"SUNATTACH",
-"SUNDETACH",
-"GETREGS",
-"SETREGS",
-"GETFPREGS",
-"SETFPREGS",
-"READDATA",
-"WRITEDATA",
-"READTEXT",
-"WRITETEXT",
-"GETFPAREGS",
-"SETFPAREGS",
-""
+ /* 0 */ "TRACEME", "PEEKTEXT", "PEEKDATA", "PEEKUSR",
+ /* 4 */ "POKETEXT", "POKEDATA", "POKEUSR", "CONT",
+ /* 8 */ "KILL", "SINGLESTEP", "SUNATTACH", "SUNDETACH",
+ /* 12 */ "GETREGS", "SETREGS", "GETFPREGS", "SETFPREGS",
+ /* 16 */ "READDATA", "WRITEDATA", "READTEXT", "WRITETEXT",
+ /* 20 */ "GETFPAREGS", "SETFPAREGS", "unknown", "unknown",
+ /* 24 */ "SYSCALL", ""
};
#endif
@@ -284,7 +268,7 @@
{
char *s;
- if ((request > 0) && (request < 21))
+ if ((request >= 0) && (request <= 24))
s = pt_rq [request];
else
s = "unknown";
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)