From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12996 invoked by alias); 18 Mar 2010 14:20:10 -0000 Received: (qmail 12965 invoked by uid 22791); 18 Mar 2010 14:20:08 -0000 X-SWARE-Spam-Status: No, hits=-0.8 required=5.0 tests=AWL,BAYES_00,MSGID_MULTIPLE_AT X-Spam-Check-By: sourceware.org Received: from mailhost.u-strasbg.fr (HELO mailhost.u-strasbg.fr) (130.79.200.156) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 18 Mar 2010 14:19:57 +0000 Received: from baal.u-strasbg.fr (baal.u-strasbg.fr [IPv6:2001:660:2402::41]) by mailhost.u-strasbg.fr (8.14.2/jtpda-5.5pre1) with ESMTP id o2IEJlE0006126 ; Thu, 18 Mar 2010 15:19:47 +0100 (CET) (envelope-from pierre.muller@ics-cnrs.unistra.fr) Received: from mailserver.u-strasbg.fr (ms1.u-strasbg.fr [IPv6:2001:660:2402:d::10]) by baal.u-strasbg.fr (8.14.0/jtpda-5.5pre1) with ESMTP id o2ICudHo048872 ; Thu, 18 Mar 2010 13:56:39 +0100 (CET) (envelope-from pierre.muller@ics-cnrs.unistra.fr) Received: from d620muller (gw-ics.u-strasbg.fr [130.79.210.225]) (user=mullerp mech=LOGIN) by mailserver.u-strasbg.fr (8.14.3/jtpda-5.5pre1) with ESMTP id o2ICudWN075611 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) ; Thu, 18 Mar 2010 13:56:39 +0100 (CET) (envelope-from pierre.muller@ics-cnrs.unistra.fr) From: "Pierre Muller" To: "'Eli Zaretskii'" Cc: References: <000f01cac623$2ec3a850$8c4af8f0$@muller@ics-cnrs.unistra.fr> In-Reply-To: Subject: RE: [RFC] Allow explicit 16 or 32 char in 'x /s' Date: Thu, 18 Mar 2010 14:20:00 -0000 Message-ID: <001e01cac69a$75167630$5f436290$@muller@ics-cnrs.unistra.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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/msg00663.txt.bz2 > -----Message d'origine----- > De=A0: gdb-patches-owner@sourceware.org [mailto:gdb-patches- > owner@sourceware.org] De la part de Eli Zaretskii > Envoy=E9=A0: Thursday, March 18, 2010 8:02 AM > =C0=A0: Pierre Muller > Cc=A0: gdb-patches@sourceware.org > Objet=A0: Re: [RFC] Allow explicit 16 or 32 char in 'x /s' >=20 > > From: "Pierre Muller" > > Date: Wed, 17 Mar 2010 23:42:53 +0100 > > > > > > The patch below allows to > > print strings that are made of 16 bit or 32 bit char > > using: > > 'x /hs ' or 'x /ws ' commands. >=20 > Thanks. If this patch is accepted, we will need a suitable change for > the manual. How about this change? Pierre doc/ChangeLog entry: 2010-03-18 Pierre Muller * gdbint.texinfo (Examining memory): Update for change in string display with explicit size. Index: doc/gdb.texinfo =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /cvs/src/src/gdb/doc/gdb.texinfo,v retrieving revision 1.680 diff -u -p -r1.680 gdb.texinfo --- doc/gdb.texinfo 12 Mar 2010 19:15:52 -0000 1.680 +++ doc/gdb.texinfo 18 Mar 2010 12:50:15 -0000 @@ -7232,8 +7232,11 @@ Giant words (eight bytes). @end table =20 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. +Ue @code{x /hs} to display 16-bit char strings and @code{x /ws} to display +32-bit strings. The next use of @code{x /s} will still display 8-bit strings. =20 @item @var{addr}, starting display address @var{addr} is the address where you want @value{GDBN} to begin displaying