This is the mail archive of the
gdb@sourceware.cygnus.com
mailing list for the GDB project.
Re: breakpoint hit counts
- To: tromey at cygnus dot com
- Subject: Re: breakpoint hit counts
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Mon, 14 Feb 2000 22:13:06 +1100
- CC: gdb at sourceware dot cygnus dot com
- Organization: Cygnus Solutions
- References: <87ln5w6sh1.fsf@cygnus.com>
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