From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2818 invoked by alias); 18 Jan 2008 21:10:05 -0000 Received: (qmail 2793 invoked by uid 22791); 18 Jan 2008 21:10: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; Fri, 18 Jan 2008 21:09:38 +0000 Received: from kahikatea.snap.net.nz (71.30.255.123.static.snap.net.nz [123.255.30.71]) by viper.snap.net.nz (Postfix) with ESMTP id B3BD93DA33B; Sat, 19 Jan 2008 10:09:35 +1300 (NZDT) Received: by kahikatea.snap.net.nz (Postfix, from userid 1000) id C67DF8FC6D; Sat, 19 Jan 2008 10:09:28 +1300 (NZDT) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18321.5512.90696.545727@kahikatea.snap.net.nz> Date: Fri, 18 Jan 2008 21:10:00 -0000 To: "Marc Khouzam" Cc: Subject: RE: -var-update using formatted value In-Reply-To: <6D19CA8D71C89C43A057926FE0D4ADAA2DE096@ecamlmw720.eamcs.ericsson.se> References: <6D19CA8D71C89C43A057926FE0D4ADAA04290E3C@ecamlmw720.eamcs.ericsson.se> <18320.559.863596.871051@kahikatea.snap.net.nz> <6D19CA8D71C89C43A057926FE0D4ADAA2DE096@ecamlmw720.eamcs.ericsson.se> X-Mailer: VM 7.19 under Emacs 23.0.50.32 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/msg00180.txt.bz2 > > I don't like this change. If I change the format to hexadecimal, 11 -> 0xb > > say, the display should change, so I would like GDB to report it through > > -var-update. > > > Previously -var-evaluate-expression was needed because values weren't > > displayed when variable objects were created (-var-create now includes the > > value field, -var-list-children has the --all-values option). Given that > > -var-update provides a record of all changes, I'm not sure that > > -var-evaluate-expression is necessary now. > > It is starting to come together now :-) > What you are missing is for -var-set-format to have the --all-values flag. > Then, I believe you can stop using -var-evaluate-expression. Using > -var-update instead of var-evaluate-expression or -var-set-format > --all-values seems kind of a hack... I don't use -var-evaluate-expression for current GDB. > What do you think of that? Vladimir's patch and --all-values in set-format? > To me, it seems like the proper solution. If I don't like Vladimir's patch on its own, I don't see why I should like it with --all-values in -var-set-format. But I'm probably missing your point. What would "-var-set-format --all-values" return? The value in the current format or all formats? When GDB stops I use "-var-update --all-values" to find out which watch expressions have changed. What are you proposing that I should use? -- Nick http://www.inet.net.nz/~nickrob