From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19982 invoked by alias); 23 Jan 2007 12:45:09 -0000 Received: (qmail 19971 invoked by uid 22791); 23 Jan 2007 12:45:07 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Tue, 23 Jan 2007 12:45:00 +0000 Received: from drow by nevyn.them.org with local (Exim 4.63) (envelope-from ) id 1H9L1F-0000RF-LU; Tue, 23 Jan 2007 07:44:57 -0500 Date: Tue, 23 Jan 2007 12:45:00 -0000 From: Daniel Jacobowitz To: Denis PILAT Cc: gdb-patches Subject: Re: [RFC] varobj deletion after the binary has changed Message-ID: <20070123124457.GA1600@nevyn.them.org> Mail-Followup-To: Denis PILAT , gdb-patches References: <45B60056.6030704@st.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <45B60056.6030704@st.com> User-Agent: Mutt/1.5.13 (2006-08-11) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2007-01/txt/msg00470.txt.bz2 On Tue, Jan 23, 2007 at 01:32:22PM +0100, Denis PILAT wrote: > Hi, > > We have a bug in one of our gdb target, when the binary changed while > beeing debugged it appears that some of our varobj refers to invalid > symbols or type. > > I propose a patch that delete all varobj when symbols are reloaded. May > be there is a better place to do that but I think we must do that > somewhere, don't you ? The right thing to do is probably to figure out where the invalid references come from and fix them - probably by re-evaluating expressions at the next -var-update. Deleting things behind the front end's back is a bad policy. -- Daniel Jacobowitz CodeSourcery