From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2215 invoked by alias); 6 Sep 2005 19:29:37 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 2171 invoked by uid 22791); 6 Sep 2005 19:29:30 -0000 Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Tue, 06 Sep 2005 19:29:30 +0000 Received: from drow by nevyn.them.org with local (Exim 4.52) id 1ECj8J-0002iq-OX; Tue, 06 Sep 2005 15:29:27 -0400 Date: Tue, 06 Sep 2005 19:29:00 -0000 From: Daniel Jacobowitz To: Eli Zaretskii Cc: gdb@sources.redhat.com, ghost@cs.msu.su Subject: Re: The 'x' command: size problem Message-ID: <20050906192927.GA10362@nevyn.them.org> Mail-Followup-To: Eli Zaretskii , gdb@sources.redhat.com, ghost@cs.msu.su References: <20050906152448.GA2444@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.8i X-SW-Source: 2005-09/txt/msg00040.txt.bz2 On Tue, Sep 06, 2005 at 10:16:56PM +0300, Eli Zaretskii wrote: > > Date: Tue, 6 Sep 2005 11:24:48 -0400 > > From: Daniel Jacobowitz > > Cc: gdb@sources.redhat.com > > > > On Tue, Sep 06, 2005 at 07:00:28PM +0400, Vladimir Prus wrote: > > > works. In fact, the x_command function in printcmd.c expects the the size > > > argument be always given as literal. > > > > > > This limitation makes it somewhat harder to implement "show this > > > variable/expression in binary" command in a GUI. Are there any easy > > > workarounds? > > > > Not as far as I know. > > Is that a bug, and if so, should we fix it ASAP? Personally, I don't think it's a bug. It can't unambiguously accept x/sizeof(i), because of x/s. I suppose we could allow convenience variables here, but I don't think the benefit is substantial. For a frontend, it shouldn't be hard to find the right size as a literal. For a user, ditto. -- Daniel Jacobowitz CodeSourcery, LLC