From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3770 invoked by alias); 20 Aug 2002 13:27:51 -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 3746 invoked from network); 20 Aug 2002 13:27:50 -0000 Received: from unknown (HELO takamaka.act-europe.fr) (205.232.38.247) by sources.redhat.com with SMTP; 20 Aug 2002 13:27:50 -0000 Received: by takamaka.act-europe.fr (Postfix, from userid 507) id 2DE96D2CBD; Tue, 20 Aug 2002 06:27:52 -0700 (PDT) Date: Tue, 20 Aug 2002 06:27:00 -0000 From: Joel Brobecker To: gdb-patches@sources.redhat.com Subject: Re: [RFA] GDB/622 - clear current breakpoint in commands causes trouble Message-ID: <20020820132752.GD25997@gnat.com> References: <20020731195012.GK683@gnat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020731195012.GK683@gnat.com> User-Agent: Mutt/1.4i X-SW-Source: 2002-08/txt/msg00583.txt.bz2 ping? > 2002-07-31 Joel Brobecker > > * cli/cli-scripts.c (copy_command_lines): New function. > (make_cleanup_free_command_lines): Make this function non static. > > * defs.h (copy_command_lines): Add definition. > (make_cleanup_free_command_lines): Add definition. > > * breakpoint.c (bpstat_do_actions): Execute a temporary copy of > the command-list associated to each breakpoint hit, in order to > avoid accessing a dangling pointer, in case one of the commands > in the list causes the breakpoint to be deleted. -- Joel