Thiago Jung Bauermann <bauerman@br.ibm.com>
* breakpoint.c (update_watchpoint): Change b->type to
bp_watchpoint before calling hw_watchpoint_used_count.
+20090-12-30 Jan Kratochvil <jan.kratochvil@redhat.com>
+ Thiago Jung Bauermann <bauerman@br.ibm.com>
+
+ * breakpoint.c (update_watchpoint): Change b->type to
+ bp_watchpoint before calling hw_watchpoint_used_count.
+
2009-12-30 Joel Brobecker <brobecker@adacore.com>
* breakpoint.c (watchpoint_check): Expand the function description.
{
int i, mem_cnt, other_type_used;
+ /* We need to determine how many resources are already used
+ for all other hardware watchpoints to see if we still have
+ enough resources to also fit this watchpoint in as well.
+ To avoid the hw_watchpoint_used_count call below from counting
+ this watchpoint, make sure that it is marked as a software
+ watchpoint. */
+ b->type = bp_watchpoint;
i = hw_watchpoint_used_count (bp_hardware_watchpoint,
&other_type_used);
mem_cnt = can_use_hardware_watchpoint (val_chain);