From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2448 invoked by alias); 18 Jan 2008 17:17:52 -0000 Received: (qmail 2440 invoked by uid 22791); 18 Jan 2008 17:17:51 -0000 X-Spam-Check-By: sourceware.org Received: from imr2.ericy.com (HELO imr2.ericy.com) (198.24.6.3) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 18 Jan 2008 17:17:22 +0000 Received: from eusrcmw750.eamcs.ericsson.se (eusrcmw750.exu.ericsson.se [138.85.77.50]) by imr2.ericy.com (8.13.1/8.13.1) with ESMTP id m0IHHKlS030662 for ; Fri, 18 Jan 2008 11:17:20 -0600 Received: from ecamlmw720.eamcs.ericsson.se ([142.133.1.72]) by eusrcmw750.eamcs.ericsson.se with Microsoft SMTPSVC(6.0.3790.1830); Fri, 18 Jan 2008 11:17:20 -0600 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: -var-update using formatted value Date: Fri, 18 Jan 2008 17:17:00 -0000 Message-ID: <6D19CA8D71C89C43A057926FE0D4ADAA2DE097@ecamlmw720.eamcs.ericsson.se> References: <18320.559.863596.871051@kahikatea.snap.net.nz> <6D19CA8D71C89C43A057926FE0D4ADAA2DE096@ecamlmw720.eamcs.ericsson.se> <20080118154059.GA22643@caradoc.them.org> From: "Marc Khouzam" Cc: 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/msg00174.txt.bz2 > > However, and I'm sorry for not letting this go, but what is the point o= f=20 > > -var-update returning the list of changed variables, if it is so effici= ent > > to go back to GDB to ask for values? var-update might as well return n= othing > > and the let the front-end ask for values again. > > (which is what I'll have to do if I can't cache all formats) >=20 > -var-update reads values from the target to check for changes. > -var-update-expression and -var-set-format do not. If you do not > -var-update nothing will ever appear to change. I'm not questioning var-update. It is a must after the program has resumed. But why does var-update actually report the changed variables to the front-= end? Why not just report "done"? If var-update tells the front-end which variables have changed, it is for t= he=20 front-end to know which ones it should use -var-evaluate-expression on (say --no-values is used for var-update). The front-end then does not need to use -var-evaluate-expression on -all- displayed variables. In my case, since I display all formats (sometimes), I need to do=20 var-evaluate-expression on every displayed variable, since var-update won't= =20 properly tell me which variable really changed (in the case of float and st= rings).