Demote to sw watchpoint only in update_watchpoint.
authorThiago Jung Bauermann <bauerman@br.ibm.com>
Thu, 5 May 2011 22:52:10 +0000 (22:52 +0000)
committerThiago Jung Bauermann <bauerman@br.ibm.com>
Thu, 5 May 2011 22:52:10 +0000 (22:52 +0000)
commita9634178ec86f946598bd78836513c621afd4954
treebe8e3cca28494c6bdfb2fce1820e4e2947ae422a
parent85161e9e44c84e4318a76edf40a70bd7664a16d2
Demote to sw watchpoint only in update_watchpoint.
* breakpoint.c (update_watchpoint): Change between software and
hardware watchpoint for all kinds of watchpoints, not just
read/write ones.  Determine b->exact value here instead of
in watch_command_1.  Error out if there are not enough resources
for a read or access hardware watchpoint.
(watch_command_1): Remove logic of checking whether there are
enough resources available, since update_watchpoint will do that
work now.  Don't set b->exact here.  Catch exceptions thrown by
update_watchpoint and delete the watchpoint.
(can_use_hardware_watchpoint): Remove exact_watchpoints argument.
Use target_exact_watchpoints instead.
(delete_breakpoint): Notify observers only if deleted watchpoint
has a breakpoint number assigned to it.
gdb/ChangeLog
gdb/breakpoint.c
This page took 0.029078 seconds and 4 git commands to generate.