From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4911 invoked by alias); 17 Nov 2005 19:25:50 -0000 Received: (qmail 4831 invoked by uid 22791); 17 Nov 2005 19:25:47 -0000 Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Thu, 17 Nov 2005 19:25:47 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1EcpOB-0005AF-BD; Thu, 17 Nov 2005 14:25:43 -0500 Date: Thu, 17 Nov 2005 19:36:00 -0000 From: Daniel Jacobowitz To: Eli Zaretskii Cc: Andrew STUBBS , gdb-patches@sources.redhat.com Subject: Re: [PATCH] keep-variable command Message-ID: <20051117192543.GA19824@nevyn.them.org> Mail-Followup-To: Eli Zaretskii , Andrew STUBBS , gdb-patches@sources.redhat.com References: <437B44E1.8090008@st.com> <437C68CF.3060805@st.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.8i Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2005-11/txt/msg00295.txt.bz2 On Thu, Nov 17, 2005 at 09:22:02PM +0200, Eli Zaretskii wrote: > > Date: Thu, 17 Nov 2005 11:26:07 +0000 > > From: Andrew STUBBS > > Cc: gdb-patches@sources.redhat.com > > > > Currently _all_ convenience variables are deleted when the symbol-file > > command is used. The file command also uses symbol-file. > > I think this is a terrible misfeature that we need to fix ASAP, > regardless of what we do with variables which depend on the symbol > table. Lord knows it drives me bonkers. I didn't know exactly when it happened (never bothered to look it up). I seem to recall that you can also crash GDB a number of different ways with this, which are probably separate bugs. This is a bit garbled of a report, I realize; I'm always neck-deep in something else when it happens... I have found that GDB will unreliably segfault when I set a watchpoint using a convenience (or history; are those handled the same way?) variable and then recompile and rerun the program, causing it to be reloaded. -- Daniel Jacobowitz CodeSourcery, LLC