From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26004 invoked by alias); 11 Jan 2010 18:12:06 -0000 Received: (qmail 25992 invoked by uid 22791); 11 Jan 2010 18:12:06 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 11 Jan 2010 18:11:59 +0000 Received: from int-mx05.intmail.prod.int.phx2.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.18]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o0BIBaRe001068 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 11 Jan 2010 13:11:36 -0500 Received: from host0.dyn.jankratochvil.net (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx05.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o0BIBQ6w029923 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 11 Jan 2010 13:11:35 -0500 Received: from host0.dyn.jankratochvil.net (localhost [127.0.0.1]) by host0.dyn.jankratochvil.net (8.14.3/8.14.3) with ESMTP id o0BIBOxq021246; Mon, 11 Jan 2010 19:11:24 +0100 Received: (from jkratoch@localhost) by host0.dyn.jankratochvil.net (8.14.3/8.14.3/Submit) id o0BIBMkY021243; Mon, 11 Jan 2010 19:11:22 +0100 Date: Mon, 11 Jan 2010 18:12:00 -0000 From: Jan Kratochvil To: Joel Brobecker Cc: gdb-patches@sourceware.org Subject: Re: [patch] Support binary (0b...) numbers Message-ID: <20100111181122.GC20336@host0.dyn.jankratochvil.net> References: <20100111143749.GA7420@host0.dyn.jankratochvil.net> <20100111175722.GH2007@adacore.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100111175722.GH2007@adacore.com> User-Agent: Mutt/1.5.20 (2009-08-17) X-IsSubscribed: yes 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: 2010-01/txt/msg00265.txt.bz2 On Mon, 11 Jan 2010 18:57:22 +0100, Joel Brobecker wrote: > > 2010-01-11 Jan Kratochvil > > > > Implement binary numbers parsing. > > * c-exp.y (parse_number): New case 'b' and 'B'. > > Is this worth a NEWS entry? That makes sense. OK to check-in? Thanks, Jan 2010-01-11 Jan Kratochvil * NEWS: Document 0b binary number prefix parsing. --- a/gdb/NEWS +++ b/gdb/NEWS @@ -128,6 +128,11 @@ teval EXPR, ... ftrace FN / FILE:LINE / *ADDR Define a fast tracepoint at the given function, line, or address. +* New expression syntax + + GDB now parses the 0b prefix of binary numbers the same was as GCC does. + GDB now parses 0b101010 identically with 42. + * New options set follow-exec-mode new|same