[POWERPC] powerpc: fix building gdb against asm/ptrace.h
authorArnd Bergmann <arnd.bergmann@de.ibm.com>
Thu, 21 Sep 2006 10:29:51 +0000 (12:29 +0200)
committerPaul Mackerras <paulus@samba.org>
Fri, 22 Sep 2006 05:19:58 +0000 (15:19 +1000)
commit7d452c326c2ac879aced884411a0fe3ba75d9c87
treefd1c533c0ecb8364a00cc28e8f7c8dbca5dc4840
parent2954da897c40de0f3abdd6a100f2978f30d04068
[POWERPC] powerpc: fix building gdb against asm/ptrace.h

Ulrich Weigand found a bug with the current version of the
asm-powerpc/ptrace.h that prevents building at least the
SPU target version of gdb, since some ptrace opcodes are
not defined.

The problem seems to have originated in the merging of 32 and
64 bit versions of that file, the problem is that some opcodes
are only valid on 64 bit kernels, but are also used by 32 bit
programs, so they can't depends on the __powerpc64__ symbol.

Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
include/asm-powerpc/ptrace.h