x86: Support for instruction breakpoints
authorFrederic Weisbecker <fweisbec@gmail.com>
Thu, 24 Jun 2010 08:00:24 +0000 (10:00 +0200)
committerFrederic Weisbecker <fweisbec@gmail.com>
Thu, 24 Jun 2010 21:35:27 +0000 (23:35 +0200)
commitf7809daf64bf119fef70af172db6a0636fa51f92
tree3813c123ff81a65cc39792a9768c6d53abd504fc
parent0c4519e825c9e2b6a8310deff8582f8c35bfbba9
x86: Support for instruction breakpoints

Instruction breakpoints need to have a specific length of 0 to
be working. Bring this support but also take care the user is not
trying to set an unsupported length, like a range breakpoint for
example.

Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Prasad <prasad@linux.vnet.ibm.com>
Cc: Mahesh Salgaonkar <mahesh@linux.vnet.ibm.com>
Cc: Will Deacon <will.deacon@arm.com>
Cc: Jason Wessel <jason.wessel@windriver.com>
arch/x86/include/asm/hw_breakpoint.h
arch/x86/kernel/hw_breakpoint.c