[EMAIL PROTECTED] writes:
>
> > Can the "ignore next N hits of breakpoint" count be reset when you
> > rerun the program with r ? Currently the number is kept, which is confusing
> > when N is too large and a core dump happens before N is reached.
>
> Can you describe exactly the behavior that you want? For example, the
> following sequence of commands should certainly work as expected:
>
> (gdb) run
>
> ... look around
> ... decide we want to stop at the 16th hit of breakpoint 2
>
> (gdb) ignore 2 15
> (gdb) run
>
Ah, I do this
(gdb) breakpoint X
(gdb) run
...
breakpoint X
(gdb) c 1000
SIGSEGV
(gdb) info b
breakpoint X hit 20 times
ignore next 980 hits
the I know that to do
c 19
whenever I hit X after starting; when I 'm debugging, I rerun the
program often, and I prefer to start afresh every time I do.
> I definitely don't think we should just clear all the ignore counts
> when we run. But perhaps there is some other logic which would make
> more sense.
I'd be just as happy with a variable option (defaulting to off) that
does this.
>
--
Han-Wen Nienhuys, [EMAIL PROTECTED] ** GNU LilyPond - The Music Typesetter
http://www.cs.uu.nl/people/hanwen/lilypond/index.html