>/usr/local/lib/gcc-lib/arm-linux/2.95.2/../../../../arm-linux/include/sys/ptra
>ce
>.h:75: parse error before `12'
Yes, I see this too with 2.3/2.4 kernels. I guess the thing to do is move the
definitions of PT_GETREGS and so on inside the __KERNEL__ conditional in <asm/
ptrace.h>, like this. That makes arm-linux-nat.o build for me, anyway.
Scott, what do you think?
Index: ptrace.h
===================================================================
RCS file: /cvsroot/pub/kernel/armlinux/include/asm-arm/ptrace.h,v
retrieving revision 1.4
diff -u -p -u -r1.4 ptrace.h
--- ptrace.h 2000/06/25 15:35:13 1.4
+++ ptrace.h 2000/08/01 20:48:42
@@ -3,11 +3,6 @@
#include <asm/proc/ptrace.h>
-#define PTRACE_GETREGS 12
-#define PTRACE_SETREGS 13
-#define PTRACE_GETFPREGS 14
-#define PTRACE_SETFPREGS 15
-
#ifndef __ASSEMBLY__
#define pc_pointer(v) \
((v) & ~PCMASK)
@@ -16,6 +11,11 @@
(pc_pointer((regs)->ARM_pc))
#ifdef __KERNEL__
+#define PTRACE_GETREGS 12
+#define PTRACE_SETREGS 13
+#define PTRACE_GETFPREGS 14
+#define PTRACE_SETFPREGS 15
+
extern void show_regs(struct pt_regs *);
#define predicate(x) (x & 0xf0000000)
p.