]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] Use decimal for PTRACE_ATTACH and PTRACE_DETACH.
authorRoland McGrath <roland@redhat.com>
Fri, 29 Sep 2006 09:00:45 +0000 (02:00 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 29 Sep 2006 16:18:16 +0000 (09:18 -0700)
It is sure confusing that linux/ptrace.h has:
#define PTRACE_SINGLESTEP    9
#define PTRACE_ATTACH 0x10
#define PTRACE_DETACH 0x11
#define PTRACE_SYSCALL   24
All the low-numbered constants are in decimal, but the last two in hex.
It sure makes it likely that someone will look at this and think that
9, 10, 11 are used, and that 16 and 17 are not used.

How about we use the same notation for all the numbers [0,24] in the
same short list?

Signed-off-by: Roland McGrath <roland@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/linux/ptrace.h

index 8b2749a259dc0a040194b8c353c2e3a56ce7136a..eeb1976ef7bf2069a587c4a042624599c0c59099 100644 (file)
@@ -16,8 +16,8 @@
 #define PTRACE_KILL               8
 #define PTRACE_SINGLESTEP         9
 
-#define PTRACE_ATTACH          0x10
-#define PTRACE_DETACH          0x11
+#define PTRACE_ATTACH            16
+#define PTRACE_DETACH            17
 
 #define PTRACE_SYSCALL           24