From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13092 invoked by alias); 29 Jan 2008 21:26:55 -0000 Received: (qmail 13083 invoked by uid 22791); 29 Jan 2008 21:26:55 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 29 Jan 2008 21:26:35 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 18F7298151; Tue, 29 Jan 2008 21:26:34 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id CAA899811F; Tue, 29 Jan 2008 21:26:33 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.68) (envelope-from ) id 1JJxyT-0004zp-09; Tue, 29 Jan 2008 16:26:33 -0500 Date: Tue, 29 Jan 2008 21:26:00 -0000 From: Daniel Jacobowitz To: Nick Roberts Cc: Andreas Schwab , Marc Khouzam , gdb@sources.redhat.com Subject: Re: -var-update using formatted value Message-ID: <20080129212632.GB17544@caradoc.them.org> Mail-Followup-To: Nick Roberts , Andreas Schwab , Marc Khouzam , gdb@sources.redhat.com References: <6D19CA8D71C89C43A057926FE0D4ADAA04290E1B@ecamlmw720.eamcs.ericsson.se> <18311.60638.724524.220449@kahikatea.snap.net.nz> <20080111225928.GA26360@caradoc.them.org> <18311.65093.38930.103045@kahikatea.snap.net.nz> <20080111235219.GA29698@caradoc.them.org> <18315.589.840507.551878@kahikatea.snap.net.nz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <18315.589.840507.551878@kahikatea.snap.net.nz> User-Agent: Mutt/1.5.17 (2007-12-11) 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/msg00318.txt.bz2 On Mon, Jan 14, 2008 at 07:33:49PM +1300, Nick Roberts wrote: > > I was suggesting: > > > > (gdb) print 0b1101 > > $1 = 13 > > I guess the change below to c-exp.y does that, at least for C. But AFAIK 0b > is not a recognised prefix for C. > the change below to printcmd.c does this. This seems to be consistent with > existing usage, e.g. in Modula-2 hexadecimals are input like 0FFH but > output in a lanuage independent way as 0xff. Thanks. This is exactly what I meant. If you have time, could you post this to gdb-patches along with news/manual/testsuite bits? If not, I'll do it (but no promises when I'll get to it). -- Daniel Jacobowitz CodeSourcery