From: Daniel Jacobowitz <drow@mvista.com>
To: Chris Zankel <zankel@tensilica.com>
Cc: gdb@sources.redhat.com
Subject: Re: output formats bug?
Date: Fri, 06 Feb 2004 20:26:00 -0000 [thread overview]
Message-ID: <20040206202637.GA12834@nevyn.them.org> (raw)
In-Reply-To: <4023E9C2.3060903@tensilica.com>
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 <main>: 85 'U'
> (gdb) x/w main
> 0x804830c <main>: 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
prev parent reply other threads:[~2004-02-06 20:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-06 19:23 Chris Zankel
2004-02-06 20:26 ` Daniel Jacobowitz [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040206202637.GA12834@nevyn.them.org \
--to=drow@mvista.com \
--cc=gdb@sources.redhat.com \
--cc=zankel@tensilica.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox