From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1962 invoked by alias); 13 Aug 2002 22:55:52 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 1955 invoked from network); 13 Aug 2002 22:55:51 -0000 Received: from unknown (HELO molenda.com) (192.220.74.81) by sources.redhat.com with SMTP; 13 Aug 2002 22:55:51 -0000 Received: (qmail 2687 invoked by uid 19025); 13 Aug 2002 22:55:26 -0000 Date: Tue, 13 Aug 2002 15:55:00 -0000 From: Jason Molenda To: gdb@sources.redhat.com Subject: Re: RFC gdb crashes on watchpoint that's no longer valid Message-ID: <20020813155526.A2598@molenda.com> References: <20020813152124.A97909@molenda.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020813152124.A97909@molenda.com>; from jason-swarelist@molenda.com on Tue, Aug 13, 2002 at 03:21:24PM -0700 X-SW-Source: 2002-08/txt/msg00136.txt.bz2 On Tue, Aug 13, 2002 at 03:21:24PM -0700, Jason Molenda wrote: > /* If symbols have changed so a saved global watchpoint no longer > applies, delete it, lest gdb crash ungloriously. */ > s = b->exp_string; > if (! gdb_parse_exp_1 (&s, innermost_block, 0, &(b->exp))) > { > warning ("Unable to reset watchpoint %d (unable to " > "parse expression); deleting", b->number); > delete_breakpoint (b); > return 0; > } > xfree (s); (yes yes, I know. It's a cut-and-paste-o. But you get the idea.)