diff options
author | Pedro Alves <palves@redhat.com> | 2009-03-18 01:13:19 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2009-03-18 01:13:19 +0000 |
commit | 717a8278b140f1127459a38138085f36496eba63 (patch) | |
tree | df446b0f074dfa8266724b0d56899f82794cd7a2 /gdb/breakpoint.c | |
parent | c743cf5d81e46011aada39382daabf1383f3ad41 (diff) | |
download | gdb-717a8278b140f1127459a38138085f36496eba63.zip gdb-717a8278b140f1127459a38138085f36496eba63.tar.gz gdb-717a8278b140f1127459a38138085f36496eba63.tar.bz2 |
* breakpoint.c (bpstat_should_step): Only consider software
watchpoints that have a location.
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r-- | gdb/breakpoint.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 472eda4..5a909c8 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -3304,7 +3304,7 @@ bpstat_should_step (void) { struct breakpoint *b; ALL_BREAKPOINTS (b) - if (breakpoint_enabled (b) && b->type == bp_watchpoint) + if (breakpoint_enabled (b) && b->type == bp_watchpoint && b->loc != NULL) return 1; return 0; } |