]> git.baikalelectronics.ru Git - kernel.git/commit
x86,kgdb: Fix hw breakpoint regression
authorJason Wessel <jason.wessel@windriver.com>
Thu, 29 Jul 2010 00:10:30 +0000 (19:10 -0500)
committerJason Wessel <jason.wessel@windriver.com>
Thu, 29 Jul 2010 00:10:30 +0000 (19:10 -0500)
commit561267c1e334ed4ca03ebc2d034a0b110c462525
tree97983dc7a149487a7926f1efc2619fafcc8cc93c
parent778fb3c0904925de0d79d149c8348158672b7006
x86,kgdb: Fix hw breakpoint regression

HW breakpoints events stopped working correctly with kgdb
as a result of commit: 5734203860301cb28032b8b320df35f3042c7dbe
(Merge commit 'v2.6.33' into perf/core).

The regression occurred because the behavior changed for setting
NOTIFY_STOP as the return value to the die notifier if the breakpoint
was known to the HW breakpoint API.  Because kgdb is using the HW
breakpoint API to register HW breakpoints slots, it must also now
implement the overflow_handler call back else kgdb does not get to see
the events from the die notifier.

The kgdb_ll_trap function will be changed to be general purpose code
which can allow an easy way to implement the hw_breakpoint API
overflow call back.

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Acked-by: Dongdong Deng <dongdong.deng@windriver.com>
Acked-by: Frederic Weisbecker <fweisbec@gmail.com>
arch/x86/kernel/kgdb.c