From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2252 invoked by alias); 14 Apr 2006 17:18:14 -0000 Received: (qmail 2244 invoked by uid 22791); 14 Apr 2006 17:18:13 -0000 X-Spam-Check-By: sourceware.org Received: from xproxy.gmail.com (HELO xproxy.gmail.com) (66.249.82.205) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 14 Apr 2006 17:18:12 +0000 Received: by xproxy.gmail.com with SMTP id s13so65746wxc for ; Fri, 14 Apr 2006 10:18:10 -0700 (PDT) Received: by 10.70.124.7 with SMTP id w7mr755488wxc; Fri, 14 Apr 2006 10:18:10 -0700 (PDT) Received: by 10.70.125.5 with HTTP; Fri, 14 Apr 2006 10:18:10 -0700 (PDT) Message-ID: <8f2776cb0604141018h33e7954j2a85784d6e1ba5ba@mail.gmail.com> Date: Fri, 14 Apr 2006 17:55:00 -0000 From: "Jim Blandy" To: gdb@sourceware.org Subject: Re: printing wchar_t* In-Reply-To: <20060414141640.GA14789@nevyn.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <200604141257.41690.ghost@cs.msu.su> <20060414130527.GA12955@nevyn.them.org> <20060414141640.GA14789@nevyn.them.org> X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-04/txt/msg00199.txt.bz2 On 4/14/06, Daniel Jacobowitz wrote: > I was thinking "print *ptr@@", by analogy to "print *ptr@5". Or we > could use the existing @ N syntax. Right now we issue errors for > anything less than one; so how about "print *ptr@0" for "print *ptr > until you encounter a zero"? I much prefer LVAL@@ to LVAL@0. I don't think it's worth complicating the syntax for searching for a zero terminator in order to allow one to search for an arbitrary terminator. I think that will require more typing in the much more common case, and there are other ways to serve the need to search for arbitrary terminators.