This is the mail archive of the gdb@sourceware.cygnus.com mailing list for the GDB project.


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

Re: breakpoint hit counts


Tom Tromey wrote:
> 
> I recently was debugging with gdb and I typed "c 57" instead of "b 57"
> (a simple typo).
> 
> I was suprised to learn that gdb preserves the ignore count even when
> I re-ran my program.  I would rather have gdb reset the ignore count
> when I re-run.
> 
> As it turns out, the actual rule is that ignore counts are reset
> unless hit count display is enabled (the default).
> 
> To me this rule seems obscure, and the feature seems fairly useless.
> I'd like to change gdb to always clear the ignore count when the
> inferior is re-run.
> 
> Any comments on this?  Does anybody rely on the current scheme?  If
> so, what for?

Perhaps some people have found a situtation where they can only
reproduce a bug if the program is run several times (don't laugh, I've
encountered that very problem :-).

However, if trying to reproduce such a bug, I think it would be better
to encourage them to script the whole secquece and re-set the ignore
count each time.

Anyone else have thoughts on this?  Fernando?

	Andrew

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