[RFA] Fix hw watchpoint count in update_watchpoint
Thiago Jung Bauermann
bauerman@br.ibm.com
Wed Dec 30 16:47:00 GMT 2009
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 <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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: watchpoint-count-fix.diff
Type: text/x-patch
Size: 675 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20091230/4e1dbd7c/attachment.bin>
More information about the Gdb-patches
mailing list