Hi, update_watchpoint counts the number of existing hardware watchpoints to decide whether there is room for another one. The problem is that it miscounts the number of existing hardware watchpoints. The reason is that the given watchpoint can already be a hardware watchpoint and thus it will be counted as such by hw_watchpoint_used_count, which may make update_watchpoint decide that it should downgrade the hardware watchpoint to a software one. Ok to commit? -- []'s Thiago Jung Bauermann IBM Linux Technology Center 20090-12-30 Jan Kratochvil Thiago Jung Bauermann * breakpoint.c (update_watchpoint): Change b->type to bp_watchpoint before calling hw_watchpoint_used_count.