summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMatthew Wilcox <willy@debian.org>2004-02-06 03:45:05 -0800
committerLinus Torvalds <torvalds@home.osdl.org>2004-02-06 03:45:05 -0800
commitf4d8611049b6a0e69973f263c93e4c71c854be82 (patch)
tree25494edcbfc31a10b57bb514a98fec6e27f0a271 /include
parent725dc34546102d51eba206656c46aa77eecc0deb (diff)
[PATCH] New ptrace.h definitions
ARM added a definition for PT_SINGLESTEP which conflicted with our definition. So define PT_SINGLESTEP_BIT, PT_BLOCKSTEP_BIT and PT_BLOCKSTEP to prevent similar problems in the future. (James Bottomley)
Diffstat (limited to 'include')
-rw-r--r--include/linux/ptrace.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/linux/ptrace.h b/include/linux/ptrace.h
index 91a309f8a0a1..53132cd80429 100644
--- a/include/linux/ptrace.h
+++ b/include/linux/ptrace.h
@@ -65,7 +65,12 @@
#define PT_TRACE_EXIT 0x00000200
#define PT_TRACE_MASK 0x000003f4
-#define PT_SINGLESTEP 0x80000000 /* single stepping (used on ARM) */
+
+/* single stepping state bits (used on ARM and PA-RISC) */
+#define PT_SINGLESTEP_BIT 31
+#define PT_SINGLESTEP (1<<PT_SINGLESTEP_BIT)
+#define PT_BLOCKSTEP_BIT 30
+#define PT_BLOCKSTEP (1<<PT_BLOCKSTEP_BIT)
#include <linux/compiler.h> /* For unlikely. */
#include <linux/sched.h> /* For struct task_struct. */