This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] GDB/624 - tbreak commands not executed when breakpoint hit
- From: Joel Brobecker <brobecker at gnat dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Wed, 31 Jul 2002 13:14:50 -0700
- Subject: Re: [RFA] GDB/624 - tbreak commands not executed when breakpoint hit
- References: <20020731200936.GL683@gnat.com>
Grrr,
This chunck is of course not part of this RFA (see another RFA for PR
GDB/622). Sorry.
> diff -c -3 -p -r1.78 breakpoint.c
> *** breakpoint.c 26 Jun 2002 05:20:04 -0000 1.78
> --- breakpoint.c 31 Jul 2002 20:08:35 -0000
> *************** top:
> *** 1882,1888 ****
> breakpoint_proceeded = 0;
> for (; bs != NULL; bs = bs->next)
> {
> ! cmd = bs->commands;
> while (cmd != NULL)
> {
> execute_control_command (cmd);
> --- 1882,1892 ----
> breakpoint_proceeded = 0;
> for (; bs != NULL; bs = bs->next)
> {
> ! /* Use a temporary copy of the commands, as one command in the list
> ! may cause this breakpoint and its commands to be deleted. */
> ! cmd = copy_command_lines (bs->commands);
> ! make_cleanup_free_command_lines (&cmd);
> !
> while (cmd != NULL)
> {
> execute_control_command (cmd);
--
Joel