This is the mail archive of the gdb-patches@sourceware.cygnus.com mailing list for the GDB project. See the GDB home page for more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

conditional breakpoints hit count



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)