From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13637 invoked by alias); 23 Jan 2008 00:33:01 -0000 Received: (qmail 13623 invoked by uid 22791); 23 Jan 2008 00:33:00 -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; Wed, 23 Jan 2008 00:32:35 +0000 Received: from kahikatea.snap.net.nz (67.62.255.123.dynamic.snap.net.nz [123.255.62.67]) by viper.snap.net.nz (Postfix) with ESMTP id 79BCC3DA2E8; Wed, 23 Jan 2008 13:32:27 +1300 (NZDT) Received: by kahikatea.snap.net.nz (Postfix, from userid 1000) id 74DF68FC6D; Wed, 23 Jan 2008 13:32:20 +1300 (NZDT) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18326.35603.281821.709393@kahikatea.snap.net.nz> Date: Wed, 23 Jan 2008 00:33:00 -0000 To: "Marc Khouzam" Cc: "Daniel Jacobowitz" , Subject: RE: [Patch] Fix for -var-update to use natural format to compare In-Reply-To: <6D19CA8D71C89C43A057926FE0D4ADAA04290E42@ecamlmw720.eamcs.ericsson.se> References: <20080122035325.GA28748@caradoc.them.org> <6D19CA8D71C89C43A057926FE0D4ADAA04290E42@ecamlmw720.eamcs.ericsson.se> X-Mailer: VM 7.19 under Emacs 23.0.50.34 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: 2008-01/txt/msg00535.txt.bz2 > This is assuming the frontend only displays a single value. > In DSF, we (sometimes) display all values at once. Can be nice for the user. > > > why do you want to keep track of the value in > > all formats? And if you're actually displaying them all > > simultaneously to the user, why shouldn't they be independent varobjs? > > Independent varObjects would work. However every time the program stops > the frontend will need to issue a var-update on five objects instead of one, > and what is worse is that GDB will need to read the memory from the target > five times instead of once. This is less efficient than the frontend > forcing GDB to use natural format (see below.) You say it "Can be nice for the user." but you haven't really answered the first question: why do you want to keep track of the value in all formats? Why, for example, would a user want to see the value of a double as a decimal? It just seems to be a misleading thing to do. -- Nick http://www.inet.net.nz/~nickrob