* output formats bug?
@ 2004-02-06 19:23 Chris Zankel
2004-02-06 20:26 ` Daniel Jacobowitz
0 siblings, 1 reply; 2+ messages in thread
From: Chris Zankel @ 2004-02-06 19:23 UTC (permalink / raw)
To: gdb
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)
-- Chris
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: output formats bug?
2004-02-06 19:23 output formats bug? Chris Zankel
@ 2004-02-06 20:26 ` Daniel Jacobowitz
0 siblings, 0 replies; 2+ messages in thread
From: Daniel Jacobowitz @ 2004-02-06 20:26 UTC (permalink / raw)
To: Chris Zankel; +Cc: gdb
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-02-06 20:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-06 19:23 output formats bug? Chris Zankel
2004-02-06 20:26 ` Daniel Jacobowitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox