This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Enable count for breakpoints
- From: Tom Tromey <tromey at redhat dot com>
- To: Stan Shebs <stanshebs at earthlink dot net>
- Cc: gdb-patches at sourceware dot org
- Date: Fri, 10 Feb 2012 11:29:50 -0700
- Subject: Re: [PATCH] Enable count for breakpoints
- References: <4F347CF6.8020901@earthlink.net>
>>>>> "Stan" == Stan Shebs <stanshebs@earthlink.net> writes:
Stan> This patch implements a request from Ericsson GDB users, to generalize
Stan> "enable once" so that breakpoints can be disabled after a given number
Stan> of hits instead of the first one.
I looked at the patch and it all looked fine to me.
I wondered what happened if a user did 'enable once 500' and 'ignore
500' for the same breakpoint. From reading the code, I think 'ignore'
takes precedence (first the ignores are done, then the enable once is
handled). I think this should either be documented, or one setting
should zero out the other.
Tom