This is the mail archive of the
mailing list for the GDB project.
Re: printing wchar_t*
On 4/14/06, Eli Zaretskii <email@example.com> wrote:
> > Date: Fri, 14 Apr 2006 11:03:38 -0700
> > From: "Jim Blandy" <firstname.lastname@example.org>
> > Cc: email@example.com
> > > > 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.
> > >
> > > Then how will you find the zero terminator? With wcslen? That is
> > > only good for wchar_t strings, not for arbitrary integer arrays. And
> > > I thought Daniel was suggesting something more general than just
> > > wchar_t arrays.
> > He is. I am, too. Just search for elements equal to zero.
> How is this different or more complex than searching for elements that
> are equal to some other constant value?
It's not hard; it's trivial. I just think we shouldn't add the option
until there's a real-life use case showing someone who wants it.
> > That said, I don't even think we should have a separate command for
> > setting the terminating value for @@. I think we should wait until
> > someone has a need for it arising out of a real-life use case, not a
> > design conversation.
> What Daniel suggested didn't come from a clear-cut real-life use-case,
It came from Volodya's original request.