Re: [RFC-v2] Allow explicit 16 or 32 char in 'x /s'

Eli Zaretskii
2010-03-31T16:17:38Z

> From: "Pierre Muller" <pierre.muller@ics-cnrs.unistra.fr>
> Cc: "'Eli Zaretskii'" <eliz@gnu.org>, <gdb-patches@sourceware.org>
> Date: Wed, 31 Mar 2010 18:11:17 +0200
>
> --- src/gdb/doc/gdb.texinfo 12 Mar 2010 19:15:52 -0000 1.680
> +++ src/gdb/doc/gdb.texinfo 18 Mar 2010 20:43:12 -0000
> @@ -7236,8 +7236,11 @@ Giant words (eight bytes).
> @end table
>
> Each time you specify a unit size with @code{x}, that size becomes the
> -default unit the next time you use @code{x}. (For the @samp{s} and
> -@samp{i} formats, the unit size is ignored and is normally not written.)
> +default unit the next time you use @code{x}. For the @samp{i} format,
> +the unit size is ignored and is normally not written. For the @samp{s}
> format,
> +the unit size defaults to @samp{b}, unless it is explicitly given.
> +Use @kbd{x /hs} to display 16-bit char strings and @kbd{x /ws} to display
> +32-bit strings. The next use of @kbd{x /s} will again display 8-bit
> strings.

This is okay, but I still think we should mention that the encoding is
UTF-16 and UCS-4, respectively, and that it cannot be changed.

Thanks.