Skip to content
  • Jason Wessel's avatar
    x86,kgdb: Fix hw breakpoint regression · ba773f7c
    Jason Wessel authored
    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: default avatarJason Wessel <jason.wessel@windriver.com>
    Acked-by: default avatarDongdong Deng <dongdong.deng@windriver.com>
    Acked-by: default avatarFrederic Weisbecker <fweisbec@gmail.com>
    ba773f7c