This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] deleting breakpoints inside of 'commands' (again)
- To: Don Howard <dhoward at redhat dot com>
- Subject: Re: [RFA] deleting breakpoints inside of 'commands' (again)
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Tue, 06 Nov 2001 12:54:42 -0500
- Cc: Michael Snyder <msnyder at cygnus dot com>,Fernando Nasser <fnasser at redhat dot com>, gdb-patches at sources dot redhat dot com
- References: <Pine.LNX.4.33.0111051802140.2672-100000@theotherone>
> On Mon, 5 Nov 2001, Michael Snyder wrote:
>
>
>> Fernando Nasser wrote:
>
>> >
>> > Don Howard wrote:
>
>> > >
>> > > This implementation makes a copy of commands list that contain 'delete'
>> > > or 'clear' commands. It also attempts to clean up when an error in
>> > > encountered. Comments?
>
>>
>> Don, I hesitate to say anything, because I know this has been beaten
>> to death already, but does this method account for the possibility that
>> the list might contain a call to another user command which in turn
>> calls "delete" or "clear"?
>>
>
>
>
> Good point - I should have caught that. In place of the strncmp()
> calls in the previous patch, I've added a call to this:
Er, this gets worse and worse. What happens if the second level command
being called deletes its self?
Andrew