This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: printing wchar_t*


> Date: Fri, 14 Apr 2006 10:16:40 -0400
> From: Daniel Jacobowitz <drow@false.org>
> 
> > 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]