powerpc: fix building gdb against asm/ptrace.h
commit6afb5fe75ac0b84f180706a4e5d838b3eb1b89ba
authorArnd Bergmann <arnd.bergmann@de.ibm.com>
Fri, 22 Sep 2006 07:40:40 +0000 (22 08:40 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 13 Oct 2006 20:23:25 +0000 (13 13:23 -0700)
tree708af58b0bb322c890bb385f2b046a0c864530bf
parent1cb6e7a4dbdab1d0b61bf8d8ce37598224d7e3f6
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: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
include/asm-powerpc/ptrace.h