From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5947 invoked by alias); 24 Jan 2008 21:36:53 -0000 Received: (qmail 5938 invoked by uid 22791); 24 Jan 2008 21:36:52 -0000 X-Spam-Check-By: sourceware.org Received: from imr1.ericy.com (HELO imr1.ericy.com) (198.24.6.9) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 24 Jan 2008 21:36:24 +0000 Received: from eusrcmw751.eamcs.ericsson.se (eusrcmw751.exu.ericsson.se [138.85.77.51]) by imr1.ericy.com (8.13.1/8.13.1) with ESMTP id m0OLaFGH019030 for ; Thu, 24 Jan 2008 15:36:22 -0600 Received: from ecamlmw720.eamcs.ericsson.se ([142.133.1.72]) by eusrcmw751.eamcs.ericsson.se with Microsoft SMTPSVC(6.0.3790.1830); Thu, 24 Jan 2008 15:35: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: [PATCH]: MI -var-set-format Date: Thu, 24 Jan 2008 21:49:00 -0000 Message-ID: <6D19CA8D71C89C43A057926FE0D4ADAA04290E62@ecamlmw720.eamcs.ericsson.se> From: "Marc Khouzam" To: 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/msg00594.txt.bz2 >> I thought the intentio was to commit Vladimir's patch too: >>>=20 >>> http://sourceware.org/ml/gdb/2008-01/msg00116.html >>>=20 >>> perhaps using xstrdup instead of strdup. I can then make appropriate >>> changes to Emacs in the CVS repository prior to the release of 22.2. >> >> One thread at a time is all I can handle. Have we concluded that the >> above patch is better than always using natural format to check for >> updates? > > I thought that was part of the thread. Isn't Marc's patch for > -var-evaluate-expression meant to meet his requirement for multiple forma= ts? In my case, I agreed that this solution is sufficient (and probably the lea= st intrusive.) But we do need Vladimir's patch. Here is a small patch for the doc to explain this requirement. Feel free t= o reword of course. Marc ### Eclipse Workspace Patch 1.0 #P gdb Index: doc/gdb.texinfo =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /cvs/src/src/gdb/doc/gdb.texinfo,v retrieving revision 1.459 diff -u -r1.459 gdb.texinfo --- doc/gdb.texinfo 23 Jan 2008 11:26:29 -0000 1.459 +++ doc/gdb.texinfo 24 Jan 2008 21:32:51 -0000 @@ -20058,6 +20058,9 @@ recommended to use the @samp{--all-values} option, to reduce the number of MI commands needed on each program stop. =20 +To know if a variable object or any of its children has changed value in a= ny=20 +format instead of only the current one, the variable object and all its ch= ildren +should be in the natural format before issuing the @code{-var-update} comm= and.=20=20 =20 @subsubheading Example