From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25985 invoked by alias); 6 Feb 2004 20:26:40 -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 25974 invoked from network); 6 Feb 2004 20:26:39 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sources.redhat.com with SMTP; 6 Feb 2004 20:26:39 -0000 Received: from drow by nevyn.them.org with local (Exim 4.30 #1 (Debian)) id 1ApCYf-0003NA-UW; Fri, 06 Feb 2004 15:26:37 -0500 Date: Fri, 06 Feb 2004 20:26:00 -0000 From: Daniel Jacobowitz To: Chris Zankel Cc: gdb@sources.redhat.com Subject: Re: output formats bug? Message-ID: <20040206202637.GA12834@nevyn.them.org> Mail-Followup-To: Chris Zankel , gdb@sources.redhat.com References: <4023E9C2.3060903@tensilica.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4023E9C2.3060903@tensilica.com> User-Agent: Mutt/1.5.1i X-SW-Source: 2004-02/txt/msg00065.txt.bz2 On Fri, Feb 06, 2004 at 11:23:46AM -0800, Chris Zankel wrote: > GDB seems to be stuck with the constant char output format > once that was used: > > > GNU gdb 2004-02-02-cvs > Copyright 2004 Free Software Foundation, Inc. > GDB is free software, covered by the GNU General Public License, and you are > welcome to change it and/or distribute copies of it under certain > conditions. > Type "show copying" to see the conditions. > There is absolutely no warranty for GDB. Type "show warranty" for details. > This GDB was configured as "i686-pc-linux-gnu"...Using host libthread_db > library "/lib/i686/libthread_db.so.1". > > (gdb) x/c main > 0x804830c
: 85 'U' > (gdb) x/w main > 0x804830c
: 85 'U' > (gdb) > > (This is not a new bug, it seems to be there for a long time) The thing is, w isn't an output specifier - it's a size qualifier. It changes the size qualifier to "word". Then the code for printing a char ignores it. The behavior you want is probably: x/c main x/x main -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer