From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21498 invoked by alias); 20 Jan 2008 20:16:04 -0000 Received: (qmail 21488 invoked by uid 22791); 20 Jan 2008 20:16:04 -0000 X-Spam-Check-By: sourceware.org Received: from viper.snap.net.nz (HELO viper.snap.net.nz) (202.37.101.8) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 20 Jan 2008 20:15:34 +0000 Received: from kahikatea.snap.net.nz (12.31.255.123.static.snap.net.nz [123.255.31.12]) by viper.snap.net.nz (Postfix) with ESMTP id 933EF3DA3BD; Mon, 21 Jan 2008 09:15:27 +1300 (NZDT) Received: by kahikatea.snap.net.nz (Postfix, from userid 1000) id E847D8FC6D; Mon, 21 Jan 2008 09:15:26 +1300 (NZDT) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18323.43998.22471.788933@kahikatea.snap.net.nz> Date: Sun, 20 Jan 2008 20:16:00 -0000 To: Vladimir Prus Cc: gdb@sources.redhat.com Subject: Re: -var-update using formatted value In-Reply-To: <200801201303.29804.ghost@cs.msu.su> References: <200801191405.20336.ghost@cs.msu.su> <18322.29497.433089.736851@kahikatea.snap.net.nz> <200801201303.29804.ghost@cs.msu.su> X-Mailer: VM 7.19 under Emacs 23.0.50.33 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-01/txt/msg00199.txt.bz2 > > > I cannot imagine any usecase where the frontend would: > > > > > > 1. Change format > > > 2. Step program > > > 3. Issue -var-update > > > > I'm not sure what point you're making here. Debugging GDB, has variables > > which contain addresses which are not pointers (so the natural format is > > decimal), e.g., stack_addr, code_addr components of frames. It makes > > sense here to: > > > > 1. Change format to hexadecimal > > 2. Step GDB > > 3. Issue -var-update to see if these values have changed. > > What UI-level command does this? And why, after you change format, > you don't read/display the value in new format? Creating a watch expression (in the speedbar, in the case of Emacs) for a frame related structure would do this. Yes, currently you would need to do -var-update after 1.. Anyway, I withdraw my objection to your patch, if the patch (or similar) in the thread I mentioned (http://sourceware.org/ml/gdb-patches/2006-05/msg00008.html) is also approved. So there appears to be some consensus here. -- Nick http://www.inet.net.nz/~nickrob