From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28235 invoked by alias); 14 Apr 2006 14:53:12 -0000 Received: (qmail 28227 invoked by uid 22791); 14 Apr 2006 14:53:12 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Fri, 14 Apr 2006 14:53:10 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1FUPfY-00045C-Fl for gdb@sourceware.org; Fri, 14 Apr 2006 10:53:08 -0400 Date: Fri, 14 Apr 2006 17:10:00 -0000 From: Daniel Jacobowitz To: gdb@sourceware.org Subject: Re: printing wchar_t* Message-ID: <20060414145308.GA15561@nevyn.them.org> Mail-Followup-To: gdb@sourceware.org References: <200604141257.41690.ghost@cs.msu.su> <20060414130527.GA12955@nevyn.them.org> <20060414141640.GA14789@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.8i 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/msg00196.txt.bz2 On Fri, Apr 14, 2006 at 05:47:06PM +0300, Eli Zaretskii wrote: > No, that's not what I had in mind. I thought about a command which > will set the value of the delimiter, with zero being the default. > Then just use the same syntax as what you had in mind for > zero-delimited arrays. > > Does this make sense? It seems like something which would be more useful in the expression than as a global state, but on the other hand, I already made the point that this wouldn't be frequently used. I wouldn't object to such a variable (although I probably wouldn't implement it, either). > > I was thinking "print *ptr@@", by analogy to "print *ptr@5". > > Looks good to me. I was going to suggest *ptr@0 again, but I've remembered that these actually take expressions, not just integers. So @@ sounds good to me, unless anyone knows a language where we can get away with using @ for artificial arrays, but can't steal @@ also. -- Daniel Jacobowitz CodeSourcery