kgdbts: only use new asm-generic/ptrace.h api when needed
authorMike Frysinger <vapier@gentoo.org>
Sat, 28 May 2011 14:04:25 +0000 (10:04 -0400)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 1 Jun 2011 07:35:01 +0000 (16:35 +0900)
commit603d04b2010976a52f62b7633f9999d104046900
tree884a5db96f4254cda481423fcaa18bae7e2a4c67
parente12ca23d41bd157354a5d1aadff30211a410c53a
kgdbts: only use new asm-generic/ptrace.h api when needed

The new instruction_pointer_set helper is defined for people who have
converted to asm-generic/ptrace.h, so don't use it generally unless
the arch needs it (in which case it has been converted).  This should
fix building of kgdb tests for arches not yet converted.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Acked-by: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: Jason Wessel <jason.wessel@windriver.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/misc/kgdbts.c