From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25022 invoked by alias); 31 Jul 2002 20:14:52 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 25002 invoked from network); 31 Jul 2002 20:14:50 -0000 Received: from unknown (HELO takamaka.act-europe.fr) (142.179.108.108) by sources.redhat.com with SMTP; 31 Jul 2002 20:14:50 -0000 Received: by takamaka.act-europe.fr (Postfix, from userid 507) id 5DD06D2CBD; Wed, 31 Jul 2002 13:14:50 -0700 (PDT) Date: Wed, 31 Jul 2002 13:16:00 -0000 From: Joel Brobecker To: gdb-patches@sources.redhat.com Subject: Re: [RFA] GDB/624 - tbreak commands not executed when breakpoint hit Message-ID: <20020731201450.GM683@gnat.com> References: <20020731200936.GL683@gnat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020731200936.GL683@gnat.com> User-Agent: Mutt/1.4i X-SW-Source: 2002-07/txt/msg00627.txt.bz2 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