* breakpoint.c (bpstat_should_step): Only consider software
authorPedro Alves <palves@redhat.com>
Wed, 18 Mar 2009 01:13:19 +0000 (01:13 +0000)
committerPedro Alves <palves@redhat.com>
Wed, 18 Mar 2009 01:13:19 +0000 (01:13 +0000)
watchpoints that have a location.

gdb/ChangeLog
gdb/breakpoint.c

index 82508e0ac2b392072486292702a020ef06673553..a57510148bba56217f078333d4d1aca5b463e07d 100644 (file)
@@ -1,3 +1,8 @@
+2009-03-18  Pedro Alves  <pedro@codesourcery.com>
+
+       * breakpoint.c (bpstat_should_step): Only consider software
+       watchpoints that have a location.
+
 2009-03-17  Joel Brobecker  <brobecker@adacore.com>
 
        Add a target_ops parameter to the to_kill method in struct target_ops.
index 472eda4aea56e05f9e71f585ebc0003dabd58670..5a909c8105882dd7906faf4310ced2385bb0b57a 100644 (file)
@@ -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;
 }