From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9685 invoked by alias); 31 Mar 2010 16:17:38 -0000 Received: (qmail 9668 invoked by uid 22791); 31 Mar 2010 16:17:36 -0000 X-SWARE-Spam-Status: No, hits=0.9 required=5.0 tests=BAYES_05,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_WEB,SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Received: from mtaout22.012.net.il (HELO mtaout22.012.net.il) (80.179.55.172) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 31 Mar 2010 16:17:30 +0000 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0L0500C00M9Z0C00@a-mtaout22.012.net.il> for gdb-patches@sourceware.org; Wed, 31 Mar 2010 19:17:27 +0300 (IDT) Received: from HOME-C4E4A596F7 ([77.127.176.135]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0L0500CDFML26300@a-mtaout22.012.net.il>; Wed, 31 Mar 2010 19:17:27 +0300 (IDT) Date: Wed, 31 Mar 2010 16:17:00 -0000 From: Eli Zaretskii Subject: Re: [RFC-v2] Allow explicit 16 or 32 char in 'x /s' In-reply-to: <006101cad0ec$cb7915d0$626b4170$%muller@ics-cnrs.unistra.fr> To: Pierre Muller Cc: tromey@redhat.com, gdb-patches@sourceware.org Reply-to: Eli Zaretskii Message-id: <83tyrwxy72.fsf@gnu.org> References: <11484.4708740295$1268865815@news.gmane.org> <83r5ngix6d.fsf@gnu.org> <15103.6087111153$1269298497@news.gmane.org> <006101cad0ec$cb7915d0$626b4170$%muller@ics-cnrs.unistra.fr> X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-03/txt/msg01116.txt.bz2 > From: "Pierre Muller" > Cc: "'Eli Zaretskii'" , > 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.