From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26169 invoked by alias); 14 Apr 2006 14:47:13 -0000 Received: (qmail 26161 invoked by uid 22791); 14 Apr 2006 14:47:13 -0000 X-Spam-Check-By: sourceware.org Received: from romy.inter.net.il (HELO romy.inter.net.il) (192.114.186.66) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 14 Apr 2006 14:47:10 +0000 Received: from HOME-C4E4A596F7 (IGLD-83-130-214-179.inter.net.il [83.130.214.179]) by romy.inter.net.il (MOS 3.7.3-GA) with ESMTP id DZD31189 (AUTH halo1); Fri, 14 Apr 2006 17:47:06 +0300 (IDT) Date: Fri, 14 Apr 2006 14:53:00 -0000 Message-Id: From: Eli Zaretskii To: gdb@sourceware.org In-reply-to: <20060414141640.GA14789@nevyn.them.org> (message from Daniel Jacobowitz on Fri, 14 Apr 2006 10:16:40 -0400) Subject: Re: printing wchar_t* Reply-to: Eli Zaretskii 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/msg00194.txt.bz2 > Date: Fri, 14 Apr 2006 10:16:40 -0400 > From: Daniel Jacobowitz > > > How about "print elements until you find X", where X is any 8-bit > > code, including zero? That would useful in situations, I think. > > Well, I suppose. But in the general case, there's always user-defined > functions, and hopefully better scripting languages in the future; > is this something that will be frequently useful direct from the > command line? > > It'll involve another extension to the language expression parsers, you > see. We ought to minimize such extensions; e.g. the set of operators > available is fairly limited. 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? > I was thinking "print *ptr@@", by analogy to "print *ptr@5". Looks good to me.