From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6991 invoked by alias); 18 Jan 2008 22:21:54 -0000 Received: (qmail 6982 invoked by uid 22791); 18 Jan 2008 22:21:54 -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 22:21:33 +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 m0IMLV6F002053 for ; Fri, 18 Jan 2008 16:21:31 -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 16:21:31 -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 22:21:00 -0000 Message-ID: <6D19CA8D71C89C43A057926FE0D4ADAA2DE09C@ecamlmw720.eamcs.ericsson.se> References: <6D19CA8D71C89C43A057926FE0D4ADAA04290E3C@ecamlmw720.eamcs.ericsson.se> <18320.559.863596.871051@kahikatea.snap.net.nz> <6D19CA8D71C89C43A057926FE0D4ADAA2DE096@ecamlmw720.eamcs.ericsson.se> <18321.5512.90696.545727@kahikatea.snap.net.nz> 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/msg00182.txt.bz2 > 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. Can you elaborate? When do you call var-update in this case? Is it right = after the var-set-format? > I don't use -var-evaluate-expression for current GDB. So how to you display a value in a different format (say hex)? You must be calling -var-update right away after the set-format. That is why I thou= ght=20 "-var-set-format --all-values var1 hex"=20 would return the value in hex (or whatever format specified). I'd use this too, as I wouldn't need to call evaluate-expression after var-set-format. Then, you could say var-evaluate-expression is superfluous (I think).