* breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
authorUlrich Weigand <uweigand@de.ibm.com>
Fri, 26 Mar 2010 16:41:54 +0000 (16:41 +0000)
committerUlrich Weigand <uweigand@de.ibm.com>
Fri, 26 Mar 2010 16:41:54 +0000 (16:41 +0000)
gdb/ChangeLog
gdb/breakpoint.c

index 9ae7ec166662737fcb4a1efa19c66d4c84b2e610..7cfac07ae6612476a5ec26f61c7605c8a3a5dc74 100644 (file)
@@ -1,3 +1,7 @@
+2010-03-26  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
+
 2010-03-26  Pedro Alves  <pedro@codesourcery.com>
 
        * tracepoint.c (current_trace_status): Don't make sure error_desc
index ded2a556226286341a1e8b434d90f7b51fe81888..354154f65c2d19e81cd098a83e1d6f5099990e6c 100644 (file)
@@ -2986,6 +2986,7 @@ bpstat_clear_actions (bpstat bs)
   for (; bs != NULL; bs = bs->next)
     {
       decref_counted_command_line (&bs->commands);
+      bs->commands_left = NULL;
       if (bs->old_val != NULL)
        {
          value_free (bs->old_val);