aboutsummaryrefslogtreecommitdiff
path: root/gdb/breakpoint.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r--gdb/breakpoint.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index b77a404..4e0fc67 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -2619,6 +2619,17 @@ bpstat_stop_status (pc, not_a_breakpoint)
/* Stop. */
break;
case WP_VALUE_CHANGED:
+ if (b->type == bp_read_watchpoint)
+ {
+ /* Don't stop: read watchpoints shouldn't fire if
+ the value has changed. This is for targets which
+ cannot set read-only watchpoints. */
+ bs->print_it = print_it_noop;
+ bs->stop = 0;
+ continue;
+ }
+ ++(b->hit_count);
+ break;
case WP_VALUE_NOT_CHANGED:
/* Stop. */
++(b->hit_count);