From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32082 invoked by alias); 6 Apr 2006 16:19:58 -0000 Received: (qmail 32072 invoked by uid 22791); 6 Apr 2006 16:19:58 -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; Thu, 06 Apr 2006 16:19:57 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1FRXD5-0007bN-Ga; Thu, 06 Apr 2006 12:19:51 -0400 Date: Thu, 06 Apr 2006 16:49:00 -0000 From: Daniel Jacobowitz To: Jim Ingham Cc: Vladimir Prus , GDB List Subject: Re: MI: type prefixes for values Message-ID: <20060406161951.GA28937@nevyn.them.org> Mail-Followup-To: Jim Ingham , Vladimir Prus , GDB List References: <200602171724.03824.ghost@cs.msu.su> <200604061703.26246.ghost@cs.msu.su> <20060406133546.GB25088@nevyn.them.org> <200604061745.16585.ghost@cs.msu.su> <08737C28-35FA-4938-978C-0055CC437B2F@apple.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <08737C28-35FA-4938-978C-0055CC437B2F@apple.com> User-Agent: Mutt/1.5.8i X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-04/txt/msg00072.txt.bz2 On Thu, Apr 06, 2006 at 09:06:14AM -0700, Jim Ingham wrote: > -var-evaluate-expression just fetches the data for the expression as > it was last computed. As such, it doesn't know in or out of scope. I can see, from careful inspection, that this is true. It surprised the heck out of me. I'd have expected it to evaluate it now, not to return the last evaluated value. Should it do this? If so, we should fix the manual. Eek! Every call to c_value_of_root for a local changes the selected frame and reinitializes the frame cache, discarding previous unwindings. That's awful. I sure hope it isn't necessary. -- Daniel Jacobowitz CodeSourcery