diff options
author | Thiago Jung Bauermann <bauerman@br.ibm.com> | 2009-12-30 20:11:49 +0000 |
---|---|---|
committer | Thiago Jung Bauermann <bauerman@br.ibm.com> | 2009-12-30 20:11:49 +0000 |
commit | 7b838ca220ab177d288bca2629d73b50ebbe7abc (patch) | |
tree | 0cf797092695b460a092fed2e6a23c650c1a26d6 /gdb | |
parent | bb321bb1c4c33cdea5f547e727833e7f17f1cd3f (diff) | |
download | gdb-7b838ca220ab177d288bca2629d73b50ebbe7abc.zip gdb-7b838ca220ab177d288bca2629d73b50ebbe7abc.tar.gz gdb-7b838ca220ab177d288bca2629d73b50ebbe7abc.tar.bz2 |
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.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/breakpoint.c | 7 |
2 files changed, 13 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 429e5e0..e7e1802 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +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. diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 1beb45c..94ae19b 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -1152,6 +1152,13 @@ update_watchpoint (struct breakpoint *b, int reparse) { 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); |