• J
    x86,kgdb: Fix hw breakpoint regression · ba773f7c
    Jason Wessel 提交于
    HW breakpoints events stopped working correctly with kgdb
    as a result of commit: 018cbffe
    (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: NJason Wessel <jason.wessel@windriver.com>
    Acked-by: NDongdong Deng <dongdong.deng@windriver.com>
    Acked-by: NFrederic Weisbecker <fweisbec@gmail.com>
    ba773f7c
kgdb.c 18.6 KB