]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit8f649ca637e98ecfc21c3997f86ad04391f69510
treefd1c533c0ecb8364a00cc28e8f7c8dbca5dc4840
parent1c73b45e5a31bcc8baec325626f4ebb4f003e319
[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