conditional breakpoints hit count

Philippe De Muyter phdm@macqel.be
Sat Nov 21 08:47:00 GMT 1998


Sat Nov 21 17:15:40 1998  Philippe De Muyter  <phdm@macqel.be>

	* breakpoint.c (bpstat_stop_status): Do not increment hit_count
	of breakpoint if condition is not true. 

--- ./gdb/breakpoint.c	Sat Nov 21 17:09:58 1998
+++ ./gdb/breakpoint.c	Sat Nov 21 15:20:44 1998
@@ -1494,6 +1494,7 @@ bpstat_stop_status (pc, not_a_breakpoint
 	    }
 	  if (b->cond && value_is_zero)
 	    {
+	      b->hit_count--;
 	      bs->stop = 0;
 	    }
 	  else if (b->ignore_count > 0)



More information about the Gdb-patches mailing list