This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] deleting breakpoints inside of 'commands'
- To: Don Howard <dhoward at redhat dot com>
- Subject: Re: [RFA] deleting breakpoints inside of 'commands'
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Thu, 13 Sep 2001 17:14:27 -0400
- Cc: Pierre Muller <muller at cerbere dot u-strasbg dot fr>,gdb at sources dot redhat dot com
- References: <Pine.LNX.4.33.0109131315390.1364-100000@theotherone>
> + head_cmd = cmd = bs->commands;
> + bs->commands = NULL;
> + if (bs->breakpoint_at)
> + bs->breakpoint_at->commands = NULL;
don, i've reservations about this. could it leave the bp in an
undefined state - one of the commands could abort.
hoewever, i am very ok with the theory behind it - the comand sequence
that is executed shouldn't be affected by commands that update the
breakpoint. perhaphs a duplication would be better?
andrew