Skip to content
  • Jason Wessel's avatar
    kgdb: Always process the whole breakpoint list on activate or deactivate · 7f8b7ed6
    Jason Wessel authored
    
    
    This patch fixes 2 edge cases in using kgdb in conjunction with gdb.
    
    1) kgdb_deactivate_sw_breakpoints() should process the entire array of
       breakpoints.  The failure to do so results in breakpoints that you
       cannot remove, because a break point can only be removed if its
       state flag is set to BP_SET.
    
       The easy way to duplicate this problem is to plant a break point in
       a kernel module and then unload the kernel module.
    
    2) kgdb_activate_sw_breakpoints() should process the entire array of
       breakpoints.  The failure to do so results in missed breakpoints
       when a breakpoint cannot be activated.
    
    Signed-off-by: default avatarJason Wessel <jason.wessel@windriver.com>
    7f8b7ed6